String.prototype.form=function(){var n,s=this.split('$'),a=arguments;for(n=0;n<s.length&&n<a.length;++n){s[n]+=a[n].toString();}return s.join('');};Number.prototype.toStringPad=function(p,s){var n=Math.abs(this).toString();while(n.length<p)n='0'+n;return s ||0>this?(0>this?'-':'+')+n:n;};if(!document.getElementsByTagName){document.getElementsByTagName=function(t){var n,q=[];if(document.all)for(n=0;n<document.all.length;++n)if(t==document.all[n].nodeName)q[q.length]=document.all[n];return q;};}if(!document.getElementById){document.getElementById=function(i){return document.all&&document.all[i]?document.all[i]:{};}}function $F(f,e){var x =document.forms[f];return!x||!e?x:(x.elements[e]);}function $I(i){return document.getElementById(i);}function $N(i){return document.getElementsByTagName(i);}function $L(i){if(i)window.location.href=i;else return window.location.href;}function $W(i,m,w,h){if(!w)var w =800;if(!h)var h =600;var x =(!m?',status=0,toolbar=0,location=0,menubar=0,directories=0':'');window.open(i,'_blank','status=0,toolbar=0,resizable=0,width='+w+',height='+h+x);}function $E(i,l){var e =$I(i);if(e){if(!l)var l =false;if(e.addEventListener)e.addEventListener('mouseup',l,false);else e.onclick=l;}}function $R(){return document.referrer?document.referrer:'';}if(!HTMLButtonElement)var HTMLButtonElement={prototype:{}};if(!HTMLInputElement)var HTMLInputElement={prototype:{}};if(!HTMLSelectElement)var HTMLSelectElement={prototype:{}};if(!HTMLTextAreaElement)var HTMLTextAreaElement={prototype:{}};if(!HTMLFormElement)var HTMLFormElement={prototype:{}};HTMLButtonElement.prototype.on=HTMLInputElement.prototype.on=HTMLSelectElement.prototype.on=HTMLTextAreaElement.prototype.on=HTMLFormElement.prototype.on=function(){var n,a=arguments;for(n=0;n<a.length-1;++n){var i =a[n].toLowerCase();this['vue'==i?'onclick':'on'+i]=this.act_;if(true!==a[a.length-1]){this[i+'_act_']=a[a.length-1];}}};HTMLButtonElement.prototype.act_=HTMLInputElement.prototype.act_=HTMLSelectElement.prototype.act_=HTMLTextAreaElement.prototype.act_=HTMLFormElement.prototype.act_=function(e){if(!e)var e =window.event;if(this.vue_&&this.vue_act_&&('click'==e.type||'dblclick'==e.type))this.vue_act_(e);if('change'==e.type)this.check(true);if(!this[e.type+'_act_'])if(!this.form||!this.form[e.type+'_act_'])return true;if(!e.internal_){e.from=e.relatedTarget||e.fromElement;e.src=(window.event?e.srcElement:e.target);if(3==e.src.nodeType)e.src=e.src.parentNode;e.to=e.relatedTarget||e.fromElement;if('click'==e.type||'dblclick'==e.type)e.btn=(e.which&&1==e.which?1:(e.button&&(0==e.button||1==e.button)?1:0))+(e.which&&3==e.which?2:(e.button&&2==e.button?2:0))+(e.which&&2==e.which?4:(e.button&&4==e.button?4:0));if(e.pageX||e.pageY){e.xps=e.pageX;e.yps=e.pageY;}else if(e.clientX||e.clientY){e.xps=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;e.yps=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;}else e.xps=e.yps=0;}return this[e.type+'_act_']?this[e.type+'_act_'](e):this.form[e.type+'_act_']?this.form[e.type+'_act_'](e):true;};HTMLButtonElement.prototype.vue_act_=HTMLInputElement.prototype.vue_act_=HTMLSelectElement.prototype.vue_act_=HTMLTextAreaElement.prototype.vue_act_=HTMLFormElement.prototype.vue_act_=function(){};HTMLButtonElement.prototype.get=HTMLInputElement.prototype.get=HTMLSelectElement.prototype.get=HTMLTextAreaElement.prototype.get=HTMLFormElement.prototype.get=function(v){var n=0,l,r=[];if('FORM'==this.tagName){var k,t=this.elements;if(!v){for(n=0;n<t.length;++n)if(t[n].get){if(t[n].name)r[t[n].name]=t[n].get();else if(t[n].id)r[t[n].id]=t[n].get();}}else{for(k in v )if(t[v[k]]&&t[v[k]].get)r[k]=t[v[k]].get();}return r;}else switch(this.type){case'select-one':case'select-multiple':while(n<this.options.length)if(true==this.options[n++].selected)r[r.length]=this.options[n-1].value;return 0==r.length?false:r.join(';');case'radio':for(l=this.form[this.name];n<l.length;++n)if(true==x[n].checked)r[r.length]=x[n].value;return 0==r.length?false:r.join(';');case'checkbox':return this.checked&&this.value?this.value:this.checked;default:return this.value;}};HTMLButtonElement.prototype.toString=HTMLInputElement.prototype.toString=HTMLSelectElement.prototype.toString=HTMLTextAreaElement.prototype.toString=function(){return this.get().toString();};HTMLButtonElement.prototype.set=HTMLInputElement.prototype.set=HTMLSelectElement.prototype.set=HTMLTextAreaElement.prototype.set=HTMLFormElement.prototype.set=function(v,t,sv){var n=0,l,o;if(undefined===v)var v ='';if('FORM'==this.tagName){var k,t=this.elements;for(k in v )if(t[k])t[k].set(v[k]);}else switch(this.type){case'select-one':case'select-multiple':for(n=0;n<this.options.length;++n){if(this.options[n].value==v){this.selectedIndex=n;if(this.set_act_)this.act_({type:'set',internal_:true});return this;}}if(t){o=new Option(t,v);if(this.add){for(n=0;n<this.options.length;++n){if(sv?this.options[n].value>v:this.options[n].name>t){try{this.add(o,this.options[n]);}catch(ie){this.add(o,n);}this.selectedIndex=n;if(this.set_act_)this.act_({type:'set',internal_:true});return this;}}}this.options[this.options.length]=o;this.selectedIndex=this.options.length-1;}return this;case'radio':for(l=this.form[this.name];n<l.length;++n)l[n].checked=!!(l[n].value==v);break;case'checkbox':this.checked=!!v;break;default:this.value=v;}if(this.set_act_)this.act_({type:'set',internal_:true});return this;};HTMLButtonElement.prototype.check=HTMLInputElement.prototype.check=HTMLSelectElement.prototype.check=HTMLTextAreaElement.prototype.check=function(md){var k ={numi:'0123456789',numn:'0123456789.',numb:'01',numh:'0123456789abcdefABCDEF',numo:'01234567',nump:'0123456789.',numd:'0123456789.',nume:'0123456789.',nums:'0123456789.',numz:'0123456789- ',txta:'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',tele:'0123456789+'},p={nump:'£',numd:'$',nume:'E'},s={},h={nums:'+-'},t={},j={numn:'.',nump:'.',numd:'.',nume:'.',nums:'.'},f={lowr:function(q){return q.toLowerCase();},uppr:function(q){return q.toUpperCase();},name:function(q){var n,f=true,r='';for(n=0;n<q.length;++n,f=(-1<" .-'".indexOf(r.charAt(r.length-1))))r+=(f?q.charAt(n).toUpperCase():q.charAt(n).toLowerCase());return r;}},vm=(!this.className?[0,'']:this.className.split('-')),vp='',vs='',vc='',v,n;v=this.get();if(!!k[vm[1]]){for(n=0;n<v.length;++n)if(-1!=k[vm[1]].indexOf(v.charAt(n)))vc+=v.charAt(n);}else vc=v;if(!!j[vm[1]]){vc=vc.split('.');vc[0]+='.';vc=vc.join('');}if(!!f[vm[1]])vc=f[vm[1]](vc);if(!!p[vm[1]])vc=p[vm[1]]+vc;if(!!s[vm[1]])vc=vc+s[vm[1]];if(vc!=v&&!!md)this.set(v=vc);if(vc==v)return(!vm[2]?parseInt(vm[2]):0)<=vc.length&&vc.length<=(!vm[3]?parseInt(vm[3]):999999);return false;};{var idn_=0,ids_=0;if(!Date.prototype.getFullYear){Date.prototype.getFullYear=function(){return this.getYear()+1900;};}if(!Date.prototype.setFullYear){Date.prototype.setFullYear=function(y){this.setYear(y);};}Date.prototype.getDayName=function(n){var d =['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];return d[n?n%7:this.getDay()%7];};Date.prototype.getMonthName=function(n){var m =['January','Febuary','March','April','May','June','July','August','September','October','November','December'];return m[n?n%12:this.getMonth()%12];};Date.prototype.calendar=function(ce,nt,s,ml){var m,b,l,r,i=this.id_=++idn_;var n,c,d,t,h=['<table class=calendar cellspacing=0 cellpadding=0>'];if(!s)var s =(this.interval?this.interval:1440);this.interval=s;if(!ml)var ml=12;if(nt)h[h.length]='<tr><th colspan='+(1440<=this.interval?7:16)+'><h4><input type=button class=date-hide id=date-hide-'+i+' value=X> &nbsp;'+nt+'</h4></th></tr>';h[h.length]='<tr><th>'+['S','M','T','W','T','F','S'].join('</th><th>')+(1440<=this.interval||this.noClock?'</th></tr>':'</th><th rowspan=8>&nbsp;</th><th colspan=8>Time</th></tr>');for(n=c=0,t=50;n<6;++n){h[h.length]='<tr>';for(m=0;m<7;++m){h[h.length]='<td><input type=button class=date-grey name=date-'+(++c)+'-'+i+' value=""></td>';}if(1440>this.interval&&!this.noClock){for(m=0;m<8;++m){h[h.length]='<td><input type=button class=date-grey name=date-'+(++t)+'-'+i+' value=""></td>';}}h[h.length]='</tr>';}h[h.length]='<tr><td><input type=button class=date-pick name=date-back-'+i+' value="&larr;"></td><td colspan=5><select class=date-pick name=date-pick-'+i+'>';for(n=0,(d=new Date(this)).setDate(1);n<ml;++n){h[h.length]='<option value='+(d.getFullYear()*100+d.getMonth()+1)+'>'+d.getMonthName()+' '+d.getFullYear();d.setMonth(d.getMonth()+1);}h[h.length]='</select></td><td><input type=button class=date-pick name=date-next-'+i+' value="&rarr;"></td></tr></table>';h[h.length]='</table>';if(document.createElement){var e =document.createElement('DIV');e.innerHTML=h.join('');if('string'==typeof(ce))ce=$I('view-'+ce);if(!ce)ce=document.body;ce.appendChild(e);}for(n=0;n<document.forms.length;++n){if(document.forms[n].elements['date-pick-'+i]){document.forms[n]['date-'+i]=this;this.form=document.forms[n];this.form.elements['date-back-'+i].onclick=function(){this.form['date-'+i].setDate(0);this.form['date-'+i].refresh();};this.form.elements['date-next-'+i].onclick=function(){this.form['date-'+i].setMonth(this.form['date-'+i].getMonth()+1);this.form['date-'+i].setDate(1);this.form['date-'+i].refresh();};this.form.elements['date-pick-'+i].onchange=function(){var v =this.options[this.selectedIndex].value;this.form['date-'+i].setMonth(v%100-1);this.form['date-'+i].setFullYear(Math.floor(v/100));this.form['date-'+i].refresh();};for(m=1;m<43;++m){this.form.elements['date-'+m+'-'+i].onclick=function(){if(''!=this.value){var dd=this.form['date-'+i];var dn=new Date(dd);dn.setDate(this.value-0);if(dd.minimum<=dn&&dn<=dd.maximum){dd.setDate(this.value-0);dd.refresh();}}};}if(1440>this.interval&&!this.noClock)for(m=51;m<99;++m){this.form.elements['date-'+m+'-'+i].onclick=function(){var b =this.form['date-'+i];var s =(!b.interval?15:b.interval),t=b.getHours()*60+b.getMinutes();switch(this.value){case'<':t-=b.interval;case'':break;case'>':t+=b.interval;case'00':break;default:if(!isNaN(this.value-0)&&this.value<24)t=this.value*60;}t=Math.round(t/b.interval)*b.interval;b.setHours(Math.floor(t/60));b.setMinutes(t%60);b.setSeconds(0);b.refresh();};}}}if(nt)$E('date-hide-'+i,function(){ce.className='view-hide';});this.refresh();return this;};Date.prototype.refresh=function(s){var n,c,d,l,b,i=this.id_;if(!s)var s =++ids_;else if(this.seq_&&s==this.seq_)return;this.seq_=s;if(!this.lastDate)this.lastDate=this;if(this.minimum)while(this.minimum>this){if(this.getFullYear()<(this.minimum.getFullYear()-2))this.setFullYear(this.minimum.getFullYear()-1);else if(this.getMonth()<this.minimum.getMonth())this.setMonth(this.getMonth()+1);else if(this.getMonth()==this.minimum.getMonth()&&this.getDate()<this.lastDate.getDate())this.setMonth(this.getMonth()+1);else this.setDate(this.getDate()+1);}else this.minimum=new Date(1901,1,1);if(this.maximum)while(this.maximum<this){if(this.getFullYear()>(this.maximum.getFullYear()+2))this.setFullYear(this.maximum.getFullYear()+2);else if(this.getMonth()<this.maximum.getMonth())this.setMonth(this.getMonth()-1);else this.setDate(this.getDate()-1);}else this.maximum=new Date(3001,1,1);if(this.setMinimum)while(this.setMinimum>this)this.setMinimum.setTime(this.setMinimum.getTime()-(this.setMinimum.interval?this.setMinimum.interval:1440)*60000);else this.setMinimum=new Date(this.minimum);if(this.setMaximum)while(this.setMaximum<this)this.setMaximum.setTime(this.setMaximum.getTime()+(this.setMaximum.interval?this.setMaximum.interval:1440)*60000);else this.setMaximum=new Date(this.maximum);if(i){if(this.form){d=new Date(this);d.setDate(1);d=d.getDay()+1;l=new Date(this);l.setDate(1);l.setMonth(l.getMonth()+1);l.setDate(-1);l=d+l.getDate();c=new Date(this);c.setDate(1);for(n=1;n<43;++n){b=this.form.elements['date-'+n+'-'+i];if(n<d||n>l){b.value='';b.className='date-grey';}else{if(c<this)b.className=(this.setMinimum&&c<this.setMinimum?'date-below':'date-before');else if(c>this)b.className=(this.setMaximum&&c>this.setMaximum?'date-above':'date-after');else b.className='date-this';c.setDate((b.value=c.getDate())+1);}if(!b.get)b.get=HTMLInputElement.prototype.get;if(!b.set)b.set=HTMLInputElement.prototype.set;}if(1440>this.interval&&!this.noClock){var clk=[55,56,57,65,66,74,82,90,89,97,96,95,94,93,92,84,83,75,67,59,60,52,53,54];for(n=0;n<clk.length;++n){b=this.form.elements['date-'+clk[n]+'-'+i];b.value=n;b.className=(n<this.getHours()?'date-before':(n>this.getHours()?'date-after':'date-this'));if(!b.get)b.get=HTMLInputElement.prototype.get;if(!b.set)b.set=HTMLInputElement.prototype.set;}this.form.elements['date-70-'+i].value=this.getHours().toStringPad(2);this.form.elements['date-71-'+i].value=this.getMinutes().toStringPad(2);this.form.elements['date-78-'+i].value='<';this.form.elements['date-79-'+i].value='>';}b=this.form.elements['date-pick-'+i];if(!b.get)b.get=HTMLSelectElement.prototype.get;if(!b.set)b.set=HTMLSelectElement.prototype.set;b.set(this.getFullYear()*100+this.getMonth()+1,this.getMonthName()+' '+this.getFullYear(),true);}}if(this.dates_&&this.dates_.length)for(n=0;n<this.dates_.length;++n)this.dates_[n].refresh(s);if(this.targets_&&this.targets_.length)for(n=0;n<this.targets_.length;++n)this.targets_[n].setDate(this);if(this.x_)this.x_();};Date.prototype.setLink=function(){var n;if(!this.dates_)this.dates_=arguments;else for(n=0;n<arguments.length;++n)this.dates_[this.dates_.length]=arguments[n];return this;};Date.prototype.setTarget=function(){var n,t;if(!this.targets_)this.targets_=[];for(n=0;n<arguments.length;++n){t=this.targets_[this.targets_.length]=arguments[n];t.date=this;t.onchange=function(){var n,x=this.get(),th=this.date.getHours(),tm=this.date.getMinutes(),ts=this.date.getSeconds(),d=this.date.getDate(),m=1+this.date.getMonth(),y=this.date.getFullYear();this.date.lastDate=new Date(this.date);if(''==x){for(n=0;n<this.date.targets_.length;++n)this.date.targets_[n].set('');return;}var ss=(x+'//').split('/'),sh=(x+'--').split('-'),c=this.className.split('-'),id=0,im=0;switch(c[2]?c[2]:(''!=ss[2]?'uk':(''!=sh[2]?'iso':(''!=ss[1]?'myuk':(''!=sh[1]?'myiso':(-1<x.indexOf(':')?'time':'stamp')))))){case'time':x=(x+'::').split(':');th=x[0]-0;tm=x[1]-0;ts=x[2]-0;break;case'us':if(-1<x.indexOf('/')){d=ss[1]-0;m=ss[0]-0;y=ss[2]-0;}else if(6==x.length||8==x.length){d=x.substring(2,4)-0;m=x.substring(0,2)-0;y=x.substring(4)-0;}break;case'uk':if(-1<x.indexOf('/')){d=ss[0]-0;m=ss[1]-0;y=ss[2]-0;}else if(6==x.length||8==x.length){d=x.substring(0,2)-0;m=x.substring(2,4)-0;y=x.substring(4)-0;}break;case'myus':case'myuk':d=1;if(-1<x.indexOf('/')){m=ss[0]-0;y=ss[1]-0;}else if(4==x.length||6==x.length){m=x.substring(0,2)-0;y=x.substring(2)-0;}break;case'iso':d=sh[2]-0;m=sh[1]-0;y=sh[0]-0;break;case'myiso':d=1;m=sh[1]-0;y=sh[0]-0;break;case'second':ts=x-0;break;case'minute':tm=x-0;break;case'hour':th=x-0;break;case'day':d=x-0;break;case'month':m=x-0;break;case'year':y=x-0;break;case'my':m=x%100;y=Math.floor(x/100);break;case'days':if(this.date.setMinimum){d=x-1+this.date.setMinimum.getDate();m=1+this.date.setMinimum.getMonth();y=this.date.setMinimum.getFullYear();}break;case'months':if(this.date.setMinimum){d=this.date.setMinimum.getDate();m=x-0+1+this.date.setMinimum.getMonth();y=this.date.setMinimum.getFullYear();}break;case'dstamp':case'stamp':x=this.get().split('T')[0];d=x%100;m=Math.floor(x/100)%100;y=Math.floor(x/10000);x=(this.get()+'T').split('T')[1];case'tstamp':th=x.substring(0,2)-0;tm=x.substring(2,4)-0;ts=x.substring(4,6)-0;break;}if(isNaN(y))y=this.date.getFullYear();this.date.setFullYear(y+(y<33?2000:(y<100?1900:0)),(isNaN(m)?this.date.getMonth()+1:m)+im-1,(isNaN(d)?this.date.getDate():d)+id);if(!isNaN(th))this.date.setHours(th);if(!isNaN(tm))this.date.setMinutes(tm);if(!isNaN(ts))this.date.setSeconds(ts);this.date.refresh();};t.setDate=function(q){var v ='',c=this.className.split('-'),th=q.getHours(),tm=q.getMinutes(),ts=q.getSeconds(),d=q.getDate(),m=1+q.getMonth(),n=q.getMonthName(),y=q.getFullYear(),x=this.get();var ss=(x+'//').split('/'),sh=(x+'--').split('-');switch(c[2]?c[2]:(''!=ss[2]?'uk':(''!=sh[2]?'iso':(''!=ss[1]?'myuk':(''!=sh[1]?'myiso':(-1<x.indexOf(':')?'time':'stamp')))))){case'time':v=th.toStringPad(2)+':'+tm.toStringPad(2)+(0==ts?'':':'+ts.toStringPad(2));break;case'us':v=m.toStringPad(2)+'/'+d.toStringPad(2)+'/'+y;break;case'uk':v=d.toStringPad(2)+'/'+m.toStringPad(2)+'/'+y;break;case'myus':case'myuk':v=m.toStringPad(2)+'/'+y;break;case'iso':v=y+'-'+m.toStringPad(2)+'-'+d.toStringPad(2);break;case'myiso':v=y+'-'+m.toStringPad(2);break;case'second':v=ts;break;case'minute':v=tm;break;case'hour':v=th;break;case'day':v=d;break;case'month':v=m;break;case'year':v=y;break;case'my':v=y*100+m;break;case'days':v=(this.date.setMinimum?Math.ceil((this.date.getTime()-this.date.setMinimum.getTime())/(24*60*60*1000))+1:'');break;case'months':x=new Date(this.date.setMinimum?this.date.setMinimum:this.date.minimum);v=(this.date.getFullYear()-x.getFullYear())*12+this.date.getMonth()-x.getMonth()+(this.date.getDate()<=x.getDate()?0:1);break;case'rfc':v=q.getDayName().substring(0,3)+', '+d+' '+q.getMonthName().substring(0,3)+' '+y+' '+q.getHours().toStringPad(2)+':'+q.getMinutes().toStringPad(2)+':'+q.getSeconds().toStringPad(2)+' '+(Math.floor(q.getTimezoneOffset()/60)*100+q.getTimezoneOffset()%60).toStringPad(4,true);break;case'stamp':v=y*10000+m*100+d+(0==th&&0==tm&&0==ts?'':'T'+(th*10000+tm*100+ts).toStringPad(6));break;case'dstamp':v=y*10000+m*100+d;break;case'tstamp':v=(th*10000+tm*100+ts).toStringPad(6);break;}if(this.set)this.set(v);};if(!t.get||!t.set){t.get=HTMLInputElement.prototype.get;t.set=HTMLInputElement.prototype.set;}t.setDate(this);}return this;};Date.prototype.getHTML=function(i,s,m,x){var n,d,h=[];if(!this.interval)this.interval=1440;if(!s)s=this.interval;else this.interval=s;if(!m)m=this.minimum;else this.minimum=m;if(!x)x=this.maximum;else this.maximum=x;if(s&&0!=(s%1440)){h[h.length]='<div class=datetime><select name='+i+'-time id='+i+'-time class=date-pick-tstamp>';for(n=0;n<1440;n+=s)h[h.length]='<option value='+(Math.floor(n/60)*100+n%60).toStringPad(4)+'00>'+Math.floor(n/60)+':'+(n%60).toStringPad(2);h[h.length]='</select>';}else h[h.length]='<div class=date>';h[h.length]='<select name='+i+'-day id='+i+'-day class=date-pick-day>';for(n=1;n<32;++n)h[h.length]='<option value='+n+'>'+n;h[h.length]='</select><select name='+i+'-my id='+i+'-my class=date-pick-my>';for((d=new Date(m.getTime())).setDate(1);d<=x;d.setMonth(d.getMonth()+1)){h[h.length]='<option value='+(d.getFullYear()*100+d.getMonth()+1)+'>'+d.getMonthName().substring(0,3)+' '+d.getFullYear();}h[h.length]='</select><input type=hidden id='+i+'-date name='+i+'-date value="" class=date-pick-stamp><input type=button id='+i+'-calendar class='+i+'-calendar value=" "></div>';if(!$I('view-'+i))h[h.length]='<div id=view-'+i+' class=view-hide>&nbsp;</div>';return h.join('');};Date.prototype.activateHTML=function(i){var s =$I(i+'-time');if(s)this.setTarget(s);this.setTarget($I(i+'-day'),$I(i+'-my'),$I(i+'-date'));$E(i+'-calendar',function(e){if(!e)var e =window.event;var i =$I('view-'+(e.target?e.target:(e.srcElement?e.srcElement:this)).className.split('-')[0]);if(i)i.className=('view-show'==i.className?'view-hide':'view-show');});return this.refresh();};}function generatePage(){function createSelectData(n1,d,s){var k,h=[];for(k in d ){h[h.length]=k+(k==s?'" selected="selected">':'">')+d[k];}return['<select name="',n1,'" id="',n1,'"><option value="',h.join('</option><option value="'),'</option></select>'].join('');}function getDefaultAirport(s){var k,p=$L();for(k in s )if(-1!=p.indexOf(s[k].toLowerCase().split(' ')[0]))return k;return'LHR';}var c =new Date;var y =c.getFullYear(),m=c.getMonth(),d=c.getDate();var select1to10={'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'8','9':'9','10':'10'};var select0to10={'0':'0','1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'8','9':'9','10':'10'};if($I('includeaphotels')){var hotelAirports={'ABZ':'Aberdeen','BFS':'Belfast','BLK':'Blackpool','BHX':'Birmingham','BRS':'Bristol','CWL':'Cardiff','CVT':'Coventry','DOV':'Dover Port','DUB':'Dublin','MME':'Durham Valley (Teeside)','EMA':'East Midlands (Nottingham)','EDI':'Edinburgh','LGW':'Gatwick (London)','GLA':'Glasgow','LHR':'Heathrow (London)','HUY':'Humberside (Kirmington)','LBA':'Leeds Bradford','LPL':'Liverpool','LCY':'London City','LTN':'Luton','MAN':'Manchester','NCL':'Newcastle','NWI':'Norwich','PIK':'Prestwick (Glasgow)','SOU':'Southampton','STN':'Stansted (London)'};var hotelParking={'0':'No parking required','1':'1 day','2':'2 days','3':'3 days','4':'4 days','5':'5 days','6':'6 days','7':'7 days','8':'8 days','9':'9 days','10':'10 days','12':'12 days','15':'15 days','18':'18 days','21':'21 days'};var hotelRoomTypes={'S10':'Single - 1 Adult','T20':'Twin - 2 Adults','D20':'Double - 2 Adults','T12':'Triple - 1 Adult 2 Children','T21':'Triple - 2 Adults 1 Child','T30':'Triple - 3 Adults','F13':'Family - 1 Adult 3 Children','F22':'Family - 2 Adults 2 Children','F23':'Family - 2 Adults 3 Children','F31':'Family - 3 Adults 1 Child','F32':'Family - 3 Adults 2 Children'};var da=new Date(y,m,d+1,12,0,0,0),dm=new Date(y,m,d,0,0,0,0),dx=new Date(y+1,m,d,0,0,0,0);da.minimum=dm;da.interval=1440;da.maximum=dx;$I('includeaphotels').innerHTML=['<form action="/scripts/hotel/"><h3>Compare &amp; Book Airport Hotels</h3>','<div class=line id=af2><label for=room>Room</label>',createSelectData('room',hotelRoomTypes,'D20'),'</div>','<div class=line id=af3><label for=park>Park</label>',createSelectData('park',hotelParking,'0'),'</div>','<div class=line id=af4><label for=date-calendar>Arrive</label>',da.getHTML('date'),'</div>','<div class=line id=af5><input type=submit name=hotelbook id=hotelbook value="Compare Airport Hotels"></div>','</form>'].join('');da.calendar('date','Arrival Date').activateHTML('date');$I('hotelbook').onclick=function(e){var a =this.form['hairport'],p=this.form['park'],r=this.form['room'],d=this.form['date-date'];$L(['/scripts/hotel/?','date=',d.value,'&room=',r[r.selectedIndex].value,'&park=',p[p.selectedIndex].value,(a?'&airport='+a[a.selectedIndex].value:'')].join(''));return false;};}if($I('includeappark')){var parkingAirports={'ABZ':'Aberdeen','BFS':'Belfast','BHX':'Birmingham','BLK':'Blackpool','BRS':'Bristol','CWL':'Cardiff','DSA':'Doncaster (Robin Hood)','DOV':'Dover Port','MME':'Durham Valley (Teeside)','EMA':'East Midlands (Nottingham)','EDI':'Edinburgh','FOL':'Folkstone Eurotunnel','INV':'Inverness','LGW':'Gatwick (London)','GLA':'Glasgow','LHR':'Heathrow (London)','HUY':'Humberside (Kirmington)','LBA':'Leeds Bradford','LPL':'Liverpool (John Lennon)','LCY':'London City','LTN':'Luton','MAN':'Manchester','NCL':'Newcastle','NWI':'Norwick','PIK':'Prestwick (Glasgow)','SOU':'Southampton','STN':'Stansted (London)'};var da=new Date(y,m,d+1,12,0,0,0),dr=new Date(y,m,d+8,12,0,0,0),dm=new Date(y,m,d,0,0,0,0),dx=new Date(y+1,m,d,0,0,0,0);da.minimum=dm;da.setMaximum=dr;da.interval=30;da.maximum=dx;dr.minimum=dm;dr.setMinimum=da;dr.interval=30;dr.maximum=dx;$I('includeappark').innerHTML=['<form action="/scripts/park/"><h3>Compare &amp; Book Airport Parking</h3>','<div class=line id=pf3><label for=arrive-calendar>Arrive</label>',da.getHTML('arrive'),'</div>','<div class=line id=pf4><label for=return-calendar>Return</label>',dr.getHTML('return'),'</div>','<div class=line id=pf2><label for=people>People</label>',createSelectData('people',select1to10,'2'),'</div>','<div class=line id=pf5><input type=submit name=parkbook id=parkbook value="Compare Airport Parking"></div>','</form>'].join('');da.calendar('arrive','Arrival Date').setLink(dr).activateHTML('arrive');dr.calendar('return','Return Date').setLink(da).activateHTML('return');$I('parkbook').onclick=function(e){var a =this.form['airport'],d=this.form['arrive-date'],r=this.form['return-date'],p=this.form['people'];$L(['/scripts/park/?','arrive=',d.value,'&return=',r.value,'&people=',p[p.selectedIndex].value,(a?'&airport='+a[a.selectedIndex].value:'')].join(''));return false;};}if($I('includeaplounge')){var da=new Date(y,m,d+1,12,0,0,0),dm=new Date(y,m,d,0,0,0,0),dx=new Date(y+1,m,d,0,0,0,0);da.minimum=dm;da.interval=30;da.maximum=dx;$I('includeaplounge').innerHTML=['<form action="/scripts/lounge/"><h3>Book Airport Lounges</h3>','<div class=line id=lf2><label for=arrive-calendar>Arrive</label>',da.getHTML('arrive'),'</div>','<div class=line id=lf3><label for=adults>Adults/Children/Infants</label>',createSelectData('adults',select1to10,'1'),createSelectData('children',select0to10,'0'),createSelectData('infants',select0to10,'0'),'</div>','<div class=line id=lf4><input type=submit name=loungebook id=loungebook value="Book Airport Lounges"></div>','</form>'].join('');da.calendar('arrive','Arrival Date').activateHTML('arrive');$I('loungebook').onclick=function(e){var a =this.form['airport'],d=this.form['arrive-date'],pa=this.form['adults'],pc=this.form['children'],pi=this.form['infants'];$L(['/scripts/lounge/?','arrive=',d.value,'&adults=',pa.value,'&children=',pc.value,'&infants=',pi.value,(a?'&airport='+a[a.selectedIndex].value:'')].join(''));return false;};}if($I('comparison')){function showOrHide(e){if(!e)var e =window.event;var t =(e.target?e.target:(e.srcElement?e.srcElement:this));if('A'!=t.tagName&&'a'!=t.tagName)this.vue.className=('more'==this.vue.className?'more-hide':'more');return true;}if($I('wait'))$I('wait').style.display='none';var n,t=$N('DIV');for(n=0;n<t.length;++n)if(t[n].className&&'more'==t[n].className){t[n].className='more-hide';t[n].parentNode.vue=t[n];t[n].parentNode.onclick=showOrHide;}}{function openNew(e){window.open(this.href,'_blank','height=580px,width=800px,resizable=0,left=50,top=50,scrollbars=1');return false;}var n,t=$N('A');for(n=0;n<t.length;++n)if(t[n].className&&'new'==t[n].className)t[n].onclick=openNew;}}window.onload=generatePage;

