document.write("<script type='text/javascript' src='http://rspca.m-corpdevelopment.com/csi/prototype-1.6.0.2.js'\></script>");
				// call this function from form of html
				function create_div_dynamic(){

					var dv = new Element('div', { 'id': 'disableContent' }).setStyle({opacity: 0.5});
					document.body.appendChild(dv);

					var fullWrapper = new Element('div', { 'id': 'fullWrapper' });
					document.body.appendChild(fullWrapper);

						var IpopTop = (document.body.offsetHeight - 600)/2;
						var IpopLeft = (document.body.offsetWidth - 600)/2;

						//IE fix, if top < 0 (off screen) align to top of browser content window
						if (IpopTop < 0)
							IpopTop = 0;

						$(fullWrapper).setStyle({
							left: IpopLeft ,
							top: 10
						});


						var skipContent = new Element('div', { 'id': 'skipContent','class': 'access' });
						fullWrapper.appendChild(skipContent);

							var skipLink = new Element('a', { 'href': '#pageWrap' });
							skipLink.innerHTML='Skip to page content';
							skipContent.appendChild(skipLink);

						var header = new Element('div', { 'id': 'header' });
						fullWrapper.appendChild(header);

							var headerImg = new Element('img', { 'src': 'http://rspca.m-corpdevelopment.com/images/RSPCAlogo.gif', 'title':'RSPCA education partners in learning','alt':'RSPCA education partners in learning' });
							header.appendChild(headerImg);

							var exitQuestionnaire = new Element('a', { 'id': 'exitQuestionnaire','href':'javascript:clear();'});
							header.appendChild(exitQuestionnaire);

								var exitQuestionnaireImg = new Element('img', { 'src': 'http://rspca.m-corpdevelopment.com/images/exit.gif', 'title':'Exit questionnaire','alt':'Exit questionnaire' });
								exitQuestionnaire.appendChild(exitQuestionnaireImg);

						var pageWrap = new Element('div', { 'id': 'pageWrap' });
						fullWrapper.appendChild(pageWrap);

						
							pageTitle = new Element('h1');
							pageTitle.innerHTML='Welcome to the RSPCA\'s education website.';
							pageWrap.appendChild(pageTitle);

							var hrDiv = new Element('div', { 'class': 'hr' });
							pageWrap.appendChild(hrDiv);

								var hr = new Element('hr');
								hrDiv.appendChild(hr);

							var desc = new Element('p', { 'class': 'clearfix' });
							pageWrap.appendChild(desc);
							//desc.appendChild(descImg);
							desc.innerHTML='Before you continue please answer the following quick question. <br /><br />Where did you hear about the RSPCA education website?';

							hrDiv = new Element('div', { 'class': 'hr' });
							pageWrap.appendChild(hrDiv);

								hr = new Element('hr');
								hrDiv.appendChild(hr);

							var form = new Element('form', { 'id': 'index', 'name': 'index', 'action': 'http://rspca.m-corpdevelopment.com/questionProcessor.aspx', 'method': 'post' }).setStyle({opacity: 1});
							pageWrap.appendChild(form);


								input = document.createElement('input');
								input.setAttribute('type','hidden');
								input.setAttribute('name','question');
								input.setAttribute('value','1');
								input.setAttribute('id','question');
								form.appendChild(input);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','itt');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','itt');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','itt');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='Initial Teacher Training (ITT)';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','inset');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','inset');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','inset');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='In-service training (INSET) including twilight sessions at the end of the school day';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','wis');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','wis');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','wis');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='Work in schools (directly at my school with an education adviser from the RSPCA)';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','bett');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','bett');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','bett');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='BETT Show, Education Show or ASE Conference';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','laa');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','laa');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','laa');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='Local Authority advisor';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','foc');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','foc');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','foc');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='Friend or colleague';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','aw');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','aw');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','aw');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='Another website';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','am');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','am');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','am');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='A magazine';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','other');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','other');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','other');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='Other';
							fieldset.appendChild(label);


								

							fieldset = document.createElement('fieldset');
							form.appendChild(fieldset);

							label = document.createElement('label');
							label.setAttribute('for','otherText');
							label.setAttribute('style','font-size: 1em;');
							label.innerHTML='';
							fieldset.appendChild(label);

							input = document.createElement('textarea');
							input.setAttribute('name','otherText');
							input.setAttribute('id','otherText');
							input.setAttribute('value','');
							fieldset.appendChild(input);

							

							fieldset = document.createElement('fieldset');
							fieldset.setAttribute('class','checkbox');
							form.appendChild(fieldset);



							input = document.createElement('input');
							input.setAttribute('type','checkbox');
							input.setAttribute('name','answeredAlready');
							input.setAttribute('value','1');
							input.setAttribute('style','float:left');
							input.setAttribute('id','answeredAlready');
							fieldset.appendChild(input);

							label = document.createElement('label');
							label.setAttribute('for','answeredAlready');
							label.setAttribute('style','font-size: 1em;width:93%; float:right; ');
							label.innerHTML='I have answered this question before';
							fieldset.appendChild(label);


								

								hrDiv = new Element('div', { 'class': 'hr' });
								form.appendChild(hrDiv);

									hr = new Element('hr');
									hrDiv.appendChild(hr);


								fieldset = new Element('fieldset', { 'id': 'controls' });
								form.appendChild(fieldset);

									submit = document.createElement('input');
									submit.setAttribute('type','image');
									submit.setAttribute('value','Submit');
									submit.setAttribute('class','submit');
									submit.setAttribute('src','http://rspca.m-corpdevelopment.com/images/submit.gif');
									fieldset.appendChild(submit);

				

						var footer = new Element('div', { 'id': 'footer' });
						fullWrapper.appendChild(footer);

							var footerLink = new Element('a', { 'href':'http://www.rspca.org.uk/questionnairetermsandconditions','style':'font-size: 1.3em;','target':'new'});
							footerLink.innerHTML='Terms and Conditions';
							footer.appendChild(footerLink);

						var skipMenuHome = new Element('div', { 'id': 'skipMenuHome','class': 'access' });
						skipMenuHome.innerHTML='Skip ';
						fullWrapper.appendChild(skipMenuHome);

							skipLink = new Element('a', { 'href': '#skipContent' });
							skipLink.innerHTML='top of page';
							skipMenuHome.appendChild(skipLink);

				}
			
				function loader() {
					create_div_dynamic();
				}
			
				function clear() {
					var element = document.getElementById ('disableContent');
					element.style.display='none';

					element = document.getElementById ('fullWrapper');
					element.style.display='none';

				}

				function ocClear() {
					try {
						sIndex = navigator.userAgent.toLowerCase().indexOf('safari');	
						if (sIndex > 0) {

							window.location= ('http://rspca.m-corpdevelopment.com/closeRedirect.aspx?re=' + escape(window.location));
						} else {
							clear();
						}
					}
					catch (e) {
						//alert (e.message);
					}
				}


				function openwindow()
				{
					sIndex = navigator.userAgent.toLowerCase().indexOf('safari');	
					if (sIndex > 0) {
						window.open('http://rspca.m-corpdevelopment.com/questionOne.aspx?safari=1','mywindow','resizeable=1,width=620,height=650');
					} else {
						window.open('http://rspca.m-corpdevelopment.com/questionOne.aspx','mywindow','resizeable=1,width=620,height=650');
					}
				}
			//windowLoaded cookie == null
window.onload = loader;