// Staff popup functions and variable declarations

var MissBates = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Miss Bates</h2></center><p>Miss Bates works in Class 2 and has been at our school for 6 years.</p><p>She enjoys D. T. and Art in school the most.</p><p>When she is not at school, she likes to do sewing and cook.</p><p>Her favourite food is Indian.</p><p>If Miss Bates was not at our school, she would like to have her own little coffee shop.</p></div>";
var picMissBates="MissBates.jpg\" alt=\"Miss Bates\" title=\"Miss Bates\">";

var MrGray = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mr Gray</h2></center><p></p></div>";
var picMrGray="MrGray.jpg\" alt=\"Mr Gray\" title=\"Mr Gray\">";

var MrsBateman = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Bateman</h2></center><p>Mrs Bateman has lots of responsibilities in our school and has been here for 13 years. She enjoys the cosy, friendly atmosphere in school. When she is not at school, she likes to race her Huskies. Her favourite food is pizza. If Mrs Bateman was not at our school, she would like to own her own shop.</p></div>";
var picMrsBateman="MrsBateman.jpg\" alt=\"Mrs Bateman\" title=\"Mrs Bateman\">";

var MrsBolton = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Bolton</h2></center><p>Mrs Bolton works in Early Years and has been at our school for 13 years. She enjoys the outdoor classroom the most. When she is not at school, she likes to spend time in the greenhouse and garden. Her favourite food is Sunday dinner. If Mrs Bolton was not at our school, she would like to work in her greenhouse and garden all day long.</p></div>";
var picMrsBolton="MrsBolton.jpg\" alt=\"Mrs Bolton\" title=\"Mrs Bolton\">";

var MrsDonaldson = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Donaldson</h2></center><p>Mrs Donaldson is the Head Teacher and works in Class 2. She has been at our school for 2 years.</p><p>She enjoys R.E. with all the children the most.</p><p>When she is not at school, she likes to go to ballroom dancing, eating out and going to the theatre.</p><p>Her favourite food is fish and chips. </p><p>If Mrs Donaldson was not at our school, she would like to work with animals or work in Next.</p></div>";
var picMrsDonaldson="MrsDonaldson.jpg\" alt=\"Mrs Donaldson\" title=\"Mrs Donaldson\">";

var MrsGraham = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Graham</h2></center><p>Mrs Graham works in  Class 2 and has been at our school for 2 years.</p><p>She enjoys P.E. in school the most.</p><p>When she is not at school, she likes to go horse riding.</p><p>Her favourite food is Italian.</p><p>If Mrs Graham was not at our school, she would like to be a top equestrian eventer.</p></div>";
var picMrsGraham="MrsGraham.jpg\" alt=\"Mrs Graham\" title=\"Mrs Graham\">";

var MrsGray = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Gray</h2></center><p>Mrs Gray works in  the office and has been at our school for 13 years.</p><p>She enjoys being involved with the children the most.</p><p>When she is not at school, she likes to socialise with her friends and family.</p><p>Her favourite food is Italian .</p><p>If Mrs Gray was not at our school, she would like to do more work in the Guiding movement.</p></div>";
var picMrsGray="MrsGray.jpg\" alt=\"Mrs Gray\" title=\"Mrs Gray\">";

var MrsHart = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Hart</h2></center><p>Mrs Hart works in  Class 1 and has been at our school for 8 years.</p><p>She enjoys  Literacy in school the most.</p><p>When she is not at school, she likes to help on the farm and spend time with her family.</p><p>Her favourite food is Roast Beef and Yorkshire Pudding.</p><p>If Mrs Hart was not at our school, she would like to work in a vets.</p></div>";
var picMrsHart="MrsHart.jpg\" alt=\"Mrs Hart\" title=\"Mrs Hart\">";

var MrsHastie = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Hastie</h2></center><p>Mrs Hastie works in the kitchen and has been at our school for 4 years.</p><p>She enjoys cooking in school the most.</p><p>When she is not at school, she likes to look after her dogs and spend time with her family.</p><p>Her favourite food is Fillet Steak.</p><p>If Mrs Hastie was not at our school, she would like to be a race horse trainer.</p></div>";
var picMrsHastie="MrsHastie.jpg\" alt=\"Mrs Hastie\" title=\"Mrs Hastie\">";

