// JavaScript Document

var thumbType= 'ill'
//enter the illustration image titles below
illTitles = new Array(
					  "Illustration <I>I sail the seas with captain Ben</I> from a children's story <I>What I Did This Weekend<I> ",
					  " Billboard design & copywriting for Southend United FC - to promote their new stadium plans",
					  " Type design for sampler of <I>The Wild Things</I> by Dave Eggers ",
					  "Lauren Loves Science ",
					  "Literary Sampler - cover design & typesetting for Penguin",
					  "Leaflet for a journals publisher",
					  "Branding and stationary designed for a Psychologist",
					  "Advert for a Royal Shakespeare Company title ",
					  "Cover Design ",
					  "Leaflet for a tearoom",
					  "Cover Design",
					  "Ballerina",
					  "Cover for <I>The Palgrave Student Planner 2009-2010</I>",
					  "Picture research, design and typesetting for the <BR> European Generic Medicines Association Handbook",
					  "Mr Miller, an illustration from a children's book about a car boot salesman",
					  "Cowboy",
					  "Illustration for Christian Aid to illustrate different 'problems'",
					  "Leaflet for Southend United FC",
					  "Jenny practices the guitar",
					  "Logo design and stationary for The Ink Team"
					  )
//enter the design image titles below
/*desTitles = new Array(
					  "Literary Sampler - cover design & typesetting for Penguin ",
					  "Picture research, design and typesetting for the <BR> European Generic Medicines Association Handbook",
					  "Leaflet and branding designed for Chambers Psychology, promoting a new practice",
					  "Poster for a Royal Shakespeare Company book",
					  "Leaflet for a journal publisher - including copywriting of taglines",
					  "Advert for Palgrave Macmillan for the Times Literary Supplement",
					  "Magazine spread on Monopoly",
					  "Programme designed for the Southampton FC Academy team",
					  "Birthday Party Invite",
					  "Leaflet design for a tearoom",
					  "Leaflet for  journals publisher",
					  "School Summer Ball invite",
					  "Leaflet for  journals publisher",
					  "Book cover design & typesetting",
					  "Catalogue for journals publisher",
					  "Billboard design & copywriting for Southend FC",
					  "Logo design for theinkteam.com",
					  "Leaflet for Southend United"
					)*/

utTitles = new Array(
					  "'Good evening, Lady Penrose. A little chilly for September, is it not? Still, I am sure you do not require that neck-scarf. Here... let me remove it...'  So begins Gerald Hawke's classic gothic novel, The Night of Lord Viktor. If only all such horrors were contained within the pages of fiction. There is but one way to be prepared: purchase issue 1 of Unforeseen Terrors (October 2003). Don’t be seen un-dead without it.",
					  "Thunder! Lightning! Tornadoes! Blizzards! Dampness! These are the weapons brandished by Mother Nature in her remorseless crusade ‘gainst mankind. If we are to triumph, we must be prepared. What if you discover that your children have been born aloft upon the Northern Wind, ‘Cyclor’? What if you awaken to find your face frozen stiff due to the ever increasing incidents of the icy-pops? What if a freak electrical storm produces mass hair fuzzification, just moments before you have to make that vital presentation to the board? Would you know what to do?  <BR>No? Then you need Unforeseen Terrors: Inclement Weather. Don’t let anything rain on your parade.",
					  "Issue 3 \(June 2004\).That guy on the other side of the road? He's recording your thoughts. The 'cat' sat by the bins over there? Actually it's monitoring your every move. The milkman? It's not just empty bottles he's collecting... You could continue your life in blissful ignorance, or you could buy Unforeseen Terrors - because if you don't, we'll know about it.",
					  "Quoth Shakespeare, ''tis better to be prepared than to not be prepared? That is the question, Timmy'. We can save you from poor productions of <I>His Lordship's Conundrum</I>, <I>Skeletron</I> and <I>The Life of Tiffin</I>. We can protect you from skull-wielding hams. 'We have the power' - Dame Judi Dench.   ",
					  "Some astonishing facts; it destroys families, creates unemployment, and in the last year alone it caused at least 50,000 fatalities. Yet the 'government' refuses to take a stand, is too cowardly to take on an industry worth literally hundreds of pounds. it's up to you - stay safe, be <I>Cheese</I> aware.    ",
					  "Coming soon... London: look out - there be danger in them there streets."
					)
		
