// JavaScript Document

var thumbType= 'ill'
//enter the illustration image titles below (first 9 on first row, second 9 on second row)
illTitles = new Array(
					  "Cover design for <I>The Wild Girl</I>, published by Random House",
					  "Cover design for <I>A Hat Full of Sky</I>, published by Random House",
					  "Poster designed for Project Baranovo's charity ball",
					  "Cover design for <I>The Tale of Tales</I>, published by Random House",
					  "Selection of catalogues designed and typeset for Palgrave Macmillan",
					  "Cover design for the <I>The Lady Grace Mysteries</I> series, published by Random House",
					  "Cover design for the SCBWI Anthology, <I>Undiscovered Voices</I>",
"Cover design for <I>Dasiy and the Trouble with Life</I>, published by Random House",
					  "Cover designs for <I>The Neverending Story</I> and <I>Momo</I>, published by Puffin",
					  "Typographic work created for the Random Project, exhibited at the London Design Festival 2006",
					  "Cover and layout design for <I>The Adventures of Pinkie</I> series, published by Random House",
					  "Cover design for <I>A Child's Garden of Verses</I>, published by Puffin",
					  "Cover design for <I>Rosie's Walk</I>, published by Random House",
					  "Cover design for <I>Egg Drop</I>, published by Random House",
					  "Cover design and illustration for <I>What's in my Pocket?</I>, published by Random House",
					  "Design and illustration for <I>What's in my Pocket?</I>, published by Random House",
					  "Cover design for <I>Greed, Seeds and Slavery</I>, published by Random House",
					  "Cover design for <I>The Switchers Trilogy</I>, published by Random House"
					  )
		
//this function loads the thumbnails from the image folder
function loadIllThumbs()
		{
				for (i=1; i<=illTitles.length; i++)
				{
					//var icount=i+1;
					var thumbBoxId = 'thumbbox'+i;
					var thumbPic = "images/illustration/pic"+i+"thumb.jpg";
					var thumbBox = document.getElementById(thumbBoxId);
					thumbBox.src = thumbPic;
				}
		}
	
//this function loads the selected image in to the big image window
function loadGalImage(picNum)
		{
			var imageCell = document.getElementById('imagecell');
			var imageTitle = document.getElementById('imagetitle');
			var thePic = "images/illustration/pic"+picNum+".jpg";
			imageCell.src = thePic;
			imageTitle.innerHTML = illTitles[picNum-1]
		}
		
function addMake() {
			var name = 'becky';
			var at = '@';
			var domain1 = 'beckychilcott.';
			var domain2 = 'co.uk'
			var emailtext = document.getElementById('emailtext');
			var text = 'email: '+name+at+domain1+domain2
			emailtext.innerHTML = text;
}


