/* <![CDATA[ */
if(!document.getElementById&&document.layers){window.onerror=function(){if(window.__onerror){window.__onerror();}return true;};} // suppress errors in NN4.x
var Is;(function(){
	Is=Is||{};Is.func=function(a){return typeof a=='function';};Is.obj=function(a){return(a&&typeof a=='object')||Is.func(a);};Is.alien=function(a){return Is.obj(a)&&typeof a.constructor!='function';};Is.array=function(a){return Is.obj(a)&&a.constructor==Array;};Is.bool=function(a){return typeof a=='boolean';};Is.def=function(){for(var i=0,r=true;i<arguments.length&&r;++i){r=(typeof arguments[i]!='undefined');}return r;};Is.empty=function(o){var i,v;if(Is.obj(o)){for(i in o){v=o[i];if(!Is.def(v)&&Is.func(v)){return false;}}}return true;};Is.nul=function(a){return typeof a=='object'&&!a;};Is.num=function(a){for(var i=0,r=true;i<arguments.length&&r;++i){r=(typeof arguments[i]=='number'||isFinite(arguments[i]));}return r;};Is.str=function(){for(var i=0,r=true;i<arguments.length&&r;++i){r=(typeof arguments[i]=='string');}return r;};
	Is.all=document.all?1:0;Is.lay=document.getElementById?false:document.layers?1:0;Is.w3c=document.getElementById?1:0;
	Is.Ice=navigator.__ice_version?navigator.__ice_version:0;Is.NS4=Is.lay;Is.IE4=(!Is.w3c&&Is.all);Is.IE5=(Is.w3c&&Is.all);Is.IE55=(Is.IE5&&(document.body&&document.body.contentEditable));Is.IE6=(Is.IE5&&(typeof document.compatMode!='undefined'));Is.Mac=((Is.IE4||Is.IE5)&&(/mac/i.test(navigator.appVersion)));Is.NS6=(Is.w3c&&!Is.all);Is.Opera=((Is.w3c||Is.all)&&window.opera);Is.OperaVer=Is.Opera&&(/opera/i.test(navigator.appName))?parseFloat(navigator.userAgent.substring(navigator.userAgent.search(/opera.[^ ]+/i)+6)):0;
	Is.Safari=(/safari/i.test(navigator.appVersion));
	Is.getAttribute=document.getAttribute?1:0;Is.setAttribute=document.setAttribute?1:0;
	if(typeof Document!='undefined'){
		if(!Document.selectSingleNode){Document.prototype.selectSingleNode=function(path){var r=this.evaluate(path,this,this.createNSResolver(this.documentElement),9,null);if(r.singleNodeValue){return r.singleNodeValue;}else{return(new DOMParser()).parseFromString('<empty/>','text/xml').documentElement;}};}
	}
	if(!document.getElementById){document.getElementById=new Function('id','f','if(document.layers){f=f||self;if(f.document.layers[id]){return f.document.layers[id];}for(var W=0,t;W<f.document.layers.length;++W){t=document.getElementById(id,f.document.layers[W]);}return t;}if(document.all&&document.all[id]){return document.all[id];}return null;');}
	if(!document.getElementsByTagName){document.getElementsByTagName=function(tag){var r=[];if(document.all){if(tag=='*'){return document.all;}var i=-1,el;while((el=document.all[++i])){if(el.tagName.toLowerCase()==tag.toLowerCase()){r.push(el);}}}return r.length?r:null;};}
	if(!document.getElementTextNS){
		document.getElementTextNS=function(prefix,local,parent,index){
			var r='';
			if(prefix&&document.all){r=parent.getElementsByTagName(prefix+':'+local)[index];}
			else{r=parent.getElementsByTagNameNS(prefix,local)[index];}
			return r?r.childNodes.length>1?r.childNodes[1].nodeValue:r.firstChild.nodeValue:'';
		};
	}
})();

