

// ============================================
// :: NRYA Random Home Page Quote and Images ::
// ============================================


// Number of Quotes
var quotenumber = 8 ;


// Number of Images
var imagenumber = 12 ;


// Define Quotes
quotes = new Array
quotes[1] = "quote_01.gif"
quotes[2] = "quote_02.gif"
quotes[3] = "quote_03.gif"
quotes[4] = "quote_04.gif"
quotes[5] = "quote_05.gif"
quotes[6] = "quote_06.gif"
quotes[7] = "quote_07.gif"
quotes[8] = "quote_08.gif"


// Define Quote Text
quotetext = new Array
quotetext[1] = "&quot;I have a long-term interest in it and I can practice my skills in a fun way.&quot; &#150; Alex Tyerman"
quotetext[2] = "&quot;Even though you're learning stuff, it is not like school.&quot; &#150; Naomi Adams"
quotetext[3] = "&quot;It shows you things you didn't think you could do.&quot; &#150; Katie Cosgrove"
quotetext[4] = "&quot;I like drama because you get to see your friends.&quot; &#150; Alice Lye"
quotetext[5] = "&quot;NRYA is wicked and we play great games and the plays that we do are great.&quot; &#150; Susie Bracey"
quotetext[6] = "&quot;The plays are fun because you get to be other characters and not yourself.&quot; &#150; Alice Bahra"
quotetext[7] = "&quot;Drama is fun, it builds your confidence and you get to make new friends.&quot; &#150; Joanna Reynolds"
quotetext[8] = "&quot;I really like doing the plays.&quot; &#150; Grace Ackerman"


// Define Images
images = new Array
images[1] = "image_01.jpg"
images[2] = "image_02.jpg"
images[3] = "image_03.jpg"
images[4] = "image_04.jpg"
images[5] = "image_05.jpg"
images[6] = "image_06.jpg"
images[7] = "image_07.jpg"
images[8] = "image_08.jpg"
images[9] = "image_09.jpg"
images[10] = "image_10.jpg"
images[11] = "image_11.jpg"
images[12] = "image_12.jpg"
images[13] = "image_13.jpg"
images[14] = "image_14.jpg"
images[15] = "image_15.jpg"
images[16] = "image_16.jpg"
images[17] = "image_17.jpg"


// Generate Random Quote Number
var randq = Math.round( (quotenumber-1) * Math.random()) + 1 ;


// Generate Random Image Numbers
var rand1 = Math.round( (imagenumber-1) * Math.random()) + 1 ;
do { var rand2 = Math.round( (imagenumber-1) * Math.random()) + 1 }
   while (rand2 == rand1);
do { var rand3 = Math.round( (imagenumber-1) * Math.random()) + 1 }
   while (rand3 == rand2 || rand3 == rand1);
do { var rand4 = Math.round( (imagenumber-1) * Math.random()) + 1 }
   while (rand4 == rand3 || rand4 == rand2 || rand4 == rand1);


// Write Table, Quote and Images
document.write('<table width="760" border="0" cellspacing="5" cellpadding="0">');
document.write('<tr align="left" valign="top">');
document.write('<td width="290" class="quotes"><img src="http://www.nrya.co.uk/media/home_quotes/' + quotes[randq] + '" width="290" height="80" border="0" lowsrc="http://www.nrya.co.uk/http://www.nrya.co.uk/media/common/spacer.gif" alt="' + quotetext[randq] + '"></td>');
document.write('<td width="110" class="quotes"><img src="http://www.nrya.co.uk/media/home_images/' + images[rand1] + '" width="110" height="80" border="0" lowsrc="http://www.nrya.co.uk/media/home_images/image_00.gif"></td>');
document.write('<td width="110" class="quotes"><img src="http://www.nrya.co.uk/media/home_images/' + images[rand2] + '" width="110" height="80" border="0" lowsrc="http://www.nrya.co.uk/media/home_images/image_00.gif"></td>');
document.write('<td width="110" class="quotes"><img src="http://www.nrya.co.uk/media/home_images/' + images[rand3] + '" width="110" height="80" border="0" lowsrc="http://www.nrya.co.uk/media/home_images/image_00.gif"></td>');
document.write('<td width="110" class="quotes"><img src="http://www.nrya.co.uk/media/home_images/' + images[rand4] + '" width="110" height="80" border="0" lowsrc="http://www.nrya.co.uk/media/home_images/image_00.gif"></td>');
document.write('</tr>');
document.write('</table>');

