
// this file contains all the scripts used on the site

function random_heading(){

images = new Array(1);

//specify random images below. 

images[0] = "<img src='images/header1.jpg'>";
images[1] = "<img src='images/header2.jpg'>";
images[2] = "<img src='images/header3.jpg'>";
images[3] = "<img src='images/header4.jpg'>";
images[4] = "<img src='images/header5.jpg'>";
images[5] = "<img src='images/header6.jpg'>";
images[6] = "<img src='images/header7.jpg'>";
images[7] = "<img src='images/header8.jpg'>";

index = Math.floor(Math.random() *  images.length);

document.write(images[index]);

}

function longDate() {

var this_weekday_name_array = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")	//predefine weekday names
var this_month_name_array = new Array("January","February","March","April","May","June","July","August","September","October","November","December")	//predefine month names

var this_date_timestamp=new Date()	//get current day-time stamp

var this_weekday = this_date_timestamp.getDay()	//extract weekday
var this_date = this_date_timestamp.getDate()	//extract day of month
var this_month = this_date_timestamp.getMonth()	//extract month
var this_year = this_date_timestamp.getYear()	//extract year

if (this_year < 1000)
	this_year+= 1900;	//fix Y2K problem
if (this_year==101)
	this_year=2001;		//fix Netscape browsers - it displays the year as being the year 101!

var this_date_string = this_weekday_name_array[this_weekday] + ", " + this_month_name_array[this_month] + " " + this_date + ", " + this_year	//concat long date string
// -->
document.write(this_date_string)
}


function goWin() {
var mh = 424;
var mw = 450;
TheWin = window.open('','image','height=' + mh + ',width=' + mw + ',scrollbars=yes');
TheWin.resizeTo(mw+2,mh+30);
TheWin.document.write('<html>');
TheWin.document.write('<head><title>Units<\/title><link href="css/mer.css" type="text/css" rel="StyleSheet"><\/head><body>');
TheWin.document.write('<p>All units shown are available for immediate delivery<\/p><ul><li>Level 2 - Unit 1: Planning and Creating a Music Product <\/li><li>Level 2 - Unit 2: Exploring the Music Profession <\/li><li>Level 2 - Unit 3: Solo Musical Performance.<\/li><li>Level 2 - Unit 4: Exploring Musical Composition <\/li><li>Level 2 - Unit 5: Developing as a Musical Performer <\/li><li>Level 2 - Unit 6: Working as a Musical Ensemble <\/li><li>Level 2 - Unit 7: Introducing DJ Technology <\/li><li>Level 2 - Unit 8: Rehearsal Techniques for Musicians. <\/li><li>Level 2 - Unit 9: Producing a Musical Recording <\/li><li>Level 2 - Unit 10: Understanding Music <\/li><li>Level 2 - Unit 11: Exploring Computer Systems Used by Musicians <\/li><li> Level 2 - Unit 12: Exploring Musical Improvisation <\/li><li> Level 2 - Unit 13: The Musical World <\/li><li> Level 2 - Unit 14: Exploring an Area of Music <\/li><li> Level 3 - Unit 1: Analogue and Digital Audio Principles <\/li><li> Level 3 - Unit 2: Arranging Music <\/li><li> Level 3 - Unit 3: Audio Engineering <\/li><li> Level 3 - Unit 4: Aural Perception Skills <\/li><li> Level 3 - Unit 5:Classical Music in Practice <\/li><li> Level 3 - Unit 6: Composing Music <\/li><li> Level 3 - Unit 7: Computer Music Systems <\/li><li> Level 3 - Unit 8: Concert Production and Staging <\/li><li> Level 3 - Unit 9: Creating a Music Product <\/li><li> Level 3 - Unit 10: Creating and Marketing a Music Product <\/li><li> Level 3 - Unit 11:DJ Performance Technology <\/li><li> Level 3 - Unit 12: Improvising Music <\/li><li> Level 3 - Unit 14: Introduction to Acoustics <\/li><li> Level 3 - Unit 15: Listening Skills for Musicians <\/li><li> Level 3 - Unit 16: Major Music Project <\/li><li> Level 3 - Unit 17: Modern Music Practice <\/li><li> Level 3 - Unit 18: Music and Society <\/li><li> Level 3 - Unit 19: Music and Sounds for Multimedia <\/li><li> Level 3 - Unit 20: Music in the Community <\/li><li> Level 3 - Unit 21: Music Performance Session Styles <\/li><li> Level 3 - Unit 22: Music Performance Techniques <\/li><li> Level 3 - Unit 23: Music Project <\/li><li> Level 3 - Unit 24: Music Sequencing <\/li><li> Level 3 - Unit 25: Music Technology in Performance <\/li><li> Level 3 - Unit 26: Music Theory and Harmony <\/li><li> Level 3 - Unit 27: Musical Theatre Performance <\/li><li> Level 3 - Unit 28: Operating Live Sound <\/li><li> Level 3 - Unit 29: Planning a Music Project <\/li><li> Level 3 - Unit 30: Planning a Music Recording <\/li><li> Level 3 - Unit 31: Pop Music in Practice <\/li><li> Level 3 - Unit 32: Singing Techniques and Performance <\/li><li> Level 3 - Unit 33: Sound Creation and Manipulation <\/li><li> Level 3 - Unit 34: Sound Recording Techniques <\/li><li> Level 3 - Unit 35: Special Subject Investigation <\/li><li> Level 3 - Unit 36: Studying Music From Around the World <\/li><li> Level 3 - Unit 37: The Functional Music Keyboard <\/li><li> Level 3 - Unit 38: The Music Freelance World <\/li><li> Level 3 - Unit 39: The Sound and Music Industry <\/li><li> Level 3 - Unit 40: Working and Developing as a Music Ensemble <\/li><li>Level 3 - Unit 41: Working with Music Notation Packages <\/li><\/ul><hr><p align="right"><a href="#" onclick="self.close();return false;">Close Window<\/a><\/p><\/body><\/html>');
TheWin.moveTo(5,5);
TheWin.focus();
}