function loadIllThumbs()
		{
			thumbType= 'ill'
				for (i=1; i<=illTitles.length; i++)
				{
					//var icount=i+1;
					var thumbBoxId = 'thumbbox'+i;
					var thumbPic = "images/gallery/pic"+i+"thumb.jpg";
					var thumbBox = document.getElementById(thumbBoxId);
					thumbBox.src = thumbPic;
				}
			/*var designTab = document.getElementById('designtab');
			designTab.style.color = '#999999';
			designTab.style.borderBottomColor = '#000000';
			designTab.style.borderTopColor = '#999999';
			designTab.style.borderRightColor = '#999999';
			designTab.style.borderLeftWidth = '0px'
			var illTab = document.getElementById('illtab');
			illTab.style.color = '#000000';
			illTab.style.borderBottomColor = '#ffffff';
			illTab.style.borderTopColor = '#000000';
			illTab.style.borderLeftColor = '#000000';
			illTab.style.borderRightWidth = '1px'*/
		}
		
/*function loadDesignThumbs()
		{
			thumbType= 'design'
				for (i=1; i<=desTitles.length; i++)
				{
					//var icount=i+1;
					var thumbBoxId = 'thumbbox'+i;
					var thumbPic = "images/design/pic"+i+"thumb.jpg";
					var thumbBox = document.getElementById(thumbBoxId);
					thumbBox.src = thumbPic;
				}
			var illTab = document.getElementById('illtab');
			illTab.style.color = '#999999';
			illTab.style.borderBottomColor = '#000000';
			illTab.style.borderTopColor = '#999999';
			illTab.style.borderLeftColor = '#999999';
			illTab.style.borderRightWidth = '0px'
			var designTab = document.getElementById('designtab');
			designTab.style.color = '#000000';
			designTab.style.borderBottomColor = '#ffffff';
			designTab.style.borderTopColor = '#000000';
			designTab.style.borderRightColor = '#000000';
			designTab.style.borderLeftWidth = '1px'
		}*/

function loadIssThumbs()
		{
			//thumbType= 'design'
				for (i=1; i<=utTitles.length; i++)
				{
					//var icount=i+1;
					var thumbBoxId = 'utthumbbox'+i;
					var thumbPic = "images/ut/issue"+i+"thumb.jpg";
					var thumbBox = document.getElementById(thumbBoxId);
					thumbBox.src = thumbPic;
				}
		}
		
function selectHomeImage()
		{
			var homeImage = document.getElementById('homeimage');
			var randomNum = Math.floor((Math.random()*illTitles.length)+1);
			var thePic = "images/illustration/pic"+randomNum+".jpg";
			homeImage.src = thePic;
		}
		
function loadGalImage(picNum)
		{
			var imageCell = document.getElementById('imagecell');
			var imageTitle = document.getElementById('imagetitle');
			//if (thumbType=='ill')
				//{
					if (picNum>illTitles.length)
						{
							return true
						}
					else
						{
							var thePic = "images/gallery/pic"+picNum+".jpg";
							imageCell.src = thePic;
							imageTitle.innerHTML = illTitles[picNum-1]
						}
				/*}
			else
				{
					if (picNum>desTitles.length)
						{
							return true
						}
					else
						{
							var thePic = "images/design/pic"+picNum+".jpg";
							imageCell.src=thePic;
							imageTitle.innerHTML = desTitles[picNum-1]
						}
				}*/
		}
		
function loadutImage(picNum)
		{
			var imageCell = document.getElementById('utimagecell');
			var imageTitle = document.getElementById('utissuetext');
					if (picNum>utTitles.length)
						{
							return true
						}
					else
						{
							var thePic = "images/ut/issue"+picNum+".jpg";
							imageCell.src = thePic;
							imageTitle.innerHTML = utTitles[picNum-1]
						}
		}

function addMake() {
			var name = 'nicky';
			var at = '@';
			var domain1 = 'nickyborowiec.';
			var domain2 = 'co.uk'
			var emailtext = document.getElementById('emailtext');
			var text = name+at+domain1+domain2
			emailtext.innerHTML = text;
}
		
	function openNewsWindow()
		{
			var newsWindow = window.open("news.html", "newsWin", "scrollbars=yes, resizable=no, width=535, height=660")
		}
		



		