// inheritance stuff...
(function(){
	Function.prototype.method=function(name,func){this.prototype[name]=func;return this;}
	Function.method('selfName',function(){var s;return(s=/function (\w+)/.exec(this.toString()))?s[1]:'(anonymous)';});
	if(!Is.func(Function.apply)){
		Function.method('apply',function(o,a){
			var r,x='____apply';if(!Is.obj(o)){o={};}o[x]=this;switch((a&&a.length)||0){
				case 0:r=o[x]();break;case 1:r=o[x](a[0]);break;case 2:r=o[x](a[0],a[1]);break;case 3:r=o[x](a[0],a[1],a[2]);break;case 4:r=o[x](a[0],a[1],a[2],a[3]);break;case 5:r=o[x](a[0],a[1],a[2],a[3],a[4]);break;case 6:r=o[x](a[0],a[1],a[2],a[3],a[4],a[5]);break;
				default:alert('Too many arguments to apply.');
			}delete o[x];return r;
		});
	}
	Function.method('inherits',function(parent){var d=0,p=(this.prototype=new parent());this.uber=function uber(name){var f,r,t=d,v=parent.prototype;if(t){while(t){v=v.constructor.prototype;--t;}f=v[name];}else{f=p[name];if(f==this[name]){f=v[name];}}++d;r=f.apply(this,Array.prototype.slice.apply(arguments,[1]));--d;return r;};return this;});
	Function.method('swiss',function(parent){for(var i=1,name;i<arguments.length;++i){name=arguments[i];this.prototype[name]=parent.prototype[name];}return this;});
})();

