// JavaScript Document

/*
The code in this file or document and its designs, methods, data, know-how and all other related elements are the property of LUXSON ltd © Copyright 2011-2012 and/or may contain code operated under third party licence(s); unauthorised use is therefore prohibited, including (without limitation) copying, editing, adapting, reverse engineering or any other similar or related action, in part or in full. Separate rights may also exist for LUXSON and/or client and/or third party content and/or services. For licensing information please contact LUXSON ltd.
*/

// Code to randomly display the footer strapline upon refreshing the page

var footerStrapline = new Array()
	
	//Random-loading images
	footerStrapline[0] = 'images/footer/footer-strapline-01.gif' // replace with names of images
	footerStrapline[1] = 'images/footer/footer-strapline-02.gif' // replace with names of images
	footerStrapline[2] = 'images/footer/footer-strapline-03.gif' // replace with names of images
	footerStrapline[3] = 'images/footer/footer-strapline-04.gif' // replace with names of images
	footerStrapline[4] = 'images/footer/footer-strapline-05.gif' // replace with names of images
	footerStrapline[5] = 'images/footer/footer-strapline-06.gif' // replace with names of images
	footerStrapline[6] = 'images/footer/footer-strapline-07.gif' // replace with names of images
	footerStrapline[7] = 'images/footer/footer-strapline-08.gif' // replace with names of images
	footerStrapline[8] = 'images/footer/footer-strapline-09.gif' // replace with names of images
	footerStrapline[9] = 'images/footer/footer-strapline-10.gif' // replace with names of images
	/*footerStrapline[10] = 'images/footer/footer-strapline-11.gif' // replace with names of images
	footerStrapline[11] = 'images/footer/footer-strapline-12.gif' // replace with names of images
	footerStrapline[12] = 'images/footer/footer-strapline-13.gif' // replace with names of images
	footerStrapline[13] = 'images/footer/footer-strapline-14.gif' // replace with names of images
	footerStrapline[14] = 'images/footer/footer-strapline-15.gif' // replace with names of images*/
	
	var j = 0
	var p = footerStrapline.length;
	var preBuffer = new Array()
	
	for (i = 0; i < p; i++){
		preBuffer[i] = new Image()
		preBuffer[i].src = footerStrapline[i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	
	function showImage(){
		if(whichImage==0){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="The staff are extremely caring and have superb relationships with the children.">');
		}
		else if(whichImage==1){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="The atmosphere is busy and full of fun and my daughter has absolutely thrived at Play Works.">');
		}
		else if(whichImage==2){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="As an only child my daughter has made some lovely friendships with children of all ages.">');
		}
		else if(whichImage==3){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="The activities that the children do are both fun and educational.">');
		}
		else if(whichImage==4){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="You only have to walk in to the building to sense the warm and friendly atmosphere.">');
		}
		else if(whichImage==5){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="I would recommend Play Works as an outstanding provision of childcare in the area.">');
		}
		else if(whichImage==6){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="The friendly approach, level of care given and commitment shown to the children by all the staff is second to none.">');
		}
		else if(whichImage==7){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="We would like to express our gratitude for the excellent service and educational development given to our child.">');
		}
		else if(whichImage==8){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="The care offered went way beyond what one would normally expect.">');
		}
		else if(whichImage==9){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="966" height="63" alt="Play Work\'s support is immeasurable and shows genuine compassion and outstanding pastoral care.">');
		}
		/*else if(whichImage==10){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="952" height="35" alt="Dancing is moving to the music without stepping on anyone\'s toes.">');
		}
		else if(whichImage==11){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="952" height="35" alt="The dance is a poem of which each movement is a word.">');
		}
		else if(whichImage==12){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="952" height="35" alt="Great dancers are not great because of their technique, but because of their passion.">');
		}
		else if(whichImage==13){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="952" height="35" alt="It takes an athlete to dance, but an artist to be a dancer.">');
		}
		else if(whichImage==14){
			document.write('<img src="'+footerStrapline[whichImage]+'" width="952" height="35" alt="Dance like nobody\'s looking.">');
		}*/
	}