var MrsStephenson = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Stephenson</h2></center><p>Mrs Stephenson works in  Class 1 and has been at our school for 6 years.</p><p>She enjoys P.E. and Science in school the most.</p><p>When she is not at school, she likes to go for walks with her dog and watch her boys when they play football.</p><p>Her favourite food is Indian.</p><p>If Mrs Stephenson was not at our school, she would like to be a lady of leisure.</p></div>";
var picMrsStephenson="MrsStephenson.jpg\" alt=\"Mrs Stephenson\" title=\"Mrs Stephenson\">";

var MrsStorey = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Storey</h2></center><p>Mrs Storey works in Class 2 and has been at our school for 10 years.</p><p>She enjoys Literacy in school the most.</p><p>When she is not at school, she likes to walk the dog and read.</p><p>Her favourite food is Indian.</p><p>If Mrs Storey was not at our school, she would like to be a nurse.</p></div>";
var picMrsStorey="MrsStorey.jpg\" alt=\"Mrs Storey\" title=\"Mrs Storey\">";

var MrsWoolley = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Woolley</h2></center><p>Mrs Woolley works in Early Years and has been at our school for 8 years. She enjoys the outdoor classroom the most. When she is not at school, she likes to spend her time shopping. Her favourite food is Tapas. If Mrs Woolley was not at our school, she would like to have her own book shop.</p></div>";
var picMrsWoolley="MrsWoolley.jpg\" alt=\"Mrs Woolley\" title=\"Mrs Woolley\">";

var MrsEltringhamDavison = "<div style=\"background-color:#ffffff;border:2px solid #000080;padding:5px;padding-top:10px\"><center><h2>Mrs Eltringham-Davison</h2></center><p></p></div>";
var picMrsEltringhamDavison="MrsEltringham-Davison.jpg\" alt=\"Mrs Eltringham-Davison\" title=\"Mrs Eltringham-Davison\">";

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var text = new Array(MissBates,MrGray,MrsBateman,MrsBolton,MrsDonaldson,MrsGraham,MrsGray,MrsHart,MrsHastie,MrsStephenson,MrsStorey,MrsWoolley,MrsEltringhamDavison);
var picture = new Array(picMissBates,picMrGray,picMrsBateman,picMrsBolton,picMrsDonaldson,picMrsGraham,picMrsGray,picMrsHart,picMrsHastie,picMrsStephenson,picMrsStorey,picMrsWoolley,picMrsEltringhamDavison);

// open a window to hold profile
var w;

function makeWindow(n)
  {
/*
		if (w != null)
			{
				w.close();
			}
*/
		var myName=name[n];
		var myText=text[n];
		var myPic=picture[n];

	//myText="Hello";
		w=window.open("","profile","resizable,status,width=800,height=700");
		w.moveTo(50,0);
	//	w.screenY=0;
		w.focus();

		var d=w.document;

		d.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Tritlington First School - Staff Portraits</title><link rel = "stylesheet" type = "text/css" href = "styles/style.css"><style type = "text/css"> h1 {font-size:30pt;font-weight:bold;color:#ffff00} --></style></head><body>');
		//d.write('<h1 style="text-align:center;color:#ffff00">'+myName+'</h1>');

		d.write('<img style="position:absolute;top:20px;border:2px #000080 solid" src="pix/staff/'+myPic);

		d.write('<div style="position:absolute;top:100px;left:530px;text-align:left;color:#000080;margin-right:10px">'+myText+'</div>');

		d.write('</body></html>');

		d.close();


	}

function closeWindow()
	{
		if (w != null)
			{
				w.close();
			}
	}

var keyText=new Array ("Gifted and Talented Co-ordinator","Special Educational Needs","Ethnic Minority, Travellers and Asylum Seekers","Every Child Matters","Teacher Preparation, Planning and Assessment time");

function pop(n,a,b)
  {
		x=a-300;
		y=b-200;
		document.getElementById("pop").innerHTML="<table style=\"background-color:#ffee00;border:1px groove #000080;color:#000080;\"><tr><td>"+keyText[n]+"</td></tr></table>";
		document.getElementById("pop").style.top=""+y+"px";
		document.getElementById("pop").style.left=""+x+"px";
  }

function poppop(n)
  {
	document.getElementById("pop").innerHTML="";
  }