var DOTS="#define x_width 2\n#define x_height 1\nstatic char x_bits[]={0x01};";
// prototypes and initialisation
(function(){
	if(![].push){Array.method('push',function(){for(var i=0;i<arguments.length;++i){this[this.length]=arguments[i];}return this.length;});}
	if(![].pop){Array.method('pop',function(){var r=null;if(this.length){r=this[this.length-1];--this.length;}return r;});}
	if(![].copy){Array.method('copy',function(){var a=[];for(var i=0;i<this.length;++i){a[i]=this[i].copy?this[i].copy():this[i];}return a;});}
	if(![].concat){Array.method('concat',function(a){var b=this.copy();for(var i=0;i<a.length;++i){b.push(a[i]);}return b;});}
	if(![].reverse){Array.method('reverse',function(){var a=[],i=this.length;while(i>0){a.push(this[--i]);}return a;});}
	if(![].shift){Array.method('shift',function(){var r=null;if(this.length){r=this.reverse().pop();this.reverse();}return r;});}
	if(![].unshift){Array.method('unshift',function(){this.reverse();for(var i=0;i<arguments.length;++i){this.push(arguments[i]);}this.reverse();return this.length;});}
	if(![].splice){Array.method('splice',function(b,d){var m=b+d,af=this.slice(m),r=d>0?this.slice(b,m-1):[];for(var i=2;i<arguments.length;++i){af.unshift(arguments[i]);}if(b>0){this.slice(0,b).concat(af);}else{while(this.length){this.pop();}while(af.length){this.push(af.pop());}}return r;});}
	if(![].reduce){Array.method('reduce',function(template){var s='';for(var i=0;i<this.length;++i){s+=template(this[i]);}return s;});}
	if(![].within){Array.method('within',function(s,b){var r=false;for(var i=0;i<this.length&&r===false;++i){if(s==this[i]){r=true;}}return b?r?--i:-1:r;});}
	if(![].rand){Array.method('rand',function(c){if(!c||c===0){c=1;}for(var d=this.concat(),len=d.length,r=[],i=0,rnd=Math.random;i<c;++i){r[i]=d.splice((rnd()*len--)<<0,1);}return r;});}
	if(![].sortBy){Array.method('sortBy',function(){var a=arguments,len=a.length,f='return ',p=1,i,gA,s;if(len===1&&(a[0].constructor==Object||a[0].constructor==Array)&&((o=a=a[0]).constructor==Object)){p=0;}if(p&&(o={})){for(i=0;i<len;++i){o[a[i]]=1;}}gA=a.getAttribute?true:false;for(k in o){s=gA?'getAttribute(\''+k+'\')':k;var z=o[k]?['<','>']:['>','<'];f+='a.'+s+z[0]+'b.'+s+'?-1:a.'+s+z[1]+'b.'+s+'?1:';}return this.sort(new Function('a','b',f+'0'));});}
	Boolean.method('nAnd',function(b){b=Is.bool(b)?b:new Boolean(b);return (this&&b)?false:true;});
	Boolean.method('nOr',function(b){b=Is.bool(b)?b:new Boolean(b);return (!this&&!b)?true:false;});
	Boolean.method('xNOr',function(b){b=Is.bool(b)?b:new Boolean(b);return !this.xOr(b);});
	Boolean.method('xOr',function(b){b=Is.bool(b)?b:new Boolean(b);return (this&&!b)||(!this&&b);});
	String.method('quote',function(){return '"'+this.replace(/(["\\])/g,(Is.all||Is.w3c)?'\\$1':function(s){return '\\'+s})+'"';});
	String.method('supplant',function(o){var i,j,s=this,v;for(;;){i=s.lastIndexOf('{');if(i<0){break;}j=s.indexOf('}',i);if(i+1>=j){break;}v=o[s.substring(i+1,j)];if(!Is.str(v)&&!Is.num(v)){break;}s=s.substring(0,i)+v+s.substring(j+1);}return s;});
	String.method('toEntity',function(){return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');});
	String.method('toTitleCase',function(separator){if(!separator||!separator.length){separator=' ';}var a=this.split(separator),s=[];for(var i=0;i<a.length;++i){s.push(a[i].charAt(0).toUpperCase()+a[i].substr(1));}return s.join(separator);});
	String.method('trim',function(){return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/,'$1');});
	String.method('escapeHTML',function(){return this.replace(/\&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');});

	// mozilla equivalent for insertAdjacentElement and inner|outer HTML|Text in IE5+
	// workaround for Opera 8 (which doesn't handle __define[G|S]etter__)
	// a better way would be to emulate the getter / setter functionality...
	if(typeof HTMLElement!='undefined'){
		HTMLElement.method=Function.prototype.method;
		if(!HTMLElement.prototype.outerHTML){
			if(Is.Opera){HTMLElement.method('outerHTML',function(s){return s?(document.documentElement.outerHTML=s):document.documentElement.outerHTML;});}
			else{HTMLElement.prototype.__defineSetter__('outerHTML',function(s){var r=this.ownerDocument.createRange();r.setStartBefore(this);var df=r.createContextualFragment(s);this.parentNode.replaceChild(df,this);return this;});HTMLElement.prototype.__defineGetter__('outerHTML',function(){var aA=this.attributes,eT=['area','base','basefont','br','col','frame','hr','img','input','isindex','link','meta','param'],cA=['checked','compact','declare','defer','disabled','ismap','multiple','nohref','noresize','noshade','nowrap','readonly','selected'],t=this.tagName.toLowerCase(),s='<'+t;for(var i=0,a=aA[i].name.toLowerCase(),p=cA.within(a,true),v=aA[i].value,l=aA.length;i<l;++i){s+=' '+a+'="'+((p>-1&&!v.length)?cA[p]:v)+'"';}s+=(eT.within(t))?' />':'>'+this.innerHTML+'</'+t+'>';return s;});}
		}
		if(!HTMLElement.prototype.innerText){
			if(Is.Opera){HTMLElement.method('innerText',function(s){return s?(document.documentElement.innerText=s):document.documentElement.innerText;});}
			else{HTMLElement.prototype.__defineSetter__('innerText',function(s){this.innerHTML=s.escapeHTML();return this;});HTMLElement.prototype.__defineGetter__('innerText',function(){var r=this.ownerDocument.createRange();r.selectNodeContents(this);return String(r);});}
		}
		if(!HTMLElement.prototype.outerText){
			if(Is.Opera){HTMLElement.method('outerText',function(s){return s?(document.documentElement.outerText=s):document.documentElement.outerText;});}
			else{HTMLElement.prototype.__defineSetter__('outerText',function(s){this.outerHTML=s.escapeHTML();return this;});HTMLElement.prototype.__defineGetter__('outerText',function(){return this.innerText();});}
		}
		if(!HTMLElement.prototype.insertAdjacentElement){
			HTMLElement.method('insertAdjacentElement',function(w,pN){switch(String(w).toLowerCase()){case 'afterbegin':this.insertBefore(pN,this.firstChild);break;case 'afterend':if(this.nextSibling){this.parentNode.insertBefore(pN,this.nextSibling);}else{this.parentNode.appendChild(pN);}break;case 'beforebegin':this.parentNode.insertBefore(pN,this);break;case 'beforeend':this.appendChild(pN);break;}return this;});
			HTMLElement.method('insertAdjacentHTML',function(w,S){var r=this.ownerDocument.createRange();switch(String(w).toLowerCase()){case 'beforebegin':r.setStartBefore(this);break;case 'beforeend':case 'afterbegin':r.selectNodeContents(this);r.collapse(false);break;case 'afterend':r.setStartAfter(this);break;}var pH=r.createContextualFragment(S);this.insertAdjacentElement(w,pH);return this;});
			HTMLElement.method('insertAdjacentText',function(w,s){this.insertAdjacentHTML(w,s.escapeHTML());return this;});
		}
	}
})();

document.getFormElementById=function(s){
	var r=document.getElementById(s);
	if(document.forms){
		var l=document.forms.length,el,found,oEl;
		while(l--){
			el=document.forms[l].length;
			while(el--){
				oEl=document.forms[l][el];
				found=((oEl.name==s)||(oEl.id==s));
				if(found){
					if(!r||r!=oEl){r=oEl;}
					break;
				}
			}
			if(found){break;}
		}
	}
	return r;
}
document.getFormLabelById=function(s){
	var el=document.getFormElementById(s),r=null;
	if(el){
		var labels=document.getElementsByTagName('label'),l=labels.length;
		while(l--){
			if((labels[l].htmlFor||labels[l].getAttribute('for'))==s){r=labels[l];break;}
		}
	}
	return r;
}

var Events;
(function(){
	Events=Events||{};
	Events.Add=function(obj,type,fn,cap){
		if(Is.array(fn)){while(fn.length){Events.Add(obj,type,fn.shift(),cap);}return this;}
		type=type.toLowerCase();if(!Is.bool(cap)){cap=new Boolean(false);}
		if(obj===window&&!window.addEventListener&&document.addEventListener){obj=document;} // Opera 7 check
		if(obj.addEventListener){obj.addEventListener(type,fn,cap);}
		else if(obj.attachEvent){obj.attachEvent('on'+type,fn);}
		else{var oe=Is.func(obj['on'+type])?obj['on'+type]:function(){};obj['on'+type]=function(e){e=e||window.event;oe();fn();};if(obj.captureEvents){obj.captureEvents(Event[type.toUpperCase()]);}}
		return this;
	};
	Events.Cancel=function(event){try{event.preventDefault();}catch(ex){event.returnValue=false;}};
	Events.Fix=function(event){event.preventDefault=function(){this.returnValue=false;};event.stopPropagation=function(){this.cancelBubble=true;};event.target=event.srcElement;return event;};
	Events.Remove=function(obj,type,fn,cap){ // can't be used with anonymous functions (or for individual funcs in crap browsers)...
		var ret;type=type.toLowerCase();if(!Is.bool(cap)){cap=new Boolean(false);}
		if(obj==window&&!window.addEventListener&&document.addEventListener){obj=document;} // Opera 7 check
		if(obj.removeEventListener){obj.removeEventListener(type,fn,cap);}
		else if(obj.detachEvent){obj.detachEvent('on'+type,fn);}
		else{obj['on'+type]=null;if(obj.releaseEvents){obj.releaseEvents(Event[type.toUpperCase()]);}}
		return this;
	};
})();

var SEEDA={
	chkForm:function(o){
		var f=o.form,eM=[],eA=[],first=null,i;if(!f.id||!f.name){return true;}
		if(o.input){for(i=0;i<o.input.length;i+=3){
			Form.chkInput(f[o.input[i]],o.input[i+1]);
			if(!f[o.input[i]].value.length&&o.input[i+2].length){eA.push(o.input[i]);eM.push(o.input[i+2]);if(!first){first=o.input[i];}}
		}}
		if(o.checkbox){for(i=0;i<o.checkbox.length;i+=2){if(!Form.chkChecked(f[o.checkbox[i]])){eA.push(o.checkbox[i]);eM.push(o.checkbox[i+1]);}}}
		if(o.radio){for(i=0,b;i<o.radio.length;i+=3,b=Form.chkRadio(f[o.radio[i]])){
			if(b){b=(o.radio[i+1]>-1&&!Form.chkRadio(f[o.radio[i]],[o.radio[i+1]]));}
			if(!b){eA.push(o.radio[i]);eM.push(o.radio[i+2]);}
		}}
		if(o.sel){for(i=0;i<o.sel.length;i+=3){if(Form.chkSel(f[o.sel[i]],o.sel[i+1])){eA.push(o.sel[i]);eM.push(o.sel[i+2]);if(!first){first=o.sel[i];}}}}
		if(o.validate){for(i=0;i<o.validate.length;i+=3){switch(o.validate[i+1]){
			case 'email':if(!Form.chkEmail(f[o.validate[i]])&&!eA.within(o.validate[i])){eM.push(o.validate[i+2].length?o.validate[i+2]:'Invalid email');if(!first){first=o.validate[i];}}break;
			case 'postcode':if(!Form.chkPostcode(f[o.validate[i]])&&!eA.within(o.validate[i])){eM.push(o.validate[i+2].length?o.validate[i+2]:'Invalid postcode');if(!first){first=o.validate[i]}}break;
		}}}
		return eM.length?Form.report(eM,o.msgs,first?f[first]:null):true;
	},
	chkSearch:function(s){
		if(s.value=='Search'||!s.value.length){alert('Please enter something to search for');s.focus();return false;}
		else{if(s.value.length>100){s.value=s.value.substr(0,100);}}
	},
	collapser:function(qNum,b){
		qNum=isNaN(qNum)?-1:qNum;
		var spans=document.getElementsByTagName('tr'),o=document.getElementById('PrintBio');
		for(var i=0;i<spans.length;++i){cSpan=spans[i];if(/^Row/.test(cSpan.id)){cSpan.style.display=cSpan.id.substr(3)==qNum?document.evaluate?'table-row':'inline':'none';}}
		if(o){o.style.display=qNum==-1?'none':document.evaluate?'table-row':'inline';}
		if(b){SEEDA.highlight(qNum);}
		if(document.focus){document.focus();}
		return false;
	},
	downClick:function(e){
		e=e||Events.Fix(window.event);e.target.blur();e.preventDefault();
		if(confirm('Would you like to download the SEEDA logo?')){document.location.href='/News_&_Events/Media_Centre/SEEDA_Logo_Usage_Guidance/';}
	},
	eventLinks:function(){
		for(var i=0,t=document.getElementsByTagName('table');i<t.length;++i){
			if(!/Events/.test(t[i].className)){continue;}
			if(!t[i].getElementsByTagName('tr')[0].getElementsByTagName('th').length){continue;}
			t[i].getElementsByTagName('tr')[0].getElementsByTagName('th')[0].innerHTML+='<span> - click event for any further information</span>';
			for(var j=0,tr=t[i].getElementsByTagName('tr');j<tr.length;++j){
				if(/EventDetails/.test(tr[j].className)){tr[j].style.display='none';}
				if(!/EventTitle/.test(tr[j].className)){continue;}
				if(document.all){
					tr[j].getElementsByTagName('td')[0].style.color='#006';
					tr[j].getElementsByTagName('td')[0].style.width='60%';
					tr[j].getElementsByTagName('td')[1].style.width='40%';
				}
				if(tr[j+1]&&/EventDetails/.test(tr[j+1].className)){
					tr[j].onmouseover=function(){this.style.backgroundColor='#E0E0E0';};tr[j].onmouseout=function(){this.style.backgroundColor='#E8E8E8';};
					tr[j].getElementsByTagName('td')[0].onclick=function(){
						for(var i=0,j=1,tr=this.parentNode.parentNode.getElementsByTagName('tr');i<tr.length&&this.parentNode!=tr[i];++i){if(/EventTitle/.test(tr[i].className)){j++;}}
						Globals.togDisp('Row'+j);
					};
					tr[j].getElementsByTagName('td')[0].style.cursor='pointer';
				}
			}
		}
	},
	hideEl:function(o){o=(typeof o=='string')?document.getElementById(o):o;if(o){Globals.addClass(o,'Hidden');}o.style.display='none';},
	highlight:function(qNum){
		qNum=isNaN(qNum)?-1:qNum;
		if(document.all){for(var i=1;i<7;++i){document.images['Image'+i].style.filter=i==parseInt(qNum,10)?'':'Gray';}}
		if(document.focus){document.focus();}
	},
	protLogo:function(){var o=document.getElementById('SEEDALogo');if(o){o['oncontextmenu']=SEEDA.downClick;}},
	openChatham:function(){return Globals.winOpener('/chathammaritime/index.asp','chatham','scrollbars=auto,width=770,height=460');},
	openPopup:function(u){return Globals.winOpener(u,'popup','width=460,height=520,toolbar=0,scrollbars=1,resizable=1');},
	openPres:function(u){return Globals.winOpener(u,'presentation','width=600,height=500,scrollbars=1,resizable=1');},	
	openWin:function(u){return Globals.winOpener(u,(/\/bid\//i.test(document.location.href))?'SEEDABIDWin':'SEEDAWin','width=790,height=500,scrollbars=0');}
};

var Form={
	chkChecked:function(o){if(o.length){for(var i=0,b=false;i<o.length&&!b;b=o[i].checked,++i);return b;}else{return o.checked;}},
	chkEmail:function(o){return (/^[A-Z0-9]\w*(\.[A-Z0-9]\w+)*@([A-Z0-9]\w*(\.[A-Z0-9]\w*)*\.[A-Z0-9]{2,}|(\d{1,3}){4})$/i.test(typeof o=='string'?o:o.value));},
	chkInput:function(o,s){if(o.value.toLowerCase()==s.toLowerCase()){o.value='';}},
	chkNumeric:function(o){return !isNaN(parseFloat(typeof o=='string'?o:o.value));},
	chkPostcode:function(o){return (/^([A-Z]{1,2}\d{1,2}|GIR)\s?\d[A-Z]{2}$/i.test(typeof o=='string'?o:o.value));},
	chkRadio:function(o,i){return (typeof i=='undefined')?Form.chkChecked(o):o[i].checked;},
	chkSel:function(o,i){return o.selectedIndex==i;},
	clearInputs:function(f){var i=f?f.length:0;while(i--){if(/^(pass|text)/i.test(f[i].type)){Form.chkInput(f[i],f[i].value);}}},
	report:function(err,msgs,first){var t=msgs?msgs[0]+'\n\n\t'+err.join('\n\t')+(msgs[1]?'\n\n'+msgs[1]:''):err.join('\n');alert(t);if(first){first.focus();}return false;}
};

var Globals={
	accessibility:function(){
		var i=-1,j,link,r,rel,p=/^external:?/;
		while((link=document.links[++i])){
			if(Is.func(link.onfocus)){Events.Add(link,(!Is.Mac&&!Is.IE4&&!Is.IE5)?'mouseenter':'mouseover',link.onfocus);}
			if(Is.func(link.onblur)){Events.Add(link,(!Is.Mac&&!Is.IE4&&!Is.IE5)?'mouseleave':'mouseout',link.onblur);}
			rel=Globals.getAttribute(link,'rel');if(p.test(rel)){r=rel.replace(p,'');if(!r.length){r='_blank';}Globals.setAttribute(link,'target',r,0);}
		}
		i=-1;while((document.forms[++i])){
			j=-1;while((document.forms[i][++j])){
				if((document.forms[i][j].type=='submit')&&Is.func(document.forms[i][j].onkeypress)&&!Is.func(document.forms[i][j].onclick)){document.forms[i][j].onclick=document.forms[i][j].onkeypress;}
			}
		}
		if(document.all){i=-1;var ac;while((ac=document.getElementsByTagName('acronym')[++i])){ac.style.background='transparent url(javascript:DOTS;) repeat-x bottom left';}}
		i=-1;while((a=document.getElementsByTagName('area')[++i])){rel=Globals.getAttribute(a,'rel');if(p.test(rel)){r=rel.replace(p,'');if(!r.length){r='_blank';}Globals.setAttribute(a,'target',r,0);}}
		return this;
	},
	addClass:function(o,s){var c=o.className.split(' ');if(!c.within(s)){c.push(s);}o.className=c.join(' ');return this;},
	checkInit:function(){if(window.pageInit){window.pageInit();}},
	fixMap:function(){var i=-1;while((document.images[++i])){if(document.images[i]['usemap']){if(document.images[i].style){document.images[i].style.border='0';}else{document.images[i]['border']='0';}}}return this;},
	fixMenus:function(){if(window.attachEvent||Is.Mac){var i=-1,menu,re=/_IE$/;while((menu=document.getElementsByTagName('ul')[++i])){if(re.test(menu.id)){menu.id=menu.id.replace(re,'');}}}return this;},
	fixRel:function(){
		var i=-1,a,p=/^external:?/,r;
		while((document.links[++i])){r=Globals.getAttribute(document.links[i],'rel');if(p.test(r)){r=r.replace(p,'');Globals.setAttribute(document.links[i],'target','_blank',0);}}
		i=-1;while((a=document.getElementsByTagName('area')[++i])){if(p.test(Globals.getAttribute(a,'rel'))){Globals.setAttribute(a,'target','_blank',0);}}
		return this;
	},
	getAttribute:function(obj,attr){return Is.getAttribute?obj.getAttribute:obj[attr]?obj[attr]:'';},
	pseudo:function(f,tag,pId){if(window.attachEvent||Is.Mac){Events.Add(window,'load',function(){var i=0,el,b=pId&&document.getElementById(pId);while((el=!b?document.getElementsByTagName(tag)[i]:document.getElementById(pId).getElementsByTagName(tag)[i])){if(el.getElementsByTagName(tag).length){f(el);}++i;}});}return this;},
	remClass:function(o,s){var c=o.className.replace(eval('/\s?'+s),'');o.className=c;},
	setAttribute:function(obj,attr,value,force){if(Is.bool(force)){force=force?1:0;}if(!Is.num(force)){force=new Number(0);}if(Is.setAttribute){obj.setAttribute(attr,value,force);}else{obj[attr]=value;}return this;},
	togDisp:function(o){o=(typeof o=='string')?document.getElementById(o):o;if(o){o.style.display=o.style&&!(/none/.test(o.style.display))?'none':o.tagName.toLowerCase()=='tr'&&!document.all?'table-row':'inline';}return this;},
	winOpener:function(u,n,m){var win=window.open(u,n,m);win.focus();return false;},
	menuaccess:[]
};

function makeClassToggler(begin,end,cName){
	if(!Is.Mac&&!Is.IE4&&!Is.IE5){if(begin=='mouseover'){begin='mouseenter';}if(end=='mouseout'){end='mouseleave';}}
	var re=new RegExp(' '+cName+'\\b');re.compile(re.source);
	var start=function(){this.className+=' '+cName;},stop=function(){this.className=this.className.replace(re,'');};
	return function(e){e['on'+begin]=start;e['on'+end]=stop;};
}

// should we still be using SoThink and running on NN4 redo failed function
if((typeof HTMLElement=='undefined')&&document.routeEvent&&document.stm_em){stm_em=function(){return true;};window.onresize=location.reload;}

var HubMap=[
'HBrightonHove',
	'<table border="0" cellpadding="2" cellspacing="0" width="180px"><tr><td bgcolor="#A5AABD">Brighton and Hove Hub</td></tr><tr><td>Including Shoreham-by-Sea, Newhaven and Lewes<br />Clustering: New media, Financial services, Medical Devices &amp; Biotechnology, Travel, Retail, Leisure<br />CLICK FOR FURTHER DETAILS</td></tr></table>'
];

(function(){
	if(window.attachEvent||Is.Mac){
		// CSS Menu fix for IE
		Globals.pseudo(makeClassToggler('mouseover','mouseout','hover'),'li','LeftNav');
		Globals.pseudo(makeClassToggler('mouseover','mouseout','hover'),'li','TopNav');
		
		// IE select boxes replacement script; replaces <select> with <object> (can be overlaid using z-Index)
		function ObjProp(name,value){this.name=name;this.value=value;}
		var dProps=[new ObjProp('VariousObjPropBits','726624571'),new ObjProp('DisplayStyle','7'),new ObjProp('ShowDropButtonWhen','2'),new ObjProp('ScrollBars','0')];
		
		function replaceIESelect(id,props){
			if(!props){props=dProps;}
			if(Is.all&&Is.w3c){
				var sel=(typeof id=='string')?document.getElementById(id):id;if(!sel){return false;}
				var parent=sel.parentNode,param,paramSuccess=true,j,prop,input=document.createElement('input'),obj=document.createElement('object');obj.options=[];
				if((typeof id!='string')||!sel.id){props.push(new ObjProp('FontName','Arial'));props.push(new ObjProp('FontHeight','200'));props.push(new ObjProp('FontHeight','200'));}
				try{for(prop in props){param=document.createElement('param');param.setAttribute('name',props[prop].name);param.setAttribute('value',props[prop].value);obj.appendChild(param);}}catch(ex){paramSuccess=false;}
				if(sel.className.length){obj.setAttribute('class',sel.className);}
				obj.setAttribute('classid','clsid:8BD21D30-EC42-11CE-9E0D-00AA006002F3');obj.setAttribute('id','comp_'+(sel.id||sel.name));obj.setAttribute('height',sel.offsetHeight);obj.setAttribute('width',sel.offsetWidth);
				if(!paramSuccess){obj.Style=2;}
				input.setAttribute('id',sel.id||sel.name);input.setAttribute('name',sel.name);input.setAttribute('type','hidden');input.setAttribute('value',obj.name);
				j=-1;while((sel.options[++j])){obj.addItem(sel.options[j].text);}
				obj.value=sel.options[sel.selectedIndex].text;obj.input=input;obj.input.value=obj.options[obj.value];
				var script=document.createElement('script');
				script.setAttribute('event','Change');script.setAttribute('for',obj.id);script.setAttribute('src','event.js');
				//script.innerText='if(this.input!=null){this.input.value=this.options[this.value];}this.blur();';
				//parent.appendChild(script);
				parent.replaceChild(obj,sel);parent.appendChild(input);
			}
			return this;
		}
		function replaceAllIESelects(){var sels=document.getElementsByTagName('select');for(var i in sels){replaceIESelect(sels[i]);}}
		//Events.Add(window,'load',function(){replaceIESelect('sections');});
	}
})();

Events.Add(window,'load',[Globals.accessibility,Globals.checkInit,Globals.fixMap,Globals.fixRel]);
Events.Add(window,'load',[SEEDA.protLogo,SEEDA.eventLinks]);

/* ]]> */