Calendar=function(j,h,l,a){this.activeDiv=null;this.currentDateEl=null;this.getDateStatus=null;this.getDateToolTip=null;this.getDateText=null;this.timeout=null;this.onSelected=l||null;this.onClose=a||null;this.dragging=false;this.hidden=false;this.minYear=1970;this.maxYear=2050;this.dateFormat=Calendar._TT.DEF_DATE_FORMAT;this.ttDateFormat=Calendar._TT.TT_DATE_FORMAT;this.isPopup=true;this.weekNumbers=true;this.firstDayOfWeek=typeof j=="number"?j:Calendar._FD;this.showsOtherMonths=false;this.dateStr=h;this.ar_days=null;this.showsTime=false;this.time24=true;this.yearStep=2;this.hiliteToday=true;this.multiple=null;this.table=null;this.element=null;this.tbody=null;this.firstdayname=null;this.monthsCombo=null;this.yearsCombo=null;this.hilitedMonth=null;this.activeMonth=null;this.hilitedYear=null;this.activeYear=null;this.dateClicked=false;if(typeof Calendar._SDN=="undefined"){if(typeof Calendar._SDN_len=="undefined"){Calendar._SDN_len=3}var c=new Array();for(var k=8;k>0;){c[--k]=Calendar._DN[k].substr(0,Calendar._SDN_len)}Calendar._SDN=c;if(typeof Calendar._SMN_len=="undefined"){Calendar._SMN_len=3}c=new Array();for(var k=12;k>0;){c[--k]=Calendar._MN[k].substr(0,Calendar._SMN_len)}Calendar._SMN=c}};Calendar._C=null;Calendar.is_ie=(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent));Calendar.is_ie5=(Calendar.is_ie&&/msie 5\.0/i.test(navigator.userAgent));Calendar.is_opera=/opera/i.test(navigator.userAgent);Calendar.is_khtml=/Konqueror|Safari|KHTML/i.test(navigator.userAgent);Calendar.getAbsolutePos=function(k){var a=0,j=0;var h=/^div$/i.test(k.tagName);if(h&&k.scrollLeft){a=k.scrollLeft}if(h&&k.scrollTop){j=k.scrollTop}var l={x:k.offsetLeft-a,y:k.offsetTop-j};if(k.offsetParent){var c=this.getAbsolutePos(k.offsetParent);l.x+=c.x;l.y+=c.y}return l};Calendar.isRelated=function(h,a){var j=a.relatedTarget;if(!j){var c=a.type;if(c=="mouseover"){j=a.fromElement}else{if(c=="mouseout"){j=a.toElement}}}while(j){if(j==h){return true}j=j.parentNode}return false};Calendar.removeClass=function(k,j){if(!(k&&k.className)){return}var a=k.className.split(" ");var c=new Array();for(var h=a.length;h>0;){if(a[--h]!=j){c[c.length]=a[h]}}k.className=c.join(" ")};Calendar.addClass=function(c,a){Calendar.removeClass(c,a);c.className+=" "+a};Calendar.getElement=function(a){var c=Calendar.is_ie?window.event.srcElement:a.currentTarget;while(c.nodeType!=1||/^div$/i.test(c.tagName)){c=c.parentNode}return c};Calendar.getTargetElement=function(a){var c=Calendar.is_ie?window.event.srcElement:a.target;while(c.nodeType!=1){c=c.parentNode}return c};Calendar.stopEvent=function(a){a||(a=window.event);if(Calendar.is_ie){a.cancelBubble=true;a.returnValue=false}else{a.preventDefault();a.stopPropagation()}return false};Calendar.addEvent=function(a,h,c){if(a.attachEvent){a.attachEvent("on"+h,c)}else{if(a.addEventListener){a.addEventListener(h,c,true)}else{a["on"+h]=c}}};Calendar.removeEvent=function(a,h,c){if(a.detachEvent){a.detachEvent("on"+h,c)}else{if(a.removeEventListener){a.removeEventListener(h,c,true)}else{a["on"+h]=null}}};Calendar.createElement=function(h,c){var a=null;if(document.createElementNS){a=document.createElementNS("http://www.w3.org/1999/xhtml",h)}else{a=document.createElement(h)}if(typeof c!="undefined"){c.appendChild(a)}return a};Calendar._add_evs=function(el){with(Calendar){addEvent(el,"mouseover",dayMouseOver);addEvent(el,"mousedown",dayMouseDown);addEvent(el,"mouseout",dayMouseOut);if(is_ie){addEvent(el,"dblclick",dayMouseDblClick);el.setAttribute("unselectable",true)}}};Calendar.findMonth=function(a){if(typeof a.month!="undefined"){return a}else{if(typeof a.parentNode.month!="undefined"){return a.parentNode}}return null};Calendar.findYear=function(a){if(typeof a.year!="undefined"){return a}else{if(typeof a.parentNode.year!="undefined"){return a.parentNode}}return null};Calendar.showMonthsCombo=function(){var k=Calendar._C;if(!k){return false}var k=k;var l=k.activeDiv;var j=k.monthsCombo;if(k.hilitedMonth){Calendar.removeClass(k.hilitedMonth,"hilite")}if(k.activeMonth){Calendar.removeClass(k.activeMonth,"active")}var h=k.monthsCombo.getElementsByTagName("div")[k.date.getMonth()];Calendar.addClass(h,"active");k.activeMonth=h;var c=j.style;c.display="block";if(l.navtype<0){c.left=l.offsetLeft+"px"}else{var a=j.offsetWidth;if(typeof a=="undefined"){a=50}c.left=(l.offsetLeft+l.offsetWidth-a)+"px"}c.top=(l.offsetTop+l.offsetHeight)+"px"};Calendar.showYearsCombo=function(j){var a=Calendar._C;if(!a){return false}var a=a;var h=a.activeDiv;var l=a.yearsCombo;if(a.hilitedYear){Calendar.removeClass(a.hilitedYear,"hilite")}if(a.activeYear){Calendar.removeClass(a.activeYear,"active")}a.activeYear=null;var c=a.date.getFullYear()+(j?1:-1);var o=l.firstChild;var n=false;for(var k=12;k>0;--k){if(c>=a.minYear&&c<=a.maxYear){o.innerHTML=c;o.year=c;o.style.display="block";n=true}else{o.style.display="none"}o=o.nextSibling;c+=j?a.yearStep:-a.yearStep}if(n){var p=l.style;p.display="block";if(h.navtype<0){p.left=h.offsetLeft+"px"}else{var m=l.offsetWidth;if(typeof m=="undefined"){m=50}p.left=(h.offsetLeft+h.offsetWidth-m)+"px"}p.top=(h.offsetTop+h.offsetHeight)+"px"}};Calendar.tableMouseUp=function(ev){var cal=Calendar._C;if(!cal){return false}if(cal.timeout){clearTimeout(cal.timeout)}var el=cal.activeDiv;if(!el){return false}var target=Calendar.getTargetElement(ev);ev||(ev=window.event);Calendar.removeClass(el,"active");if(target==el||target.parentNode==el){Calendar.cellClick(el,ev)}var mon=Calendar.findMonth(target);var date=null;if(mon){date=new Date(cal.date);if(mon.month!=date.getMonth()){date.setMonth(mon.month);cal.setDate(date);cal.dateClicked=false;cal.callHandler()}}else{var year=Calendar.findYear(target);if(year){date=new Date(cal.date);if(year.year!=date.getFullYear()){date.setFullYear(year.year);cal.setDate(date);cal.dateClicked=false;cal.callHandler()}}}with(Calendar){removeEvent(document,"mouseup",tableMouseUp);removeEvent(document,"mouseover",tableMouseOver);removeEvent(document,"mousemove",tableMouseOver);cal._hideCombos();_C=null;return stopEvent(ev)}};Calendar.tableMouseOver=function(t){var a=Calendar._C;if(!a){return}var h=a.activeDiv;var o=Calendar.getTargetElement(t);if(o==h||o.parentNode==h){Calendar.addClass(h,"hilite active");Calendar.addClass(h.parentNode,"rowhilite")}else{if(typeof h.navtype=="undefined"||(h.navtype!=50&&(h.navtype==0||Math.abs(h.navtype)>2))){Calendar.removeClass(h,"active")}Calendar.removeClass(h,"hilite");Calendar.removeClass(h.parentNode,"rowhilite")}t||(t=window.event);if(h.navtype==50&&o!=h){var s=Calendar.getAbsolutePos(h);var y=h.offsetWidth;var u=t.clientX;var z;var q=true;if(u>s.x+y){z=u-s.x-y;q=false}else{z=s.x-u}if(z<0){z=0}var l=h._range;var n=h._current;var m=Math.floor(z/10)%l.length;for(var k=l.length;--k>=0;){if(l[k]==n){break}}while(m-->0){if(q){if(--k<0){k=l.length-1}}else{if(++k>=l.length){k=0}}}var c=l[k];h.innerHTML=c;a.onUpdateTime()}var j=Calendar.findMonth(o);if(j){if(j.month!=a.date.getMonth()){if(a.hilitedMonth){Calendar.removeClass(a.hilitedMonth,"hilite")}Calendar.addClass(j,"hilite");a.hilitedMonth=j}else{if(a.hilitedMonth){Calendar.removeClass(a.hilitedMonth,"hilite")}}}else{if(a.hilitedMonth){Calendar.removeClass(a.hilitedMonth,"hilite")}var p=Calendar.findYear(o);if(p){if(p.year!=a.date.getFullYear()){if(a.hilitedYear){Calendar.removeClass(a.hilitedYear,"hilite")}Calendar.addClass(p,"hilite");a.hilitedYear=p}else{if(a.hilitedYear){Calendar.removeClass(a.hilitedYear,"hilite")}}}else{if(a.hilitedYear){Calendar.removeClass(a.hilitedYear,"hilite")}}}return Calendar.stopEvent(t)};Calendar.tableMouseDown=function(a){if(Calendar.getTargetElement(a)==Calendar.getElement(a)){return Calendar.stopEvent(a)}};Calendar.calDragIt=function(c){var h=Calendar._C;if(!(h&&h.dragging)){return false}var k;var j;if(Calendar.is_ie){j=window.event.clientY+document.body.scrollTop;k=window.event.clientX+document.body.scrollLeft}else{k=c.pageX;j=c.pageY}h.hideShowCovered();var a=h.element.style;a.left=(k-h.xOffs)+"px";a.top=(j-h.yOffs)+"px";return Calendar.stopEvent(c)};Calendar.calDragEnd=function(ev){var cal=Calendar._C;if(!cal){return false}cal.dragging=false;with(Calendar){removeEvent(document,"mousemove",calDragIt);removeEvent(document,"mouseup",calDragEnd);tableMouseUp(ev)}cal.hideShowCovered()};Calendar.dayMouseDown=function(ev){var el=Calendar.getElement(ev);if(el.disabled){return false}var cal=el.calendar;cal.activeDiv=el;Calendar._C=cal;if(el.navtype!=300){with(Calendar){if(el.navtype==50){el._current=el.innerHTML;addEvent(document,"mousemove",tableMouseOver)}else{addEvent(document,Calendar.is_ie5?"mousemove":"mouseover",tableMouseOver)}addClass(el,"hilite active");addEvent(document,"mouseup",tableMouseUp)}}else{if(cal.isPopup){cal._dragStart(ev)}}if(el.navtype==-1||el.navtype==1){if(cal.timeout){clearTimeout(cal.timeout)}cal.timeout=setTimeout("Calendar.showMonthsCombo()",250)}else{if(el.navtype==-2||el.navtype==2){if(cal.timeout){clearTimeout(cal.timeout)}cal.timeout=setTimeout((el.navtype>0)?"Calendar.showYearsCombo(true)":"Calendar.showYearsCombo(false)",250)}else{cal.timeout=null}}return Calendar.stopEvent(ev)};Calendar.dayMouseDblClick=function(a){Calendar.cellClick(Calendar.getElement(a),a||window.event);if(Calendar.is_ie){document.selection.empty()}};Calendar.dayMouseOver=function(c){var a=Calendar.getElement(c);if(Calendar.isRelated(a,c)||Calendar._C||a.disabled){return false}if(a.ttip){if(a.ttip.substr(0,1)=="_"){a.ttip=a.caldate.print(a.calendar.ttDateFormat)+a.ttip.substr(1)}a.calendar.tooltips.innerHTML=a.ttip}if(a.navtype!=300){Calendar.addClass(a,"hilite");if(a.caldate){Calendar.addClass(a.parentNode,"rowhilite")}}return Calendar.stopEvent(c)};Calendar.dayMouseOut=function(ev){with(Calendar){var el=getElement(ev);if(isRelated(el,ev)||_C||el.disabled){return false}removeClass(el,"hilite");if(el.caldate){removeClass(el.parentNode,"rowhilite")}if(el.calendar){el.calendar.tooltips.innerHTML=_TT.SEL_DATE}return stopEvent(ev)}};Calendar.cellClick=function(k,u){var h=k.calendar;var n=false;var q=false;var l=null;if(typeof k.navtype=="undefined"){if(h.currentDateEl){Calendar.removeClass(h.currentDateEl,"selected");Calendar.addClass(k,"selected");n=(h.currentDateEl==k);if(!n){h.currentDateEl=k}}h.date.setDateOnly(k.caldate);l=h.date;var c=!(h.dateClicked=!k.otherMonth);if(!c&&!h.currentDateEl){h._toggleMultipleDate(new Date(l))}else{q=!k.disabled}if(c){h._init(h.firstDayOfWeek,l)}}else{if(k.navtype==200){Calendar.removeClass(k,"hilite");h.callCloseHandler();return}l=new Date(h.date);if(k.navtype==0){l.setDateOnly(new Date())}h.dateClicked=false;var t=l.getFullYear();var m=l.getMonth();function a(y){var z=l.getDate();var x=l.getMonthDays(y);if(z>x){l.setDate(x)}l.setMonth(y)}switch(k.navtype){case 400:Calendar.removeClass(k,"hilite");var w=Calendar._TT.ABOUT;if(typeof w!="undefined"){w+=h.showsTime?Calendar._TT.ABOUT_TIME:""}else{w='Help and about box text is not translated into this language.\nIf you know this language and you feel generous please update\nthe corresponding file in "lang" subdir to match calendar-en.js\nand send it back to <mihai_bazon@yahoo.com> to get it into the distribution  ;-)\n\nThank you!\nhttp://dynarch.com/mishoo/calendar.epl\n'}alert(w);return;case -2:if(t>h.minYear){l.setFullYear(t-1)}break;case -1:if(m>0){a(m-1)}else{if(t-->h.minYear){l.setFullYear(t);a(11)}}break;case 1:if(m<11){a(m+1)}else{if(t<h.maxYear){l.setFullYear(t+1);a(0)}}break;case 2:if(t<h.maxYear){l.setFullYear(t+1)}break;case 100:h.setFirstDayOfWeek(k.fdow);return;case 50:var p=k._range;var s=k.innerHTML;for(var o=p.length;--o>=0;){if(p[o]==s){break}}if(u&&u.shiftKey){if(--o<0){o=p.length-1}}else{if(++o>=p.length){o=0}}var j=p[o];k.innerHTML=j;h.onUpdateTime();return;case 0:if((typeof h.getDateStatus=="function")&&h.getDateStatus(l,l.getFullYear(),l.getMonth(),l.getDate())){return false}break}if(!l.equalsTo(h.date)){h.setDate(l);q=true}else{if(k.navtype==0){q=n=true}}}if(q){u&&h.callHandler()}if(n){Calendar.removeClass(k,"hilite");u&&h.callCloseHandler()}};Calendar.prototype.create=function(t){var s=null;if(!t){s=document.getElementsByTagName("body")[0];this.isPopup=true}else{s=t;this.isPopup=false}this.date=this.dateStr?new Date(this.dateStr):new Date();var x=Calendar.createElement("table");this.table=x;x.cellSpacing=0;x.cellPadding=0;x.calendar=this;Calendar.addEvent(x,"mousedown",Calendar.tableMouseDown);var a=Calendar.createElement("div");this.element=a;a.className="calendar";if(this.isPopup){a.style.position="absolute";a.style.display="none"}a.appendChild(x);var p=Calendar.createElement("thead",x);var u=null;var y=null;var c=this;var l=function(A,z,j){u=Calendar.createElement("td",y);u.colSpan=z;u.className="button";if(j!=0&&Math.abs(j)<=2){u.className+=" nav"}Calendar._add_evs(u);u.calendar=c;u.navtype=j;u.innerHTML="<div unselectable='on'>"+A+"</div>";return u};y=Calendar.createElement("tr",p);var h=6;(this.isPopup)&&--h;(this.weekNumbers)&&++h;l("?",1,400).ttip=Calendar._TT.INFO;this.title=l("",h,300);this.title.className="title";if(this.isPopup){this.title.ttip=Calendar._TT.DRAG_TO_MOVE;this.title.style.cursor="move";l("&#x00d7;",1,200).ttip=Calendar._TT.CLOSE}y=Calendar.createElement("tr",p);y.className="headrow";this._nav_py=l("&#x00ab;",1,-2);this._nav_py.ttip=Calendar._TT.PREV_YEAR;this._nav_pm=l("&#x2039;",1,-1);this._nav_pm.ttip=Calendar._TT.PREV_MONTH;this._nav_now=l(Calendar._TT.TODAY,this.weekNumbers?4:3,0);this._nav_now.ttip=Calendar._TT.GO_TODAY;this._nav_nm=l("&#x203a;",1,1);this._nav_nm.ttip=Calendar._TT.NEXT_MONTH;this._nav_ny=l("&#x00bb;",1,2);this._nav_ny.ttip=Calendar._TT.NEXT_YEAR;y=Calendar.createElement("tr",p);y.className="daynames";if(this.weekNumbers){u=Calendar.createElement("td",y);u.className="name wn";u.innerHTML=Calendar._TT.WK}for(var o=7;o>0;--o){u=Calendar.createElement("td",y);if(!o){u.navtype=100;u.calendar=this;Calendar._add_evs(u)}}this.firstdayname=(this.weekNumbers)?y.firstChild.nextSibling:y.firstChild;this._displayWeekdays();var n=Calendar.createElement("tbody",x);this.tbody=n;for(o=6;o>0;--o){y=Calendar.createElement("tr",n);if(this.weekNumbers){u=Calendar.createElement("td",y)}for(var m=7;m>0;--m){u=Calendar.createElement("td",y);u.calendar=this;Calendar._add_evs(u)}}if(this.showsTime){y=Calendar.createElement("tr",n);y.className="time";u=Calendar.createElement("td",y);u.className="time";u.colSpan=2;u.innerHTML=Calendar._TT.TIME||"&nbsp;";u=Calendar.createElement("td",y);u.className="time";u.colSpan=this.weekNumbers?4:3;(function(){function B(K,M,L,N){var I=Calendar.createElement("span",u);I.className=K;I.innerHTML=M;I.calendar=c;I.ttip=Calendar._TT.TIME_PART;I.navtype=50;I._range=[];if(typeof L!="number"){I._range=L}else{for(var J=L;J<=N;++J){var H;if(J<10&&N>=10){H="0"+J}else{H=""+J}I._range[I._range.length]=H}}Calendar._add_evs(I);return I}var F=c.date.getHours();var j=c.date.getMinutes();var G=!c.time24;var z=(F>12);if(G&&z){F-=12}var D=B("hour",F,G?1:0,G?12:23);var C=Calendar.createElement("span",u);C.innerHTML=":";C.className="colon";var A=B("minute",j,0,59);var E=null;u=Calendar.createElement("td",y);u.className="time";u.colSpan=2;if(G){E=B("ampm",z?"pm":"am",["am","pm"])}else{u.innerHTML="&nbsp;"}c.onSetTime=function(){var I,H=this.date.getHours(),J=this.date.getMinutes();if(G){I=(H>=12);if(I){H-=12}if(H==0){H=12}E.innerHTML=I?"pm":"am"}D.innerHTML=(H<10)?("0"+H):H;A.innerHTML=(J<10)?("0"+J):J};c.onUpdateTime=function(){var I=this.date;var J=parseInt(D.innerHTML,10);if(G){if(/pm/i.test(E.innerHTML)&&J<12){J+=12}else{if(/am/i.test(E.innerHTML)&&J==12){J=0}}}var K=I.getDate();var H=I.getMonth();var L=I.getFullYear();I.setHours(J);I.setMinutes(parseInt(A.innerHTML,10));I.setFullYear(L);I.setMonth(H);I.setDate(K);this.dateClicked=false;this.callHandler()}})()}else{this.onSetTime=this.onUpdateTime=function(){}}var q=Calendar.createElement("tfoot",x);y=Calendar.createElement("tr",q);y.className="footrow";u=l(Calendar._TT.SEL_DATE,this.weekNumbers?8:7,300);u.className="ttip";if(this.isPopup){u.ttip=Calendar._TT.DRAG_TO_MOVE;u.style.cursor="move"}this.tooltips=u;a=Calendar.createElement("div",this.element);this.monthsCombo=a;a.className="combo";for(o=0;o<Calendar._MN.length;++o){var k=Calendar.createElement("div");k.className=Calendar.is_ie?"label-IEfix":"label";k.month=o;k.innerHTML=Calendar._SMN[o];a.appendChild(k)}a=Calendar.createElement("div",this.element);this.yearsCombo=a;a.className="combo";for(o=12;o>0;--o){var w=Calendar.createElement("div");w.className=Calendar.is_ie?"label-IEfix":"label";a.appendChild(w)}this._init(this.firstDayOfWeek,this.date);s.appendChild(this.element)};Calendar._keyEvent=function(q){var a=window._dynarch_popupCalendar;if(!a||a.multiple){return false}(Calendar.is_ie)&&(q=window.event);var o=(Calendar.is_ie||q.type=="keypress"),s=q.keyCode;if(q.ctrlKey){switch(s){case 37:o&&Calendar.cellClick(a._nav_pm);break;case 38:o&&Calendar.cellClick(a._nav_py);break;case 39:o&&Calendar.cellClick(a._nav_nm);break;case 40:o&&Calendar.cellClick(a._nav_ny);break;default:return false}}else{switch(s){case 32:Calendar.cellClick(a._nav_now);break;case 27:o&&a.callCloseHandler();break;case 37:case 38:case 39:case 40:if(o){var k,t,p,m,h,j;k=s==37||s==38;j=(s==37||s==39)?1:7;function c(){h=a.currentDateEl;var u=h.pos;t=u&15;p=u>>4;m=a.ar_days[p][t]}c();function l(){var u=new Date(a.date);u.setDate(u.getDate()-j);a.setDate(u)}function n(){var u=new Date(a.date);u.setDate(u.getDate()+j);a.setDate(u)}while(1){switch(s){case 37:if(--t>=0){m=a.ar_days[p][t]}else{t=6;s=38;continue}break;case 38:if(--p>=0){m=a.ar_days[p][t]}else{l();c()}break;case 39:if(++t<7){m=a.ar_days[p][t]}else{t=0;s=40;continue}break;case 40:if(++p<a.ar_days.length){m=a.ar_days[p][t]}else{n();c()}break}break}if(m){if(!m.disabled){Calendar.cellClick(m)}else{if(k){l()}else{n()}}}}break;case 13:if(o){Calendar.cellClick(a.currentDateEl,q)}break;default:return false}}return Calendar.stopEvent(q)};Calendar.prototype._init=function(t,E){var D=new Date(),y=D.getFullYear(),G=D.getMonth(),c=D.getDate();this.table.style.visibility="hidden";var o=E.getFullYear();if(o<this.minYear){o=this.minYear;E.setFullYear(o)}else{if(o>this.maxYear){o=this.maxYear;E.setFullYear(o)}}this.firstDayOfWeek=t;this.date=new Date(E);var F=E.getMonth();var I=E.getDate();var H=E.getMonthDays();E.setDate(1);var z=(E.getDay()-this.firstDayOfWeek)%7;if(z<0){z+=7}E.setDate(-z);E.setDate(E.getDate()+1);var l=this.tbody.firstChild;var q=Calendar._SMN[F];var w=this.ar_days=new Array();var u=Calendar._TT.WEEKEND;var k=this.multiple?(this.datesCells={}):null;for(var B=0;B<6;++B,l=l.nextSibling){var a=l.firstChild;if(this.weekNumbers){a.className="day wn";a.innerHTML=E.getWeekNumber();a=a.nextSibling}l.className="daysrow";var C=false,m,h=w[B]=[];for(var A=0;A<7;++A,a=a.nextSibling,E.setDate(m+1)){m=E.getDate();var n=E.getDay();a.className="day";a.pos=B<<4|A;h[A]=a;var s=(E.getMonth()==F);if(!s){if(this.showsOtherMonths){a.className+=" othermonth";a.otherMonth=true}else{a.className="emptycell";a.innerHTML="&nbsp;";a.disabled=true;continue}}else{a.otherMonth=false;C=true}a.disabled=false;a.innerHTML=this.getDateText?this.getDateText(E,m):m;if(k){k[E.print("%Y%m%d")]=a}if(this.getDateStatus){var x=this.getDateStatus(E,o,F,m);if(this.getDateToolTip){var p=this.getDateToolTip(E,o,F,m);if(p){a.title=p}}if(x===true){a.className+=" disabled";a.disabled=true}else{if(/disabled/i.test(x)){a.disabled=true}a.className+=" "+x}}if(!a.disabled){a.caldate=new Date(E);a.ttip="_";if(!this.multiple&&s&&m==I&&this.hiliteToday){a.className+=" selected";this.currentDateEl=a}if(E.getFullYear()==y&&E.getMonth()==G&&m==c){a.className+=" today";a.ttip+=Calendar._TT.PART_TODAY}if(u.indexOf(n.toString())!=-1){a.className+=a.otherMonth?" oweekend":" weekend"}}}if(!(C||this.showsOtherMonths)){l.className="emptyrow"}}this.title.innerHTML=Calendar._MN[F]+", "+o;this.onSetTime();this.table.style.visibility="visible";this._initMultipleDates()};Calendar.prototype._initMultipleDates=function(){if(this.multiple){for(var c in this.multiple){var a=this.datesCells[c];var h=this.multiple[c];if(!h){continue}if(a){a.className+=" selected"}}}};Calendar.prototype._toggleMultipleDate=function(c){if(this.multiple){var h=c.print("%Y%m%d");var a=this.datesCells[h];if(a){var j=this.multiple[h];if(!j){Calendar.addClass(a,"selected");this.multiple[h]=c}else{Calendar.removeClass(a,"selected");delete this.multiple[h]}}}};Calendar.prototype.setDateToolTipHandler=function(a){this.getDateToolTip=a};Calendar.prototype.setDate=function(a){if(!a.equalsTo(this.date)){this._init(this.firstDayOfWeek,a)}};Calendar.prototype.refresh=function(){this._init(this.firstDayOfWeek,this.date)};Calendar.prototype.setFirstDayOfWeek=function(a){this._init(a,this.date);this._displayWeekdays()};Calendar.prototype.setDateStatusHandler=Calendar.prototype.setDisabledHandler=function(a){this.getDateStatus=a};Calendar.prototype.setRange=function(c,h){this.minYear=c;this.maxYear=h};Calendar.prototype.callHandler=function(){if(this.onSelected){this.onSelected(this,this.date.print(this.dateFormat))}};Calendar.prototype.callCloseHandler=function(){if(this.onClose){this.onClose(this)}this.hideShowCovered()};Calendar.prototype.destroy=function(){var a=this.element.parentNode;a.removeChild(this.element);Calendar._C=null;window._dynarch_popupCalendar=null};Calendar.prototype.reparent=function(c){var a=this.element;a.parentNode.removeChild(a);c.appendChild(a)};Calendar._checkCalendar=function(c){var h=window._dynarch_popupCalendar;if(!h){return false}var a=Calendar.is_ie?Calendar.getElement(c):Calendar.getTargetElement(c);for(;a!=null&&a!=h.element;a=a.parentNode){}if(a==null){window._dynarch_popupCalendar.callCloseHandler();return Calendar.stopEvent(c)}};Calendar.prototype.show=function(){var l=this.table.getElementsByTagName("tr");for(var k=l.length;k>0;){var m=l[--k];Calendar.removeClass(m,"rowhilite");var h=m.getElementsByTagName("td");for(var c=h.length;c>0;){var a=h[--c];Calendar.removeClass(a,"hilite");Calendar.removeClass(a,"active")}}this.element.style.display="block";this.hidden=false;if(this.isPopup){window._dynarch_popupCalendar=this;Calendar.addEvent(document,"keydown",Calendar._keyEvent);Calendar.addEvent(document,"keypress",Calendar._keyEvent);Calendar.addEvent(document,"mousedown",Calendar._checkCalendar)}this.hideShowCovered()};Calendar.prototype.hide=function(){if(this.isPopup){Calendar.removeEvent(document,"keydown",Calendar._keyEvent);Calendar.removeEvent(document,"keypress",Calendar._keyEvent);Calendar.removeEvent(document,"mousedown",Calendar._checkCalendar)}this.element.style.display="none";this.hidden=true;this.hideShowCovered()};Calendar.prototype.showAt=function(a,h){var c=this.element.style;c.left=a+"px";c.top=h+"px";this.show()};Calendar.prototype.showAtElement=function(h,j){var a=this;var k=Calendar.getAbsolutePos(h);if(!j||typeof j!="string"){this.showAt(k.x,k.y+h.offsetHeight);return true}function c(o){if(o.x<0){o.x=0}if(o.y<0){o.y=0}var p=document.createElement("div");var n=p.style;n.position="absolute";n.right=n.bottom=n.width=n.height="0px";document.body.appendChild(p);var m=Calendar.getAbsolutePos(p);document.body.removeChild(p);if(Calendar.is_ie){m.y+=document.body.scrollTop;m.x+=document.body.scrollLeft}else{m.y+=window.scrollY;m.x+=window.scrollX}var l=o.x+o.width-m.x;if(l>0){o.x-=l}l=o.y+o.height-m.y;if(l>0){o.y-=l}}this.element.style.display="block";Calendar.continuation_for_the_fucking_khtml_browser=function(){var l=a.element.offsetWidth;var n=a.element.offsetHeight;a.element.style.display="none";var m=j.substr(0,1);var o="l";if(j.length>1){o=j.substr(1,1)}switch(m){case"T":k.y-=n;break;case"B":k.y+=h.offsetHeight;break;case"C":k.y+=(h.offsetHeight-n)/2;break;case"t":k.y+=h.offsetHeight-n;break;case"b":break}switch(o){case"L":k.x-=l;break;case"R":k.x+=h.offsetWidth;break;case"C":k.x+=(h.offsetWidth-l)/2;break;case"l":k.x+=h.offsetWidth-l;break;case"r":break}k.width=l;k.height=n+40;a.monthsCombo.style.display="none";c(k);a.showAt(k.x,k.y)};if(Calendar.is_khtml){setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()",10)}else{Calendar.continuation_for_the_fucking_khtml_browser()}};Calendar.prototype.setDateFormat=function(a){this.dateFormat=a};Calendar.prototype.setTtDateFormat=function(a){this.ttDateFormat=a};Calendar.prototype.parseDate=function(c,a){if(!a){a=this.dateFormat}this.setDate(Date.parseDate(c,a))};Calendar.prototype.hideShowCovered=function(){if(!Calendar.is_ie&&!Calendar.is_opera){return}function c(p){var k=p.style.visibility;if(!k){if(document.defaultView&&typeof(document.defaultView.getComputedStyle)=="function"){if(!Calendar.is_khtml){k=document.defaultView.getComputedStyle(p,"").getPropertyValue("visibility")}else{k=""}}else{if(p.currentStyle){k=p.currentStyle.visibility}else{k=""}}}return k}var z=new Array("applet","iframe","select");var h=this.element;var a=Calendar.getAbsolutePos(h);var m=a.x;var j=h.offsetWidth+m;var y=a.y;var x=h.offsetHeight+y;for(var o=z.length;o>0;){var n=document.getElementsByTagName(z[--o]);var l=null;for(var s=n.length;s>0;){l=n[--s];a=Calendar.getAbsolutePos(l);var w=a.x;var u=l.offsetWidth+w;var t=a.y;var q=l.offsetHeight+t;if(this.hidden||(w>j)||(u<m)||(t>x)||(q<y)){if(!l.__msh_save_visibility){l.__msh_save_visibility=c(l)}l.style.visibility=l.__msh_save_visibility}else{if(!l.__msh_save_visibility){l.__msh_save_visibility=c(l)}l.style.visibility="hidden"}}}};Calendar.prototype._displayWeekdays=function(){var c=this.firstDayOfWeek;var a=this.firstdayname;var j=Calendar._TT.WEEKEND;for(var h=0;h<7;++h){a.className="day name";var k=(h+c)%7;if(h){a.ttip=Calendar._TT.DAY_FIRST.replace("%s",Calendar._DN[k]);a.navtype=100;a.calendar=this;a.fdow=k;Calendar._add_evs(a)}if(j.indexOf(k.toString())!=-1){Calendar.addClass(a,"weekend")}a.innerHTML=Calendar._SDN[(h+c)%7];a=a.nextSibling}};Calendar.prototype._hideCombos=function(){this.monthsCombo.style.display="none";this.yearsCombo.style.display="none"};Calendar.prototype._dragStart=function(ev){if(this.dragging){return}this.dragging=true;var posX;var posY;if(Calendar.is_ie){posY=window.event.clientY+document.body.scrollTop;posX=window.event.clientX+document.body.scrollLeft}else{posY=ev.clientY+window.scrollY;posX=ev.clientX+window.scrollX}var st=this.element.style;this.xOffs=posX-parseInt(st.left);this.yOffs=posY-parseInt(st.top);with(Calendar){addEvent(document,"mousemove",calDragIt);addEvent(document,"mouseup",calDragEnd)}};Date._MD=new Array(31,28,31,30,31,30,31,31,30,31,30,31);Date.SECOND=1000;Date.MINUTE=60*Date.SECOND;Date.HOUR=60*Date.MINUTE;Date.DAY=24*Date.HOUR;Date.WEEK=7*Date.DAY;Date.parseDate=function(p,c){var q=new Date();var s=0;var h=-1;var o=0;var w=p.split(/\W+/);var u=c.match(/%./g);var n=0,l=0;var x=0;var k=0;for(n=0;n<w.length;++n){if(!w[n]){continue}switch(u[n]){case"%d":case"%e":o=parseInt(w[n],10);break;case"%m":h=parseInt(w[n],10)-1;break;case"%Y":case"%y":s=parseInt(w[n],10);(s<100)&&(s+=(s>29)?1900:2000);break;case"%b":case"%B":for(l=0;l<12;++l){if(Calendar._MN[l].substr(0,w[n].length).toLowerCase()==w[n].toLowerCase()){h=l;break}}break;case"%H":case"%I":case"%k":case"%l":x=parseInt(w[n],10);break;case"%P":case"%p":if(/pm/i.test(w[n])&&x<12){x+=12}else{if(/am/i.test(w[n])&&x>=12){x-=12}}break;case"%M":k=parseInt(w[n],10);break}}if(isNaN(s)){s=q.getFullYear()}if(isNaN(h)){h=q.getMonth()}if(isNaN(o)){o=q.getDate()}if(isNaN(x)){x=q.getHours()}if(isNaN(k)){k=q.getMinutes()}if(s!=0&&h!=-1&&o!=0){return new Date(s,h,o,x,k,0)}s=0;h=-1;o=0;for(n=0;n<w.length;++n){if(w[n].search(/[a-zA-Z]+/)!=-1){var z=-1;for(l=0;l<12;++l){if(Calendar._MN[l].substr(0,w[n].length).toLowerCase()==w[n].toLowerCase()){z=l;break}}if(z!=-1){if(h!=-1){o=h+1}h=z}}else{if(parseInt(w[n],10)<=12&&h==-1){h=w[n]-1}else{if(parseInt(w[n],10)>31&&s==0){s=parseInt(w[n],10);(s<100)&&(s+=(s>29)?1900:2000)}else{if(o==0){o=w[n]}}}}}if(s==0){s=q.getFullYear()}if(h!=-1&&o!=0){return new Date(s,h,o,x,k,0)}return q};Date.prototype.getMonthDays=function(c){var a=this.getFullYear();if(typeof c=="undefined"){c=this.getMonth()}if(((0==(a%4))&&((0!=(a%100))||(0==(a%400))))&&c==1){return 29}else{return Date._MD[c]}};Date.prototype.getDayOfYear=function(){var a=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var h=new Date(this.getFullYear(),0,0,0,0,0);var c=a-h;return Math.floor(c/Date.DAY)};Date.prototype.getWeekNumber=function(){var h=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var c=h.getDay();h.setDate(h.getDate()-(c+6)%7+3);var a=h.valueOf();h.setMonth(0);h.setDate(4);return Math.round((a-h.valueOf())/(7*86400000))+1};Date.prototype.equalsTo=function(a){return((this.getFullYear()==a.getFullYear())&&(this.getMonth()==a.getMonth())&&(this.getDate()==a.getDate())&&(this.getHours()==a.getHours())&&(this.getMinutes()==a.getMinutes()))};Date.prototype.setDateOnly=function(a){var c=new Date(a);this.setDate(1);this.setFullYear(c.getFullYear());this.setMonth(c.getMonth());this.setDate(c.getDate())};Date.prototype.print=function(q){var c=this.getMonth();var p=this.getDate();var t=this.getFullYear();var x=this.getWeekNumber();var z=this.getDay();var D={};var A=this.getHours();var h=(A>=12);var n=(h)?(A-12):A;var C=this.getDayOfYear();if(n==0){n=12}var j=this.getMinutes();var o=this.getSeconds();D["%a"]=Calendar._SDN[z];D["%A"]=Calendar._DN[z];D["%b"]=Calendar._SMN[c];D["%B"]=Calendar._MN[c];D["%C"]=1+Math.floor(t/100);D["%d"]=(p<10)?("0"+p):p;D["%e"]=p;D["%H"]=(A<10)?("0"+A):A;D["%I"]=(n<10)?("0"+n):n;D["%j"]=(C<100)?((C<10)?("00"+C):("0"+C)):C;D["%k"]=A;D["%l"]=n;D["%m"]=(c<9)?("0"+(1+c)):(1+c);D["%M"]=(j<10)?("0"+j):j;D["%n"]="\n";D["%p"]=h?"PM":"AM";D["%P"]=h?"pm":"am";D["%s"]=Math.floor(this.getTime()/1000);D["%S"]=(o<10)?("0"+o):o;D["%t"]="\t";D["%U"]=D["%W"]=D["%V"]=(x<10)?("0"+x):x;D["%u"]=z+1;D["%w"]=z;D["%y"]=(""+t).substr(2,2);D["%Y"]=t;D["%%"]="%";var B=/%./g;if(!Calendar.is_ie5&&!Calendar.is_khtml){return q.replace(B,function(a){return D[a]||a})}var u=q.match(B);for(var l=0;l<u.length;l++){var k=D[u[l]];if(k){B=new RegExp(u[l],"g");q=q.replace(B,k)}}return q};if(!Date.prototype.__msh_oldSetFullYear){Date.prototype.__msh_oldSetFullYear=Date.prototype.setFullYear;Date.prototype.setFullYear=function(c){var a=new Date(this);a.__msh_oldSetFullYear(c);if(a.getMonth()!=this.getMonth()){this.setDate(28)}this.__msh_oldSetFullYear(c)}}window._dynarch_popupCalendar=null;Calendar.setup=function(m){function l(n,o){if(typeof m[n]=="undefined"){m[n]=o}}l("inputField",null);l("displayArea",null);l("button",null);l("eventName","click");l("ifFormat","%Y/%m/%d");l("daFormat","%Y/%m/%d");l("singleClick",true);l("disableFunc",null);l("dateStatusFunc",m.disableFunc);l("dateText",null);l("firstDay",null);l("align","Br");l("range",[1900,2999]);l("weekNumbers",true);l("flat",null);l("flatCallback",null);l("onSelect",null);l("onClose",null);l("onUpdate",null);l("date",null);l("showsTime",false);l("timeFormat","24");l("electric",true);l("step",2);l("position",null);l("cache",false);l("showOthers",false);l("multiple",null);var h=["inputField","displayArea","button"];for(var c in h){if(typeof m[h[c]]=="string"){m[h[c]]=document.getElementById(m[h[c]])}}if(!(m.flat||m.multiple||m.inputField||m.displayArea||m.button)){alert("Calendar.setup:\n  Nothing to setup (no fields found).  Please check your code");return false}function a(o){var n=o.params;var q=(o.dateClicked||n.electric);if(q&&n.inputField){n.inputField.value=o.date.print(n.ifFormat);if(typeof n.inputField.onchange=="function"){n.inputField.onchange()}}if(q&&n.displayArea){n.displayArea.innerHTML=o.date.print(n.daFormat)}if(q&&typeof n.onUpdate=="function"){n.onUpdate(o)}if(q&&n.flat){if(typeof n.flatCallback=="function"){n.flatCallback(o)}}if(q&&n.singleClick&&o.dateClicked){o.callCloseHandler()}}if(m.flat!=null){if(typeof m.flat=="string"){m.flat=document.getElementById(m.flat)}if(!m.flat){alert("Calendar.setup:\n  Flat specified but can't find parent.");return false}var k=new Calendar(m.firstDay,m.date,m.onSelect||a);k.showsOtherMonths=m.showOthers;k.showsTime=m.showsTime;k.time24=(m.timeFormat=="24");k.params=m;k.weekNumbers=m.weekNumbers;k.setRange(m.range[0],m.range[1]);k.setDateStatusHandler(m.dateStatusFunc);k.getDateText=m.dateText;if(m.ifFormat){k.setDateFormat(m.ifFormat)}if(m.inputField&&typeof m.inputField.value=="string"){k.parseDate(m.inputField.value)}k.create(m.flat);k.show();return false}var j=m.button||m.displayArea||m.inputField;j["on"+m.eventName]=function(){var n=m.inputField||m.displayArea;var p=m.inputField?m.ifFormat:m.daFormat;var u=false;var s=window.calendar;if(n){m.date=Date.parseDate(n.value||n.innerHTML,p)}if(!(s&&m.cache)){window.calendar=s=new Calendar(m.firstDay,m.date,m.onSelect||a,m.onClose||function(w){w.hide()});s.showsTime=m.showsTime;s.time24=(m.timeFormat=="24");s.weekNumbers=m.weekNumbers;u=true}else{if(m.date){s.setDate(m.date)}s.hide()}if(m.multiple){s.multiple={};for(var o=m.multiple.length;--o>=0;){var t=m.multiple[o];var q=t.print("%Y%m%d");s.multiple[q]=t}}s.showsOtherMonths=m.showOthers;s.yearStep=m.step;s.setRange(m.range[0],m.range[1]);s.params=m;s.setDateStatusHandler(m.dateStatusFunc);s.getDateText=m.dateText;s.setDateFormat(p);if(u){s.create()}s.refresh();if(!m.position){s.showAtElement(m.button||m.displayArea||m.inputField,m.align)}else{s.showAt(m.position[0],m.position[1])}return false};return k};Number.formatFunctions={count:0};Number.prototype.NaN="NaN";Number.prototype.posInfinity="Infinity";Number.prototype.negInfinity="-Infinity";Number.prototype.numberFormat=function(c,a){if(isNaN(this)){return Number.prototype.NaNstring}else{if(this==+Infinity){return Number.prototype.posInfinity}else{if(this==-Infinity){return Number.prototype.negInfinity}else{if(Number.formatFunctions[c]==null){Number.createNewFormat(c)}}}}return this[Number.formatFunctions[c]](a)};Number.createNewFormat=function(format){var funcName="format"+Number.formatFunctions.count++;Number.formatFunctions[format]=funcName;var code="Number.prototype."+funcName+" = function(context){\n";var formats=format.split(";");switch(formats.length){case 1:code+=Number.createTerminalFormat(format);break;case 2:code+='return (this < 0) ? this.numberFormat("'+String.escape(formats[1])+'", 1) : this.numberFormat("'+String.escape(formats[0])+'", 2);';break;case 3:code+='return (this < 0) ? this.numberFormat("'+String.escape(formats[1])+'", 1) : ((this == 0) ? this.numberFormat("'+String.escape(formats[2])+'", 2) : this.numberFormat("'+String.escape(formats[0])+'", 3));';break;default:code+="throw 'Too many semicolons in format string';";break}eval(code+"}")};Number.createTerminalFormat=function(p){if(p.length>0&&p.search(/[0#?]/)==-1){return"return '"+String.escape(p)+"';\n"}var a="var val = (context == null) ? new Number(this) : Math.abs(this);\n";var l=false;var k=p;var n="";var q=0;var s=0;var c=0;var o=false;var h="";j=p.match(/\..*(e)([+-]?)(0+)/i);if(j){h=j[1];o=(j[2]=="+");c=j[3].length;p=p.replace(/(e)([+-]?)(0+)/i,"")}var j=p.match(/^([^.]*)\.(.*)$/);if(j){k=j[1].replace(/\./g,"");n=j[2].replace(/\./g,"")}if(p.indexOf("%")>=0){a+="val *= 100;\n"}j=k.match(/(,+)(?:$|[^0#?,])/);if(j){a+="val /= "+Math.pow(1000,j[1].length)+"\n;"}if(k.search(/[0#?],[0#?]/)>=0){l=true}if((j)||l){k=k.replace(/,/g,"")}j=k.match(/0[0#?]*/);if(j){q=j[0].length}j=n.match(/[0#?]*/);if(j){s=j[0].length}if(c>0){a+="var sci = Number.toScientific(val,"+q+", "+s+", "+c+", "+o+");\nvar arr = [sci.l, sci.r];\n"}else{if(p.indexOf(".")<0){a+="val = (val > 0) ? Math.ceil(val) : Math.floor(val);\n"}a+="var arr = val.round("+s+").toFixed("+s+").split('.');\n";a+="arr[0] = (val < 0 ? '-' : '') + String.leftPad((val < 0 ? arr[0].substring(1) : arr[0]), "+q+", '0');\n"}if(l){a+="arr[0] = Number.addSeparators(arr[0]);\n"}a+="arr[0] = Number.injectIntoFormat(arr[0].reverse(), '"+String.escape(k.reverse())+"', true).reverse();\n";if(s>0){a+="arr[1] = Number.injectIntoFormat(arr[1], '"+String.escape(n)+"', false);\n"}if(c>0){a+="arr[1] = arr[1].replace(/(\\d{"+s+"})/, '$1"+h+"' + sci.s);\n"}return a+"return arr.join(',');\n"};Number.toScientific=function(h,m,n,c,j){var o={l:"",r:"",s:""};var k="";var l=Math.abs(h).toFixed(m+n+1).trim("0");var a=Math.round(new Number(l.replace(".","").replace(new RegExp("(\\d{"+(m+n)+"})(.*)"),"$1.$2"))).toFixed(0);if(a.length>=m){a=a.substring(0,m)+"."+a.substring(m)}else{a+="."}o.s=(l.indexOf(".")-l.search(/[1-9]/))-a.indexOf(".");if(o.s<0){o.s++}o.l=(h<0?"-":"")+String.leftPad(a.substring(0,a.indexOf(".")),m,"0");o.r=a.substring(a.indexOf(".")+1);if(o.s<0){k="-"}else{if(j){k="+"}}o.s=k+String.leftPad(Math.abs(o.s).toFixed(0),c,"0");return o};Number.prototype.round=function(c){if(c>0){var a=this.toFixed(c+1).match(new RegExp("(-?\\d*).(\\d{"+c+"})(\\d)\\d*$"));if(a&&a.length){return new Number(a[1]+"."+String.leftPad(Math.round(a[2]+"."+a[3]),c,"0"))}}return this};Number.injectIntoFormat=function(n,m,c){var k=0;var h=0;var a="";var l=n.charAt(n.length-1)=="-";if(l){n=n.substring(0,n.length-1)}while(k<m.length&&h<n.length&&m.substring(k).search(/[0#?]/)>=0){if(m.charAt(k).match(/[0#?]/)){if(n.charAt(h)!="-"){a+=n.charAt(h)}else{a+="0"}h++}else{a+=m.charAt(k)}++k}if(l&&h==n.length){a+="-"}if(h<n.length){if(c){a+=n.substring(h)}if(l){a+="-"}}if(k<m.length){a+=m.substring(k)}return a.replace(/#/g,"").replace(/\?/g," ")};Number.addSeparators=function(a){return a.reverse().replace(/(\d{3})/g,"$1.").reverse().replace(/^(-)?\./,"$1")};String.prototype.reverse=function(){var c="";for(var a=this.length;a>0;--a){c+=this.charAt(a-1)}return c};String.prototype.trim=function(a){if(!a){a=" "}return this.replace(new RegExp("^"+a+"+|"+a+"+$","g"),"")};String.leftPad=function(j,c,h){var a=new String(j);if(h==null){h=" "}while(a.length<c){a=h+a}return a};String.escape=function(a){return a.replace(/('|\\)/g,"\\$1")};var ajaxCache=new Array();var ajaxJSONCache=new Array();var map=null;var mapVS=null;var maps=new Array();var directions=null;var stopOverLocations=new Array();var searchRootUrl=/([a-z\/]+)scripts/;searchRootUrl.exec(location.pathname);var rootUrl=RegExp.$1;var ajaxUrl=rootUrl+"scripts/ajax_json.php?";var vsStartStop=new Array();var vsLocations=new Array();ol_bgcolor="#0CC1E3";ol_fgcolor="#ffffff";ol_closecolor="#ffffff";function isError(a){if(a!=null&&a.PEARError!=undefined&&a.PEARError==true){return true}return false}Array.prototype.remove=function(c){for(var a=0;a<this.length;a++){if(c==this[a]){this.splice(a,1)}}};Array.prototype.exists=function(c){var h=false;for(var a=0;a<this.length;a++){if(c==this[a]){h=true}}return h};function sprintf(){if(sprintf.arguments.length<2){return}var c=sprintf.arguments[0];for(var a=1;a<sprintf.arguments.length;++a){switch(typeof(sprintf.arguments[a])){case"string":c=c.replace(/%s/,sprintf.arguments[a]);break;case"number":c=c.replace(/%d/,sprintf.arguments[a]);break;case"boolean":c=c.replace(/%b/,sprintf.arguments[a]?"true":"false");break;default:break}}return(c)}if(!String.sprintf){String.sprintf=sprintf}var orderByItems=new Array();var selectedCountryIds=new Array();function new_window(a){win=window.open(a,"NewWindow","width=600,height=500,scrollbars=yes,resizable=no,screenX=100,screenY=50")}function ask(h,a){var c=getTranslation(h);if(a!="undefined"){c=String.sprintf(c,a)}return confirm(c)}function askDelete(a,c){return confirm("Soll "+a+" gelöscht werden?")}function addOrder(a){var l=a;while(l.nodeName!="TH"){l=l.parentNode}var o=l.id;var h=a;var n=h.src.match(/^(.*)\/(sort-)(asc|desc)-?(selected|)\.(png|gif)/i);var c=n[3];if(n[4]=="selected"){h.src=n[1]+"/"+n[2]+n[3]+"."+n[5];addOrderByItem(o,"")}else{h.src=n[1]+"/"+n[2]+n[3]+"-selected."+n[5];var j="asc";if(n[3]=="asc"){j="desc"}var k="sort-"+j;var m=h.parentNode;m.getElementsByTagName("img")[k].setAttribute("src",n[1]+"/"+n[2]+j+"."+n[5]);addOrderByItem(o,c)}}function addOrderByItem(k,c){var a=new Array();a.asc="desc";a.desc="asc";var j=false;for(var h=0;h<orderByItems.length;h++){itemChunks=orderByItems[h].split("|");if(itemChunks[0]==k){if(c==""){orderByItems[h]=k+"|-"}else{if(itemChunks[1]=="-"){itemChunks[1]=a[c]}orderByItems[h]=k+"|"+a[itemChunks[1]]}j=true}}if(!j){orderByItems.push(k+"|"+c)}}function finalizeOrder(k){var o=document.location.pathname.match(/([a-z0-9\/]*\.php)/i);var l=o[1]+"?orderby=";var h=k;var n=k;while(h.nodeName!="TH"){h=h.parentNode}var m=h.id;addOrder(k);var c="";for(var a=0;a<orderByItems.length;a++){o=orderByItems[a].split("|");if(o[1]!="-"){c+=((c=="")?"":",")+orderByItems[a]}}window.location.href=l+c}function selectOrder(j){var a=document.getElementById("results");var k=a.getElementsByTagName("th");var l=j.split(",");for(var m=0;m<k.length;m++){for(var o=0;o<l.length;o++){var n=l[o].split("|");if(k[m].id==n[0]){markColumnOrder(k[m],n[1],o+1)}}}}function markColumnOrder(c,h,a){if(h){var k=c.getElementsByTagName("img")["sort-"+h];var j=k.src.match(/^(.*)\/(sort-)(asc|desc)-?(selected|)\.(png|gif)/i);k.src=j[1]+"/"+j[2]+j[3]+"-selected."+j[5]}}function getTranslation(h,a){var c="ajaxGetTranslation="+h;if(a!=undefined){c+="&pageId="+a}return ajaxJSONCall(c)}function ajaxCall(c){if(ajaxCache[c]==undefined){var j=document.location.pathname.match(/([a-z0-9\/]*\/scripts\/)/i);var h=j[1]+"ajax.php?";var a=h+c;ajaxCache[c]=decodeURI(HTML_AJAX.grab(a))}return ajaxCache[c]}function ajaxJSONCall(call,noCache){if(ajaxJSONCache[call]==undefined||noCache==true){var chunks=document.location.pathname.match(/([a-z0-9\/]*\/scripts\/)/i);var baseUrl=chunks[1]+"ajax_json.php?";var callUrl=baseUrl+call;ajaxJSONCache[call]=eval("("+HTML_AJAX.grab(callUrl)+")")}return ajaxJSONCache[call]}function ajaxUpdateCountriesForContinent(l,q,c,j,p){if(typeof l=="string"){var s="ajaxUpdateCountriesForContinent="+l}else{var s="ajaxUpdateCountriesForContinent="+l.value}if(p==true){s=s+"&deliveryonly=1"}if(l==undefined||l==""){selectedCountryIds=new Array();q.form.selectedCountryIds.value=""}var k=q.options[0].text;var n=q.value;res=ajaxCall(s);if(res!=""){q.options.length=0;opts=res.split("|");var a=0;if(!j){q.options[a]=new Option(k,"",false,false);a++}for(var h=0;h<opts.length;h++){chunks=opts[h].split(":");var m=false;if((c&&selectedCountryIds.exists(chunks[0]))||(chunks[0]==n)){m=true}q.options[h+a]=new Option(chunks[1],chunks[0],m,m)}}else{q.options.length=0;q.options[0]=new Option(getTranslation("nothingFound"),"",false,false)}}function ajaxUpdateDeliveryCountriesForContinent(j,c,a,h){ajaxUpdateCountriesForContinent(j,c,a,h,true)}function ajaxUpdateCountriesForEpochFilter(j,p,c,k){if(typeof j=="string"){var q="ajaxUpdateCountriesForEpochFilter="+j}else{var q="ajaxUpdateCountriesForEpochFilter="+j.value}var l=p.options[0].text;var n=p.value;res=ajaxCall(q);if(res!=""){p.options.length=0;opts=res.split("|");var a=0;if(!k){p.options[a]=new Option(l,"",false,false);a++}for(var h=0;h<opts.length;h++){chunks=opts[h].split(":");var m=false;if((c&&selectedCountryIds.exists(chunks[0]))||(chunks[0]==n)){m=true}p.options[h+a]=new Option(chunks[1],chunks[0],m,m)}}else{p.options.length=0;p.options[0]=new Option(getTranslation("nothingFound"),"",false,false)}}function showLargeImage(k,a,j){var h="ajaxGetLargeImage="+k+"&position="+a+"&ot="+j;res=ajaxCall(h);if(res.match(/-[0-9]+/)){alert(getTranslation(res,"offer"))}else{var m=document.getElementById("image"+k);var l=res.split("/");var c=new RegExp("^([a-z0-9.:/]*/)"+l[0]);var n=m.src.match(c);m.src=n[1]+res}}function popup(a){var h=document.location.pathname.match(/([a-z0-9\/]*\/scripts\/)/i);var c=h[1]+"popup.php?key="+a;win=window.open(c,"popup","width=600, height=500, scrollbars=yes, resizable=no")}function markCountryAsSelected(c,a){if(a.value!=""){selectedCountryIds=a.value.split(",")}for(var h=0;h<c.options.length;h++){if(c.options[h].value>0){selectedCountryIds.remove(c.options[h].value);if(c.options[h].selected){selectedCountryIds.push(c.options[h].value)}}}a.value=selectedCountryIds.join(",")}function selectAllItems(a,c){var j=0;for(var h=0;h<a.options.length;h++){a.options[h].selected=true;j++}if(c&&j==a.options.length){for(var h=0;h<a.options.length;h++){a.options[h].selected=false}}}function checkQuantityZero(a){if(a.value==0){return confirm(getTranslation("js_text_checkQuantityZero"))}return true}function setHover(a){if(a.className=="rowhover"){a.className=a.id}else{a.id=a.className;a.className="rowhover"}}function setClickHover(a){if(a.className=="rowclickhover"){a.className=a.id}else{a.id=a.className;a.className="rowclickhover"}}function round(c,a){return(Math.round(c*Math.pow(10,a)))/Math.pow(10,a)}function cleanQueryString(h){var a=document.location.pathname;if(document.location.search!=""){var m="";var k=new RegExp(h);var j=document.location.search.substring(1).split("&");for(var l=0;l<j.length;l++){if(j[l].match(k)==null){m+=j[l]+"&"}}a+="?"+m}else{a+="?"}return a}function setFilter(h,c){var a=cleanQueryString("filtername|filtervalue");redirectTo=a+"filtername="+h+"&filtervalue="+escape(c);window.location.href=redirectTo}function setExtendedFilter(c,a){if(a.nodeName=="TD"){a=a.innerHTML}setInputFilter(c,a)}function setInputFilter(c,a){chunks=a.split("::");var h=" = ";if(chunks.length==2){h=" "+chunks[0]+" ";a=chunks[1]}operator=window.prompt("Bitte geben Sie die Bedingung für die Spalte "+c.toUpperCase()+" im SQL-Format ein. Mögliche Operatoren: <, >, =, <=, >=, !=, IN, NOT IN, (NOT )LIKE, (NOT )ILIKE, (NOT )BETWEEN, IS\nWeitere Beispiele finden sich in der Hilfe.",c+h+a);if(operator==null){return}whereMatch=/^([0-9a-z_\.]+)\s*(<|>|=|<=|>=|!=|IN|NOT IN|LIKE|ILIKE|NOT BETWEEN|BETWEEN|IS|NOT ILIKE|NOT LIKE)\s*([:a-z0-9\s,'"\(\)%_\*\.\-\\/]+)$/i;result=whereMatch.exec(operator);if(result==null){alert("Der Filter wurde nicht erkannt!")}else{if(result!=null&&result[1]==c){a=result[2]+"::"+result[3].replace(/\*/g,"%").replace(/\"/g,"'")}if(operator!=null&&result[3].match(/^\s*$/)==null){setFilter(c,a)}}}function editInputFilter(c,a){chunks=a.split("::");operator=chunks[0];a=chunks[1];filter=window.prompt("Bitte geben Sie die neue Filterbedingung für den folgenden Filter ein:\n"+c+" "+operator.toUpperCase()+" "+a,c+" "+operator+" "+a);whereMatch=/^([0-9a-z_\.]+)\s*(<|>|=|<=|>=|!=|IN|NOT IN|LIKE|ILIKE|NOT BETWEEN|BETWEEN|IS|NOT ILIKE|NOT LIKE)\s*([:a-z0-9\s,'"\(\)%_\*\.\-\\/]+)$/i;result=whereMatch.exec(filter);if(result!=null&&result[1]==c){a=result[2]+"::"+result[3].replace(/\*/g,"%").replace(/\"/g,"'")}if(filter!=null&&result[3].match(/^\s*$/)==null){setFilter(c,a)}}function removeFilter(c){var a=cleanQueryString("filtername|filtervalue");window.location.href=a+"filtername="+c}function updateCharsLeftCount(h,j,a){var k=j.value;var c=h-k.length;if(c<=0){j.value=k.substr(0,h);c=0}a.innerHTML=c}function ajaxAddToSelectedTraderSearches(h){var a=h.value;var j=parseInt(document.getElementById("selectedItems").innerHTML);if(h.checked==true){var c="ajaxAddToSelectedTraderSearches="+a;document.getElementById("selectedItems").innerHTML=j+1}else{var c="ajaxRemoveFromSelectedTraderSearches="+a;document.getElementById("selectedItems").innerHTML=j-1}res=ajaxCall(c)}function getOffer(c,a){var h="ajaxGetOffer="+c+"&offerType="+a;return ajaxJSONCall(h)}function showPostage(c,a){var h=getOffer(c,a);var j=h.packagingpostage;overlib(j,CAPTION," "+getTranslation("label_packagingpostage")+" ID [ "+c+" ]",WRAP,CELLPAD,5,HAUTO,VAUTO)}function getQuantityScale(c,a){var h="ajaxGetQuantityScale="+c+"&offerType="+a;return ajaxJSONCall(h)}function showQuantityScale(h,c){c="traderoffer";var j=getOffer(h,c);var m=j.price;var a="<table class=list2><tr><th>"+getTranslation("label_quantityfrom")+"</th><th>"+getTranslation("label_unitpricenet")+"</th><tr>";a+='<tr><td class=center>1</td><td class="rightalign lastcolumn nobr">&euro; '+(new Number(m)).numberFormat("#,#.00")+"</td></tr>";var l=getQuantityScale(h,c);for(var k=0;k<l.length;k++){a+="<tr><td class=center>"+(new Number(l[k]["quantity"])).numberFormat("#,#")+'</td><td class="rightalign lastcolumn nobr">&euro; '+(new Number(l[k]["price"])).numberFormat("#,#.00")+"</td></tr>"}a+="</table>";overlib(a,CAPTION," "+getTranslation("label_quantityscale")+" ID [ "+h+" ]",WRAP,CELLPAD,5,HAUTO,VAUTO)}function setAccountholder(a){if(a.value==""){a.value=a.form.firstname.value+" "+a.form.lastname.value}}function getRatingCommentTemplate(h){var a=document.getElementById("r_"+h);if(a.innerHTML==""){var c="ajaxGetRatingCommentTemplate";template=ajaxJSONCall(c);template=template.replace(/%RID%/i,h);a.innerHTML=template}else{a.innerHTML=""}}function addQuantityScaleRecord(m){var k=m.rows.length;var j=k;var n=m.insertRow(k);var c=n.insertCell(0);var l=document.createElement("input");l.type="text";l.name="quantityscale["+(j-1)+"][quantity]";l.value="";l.size=8;c.appendChild(l);var a=n.insertCell(1);var h=document.createElement("input");h.type="text";h.name="quantityscale["+(j-1)+"][price]";h.value="";h.size=10;a.appendChild(h)}function sortColumn(c){var k=c.id;var j="ASC";var h=document.location.search.match(/orderBy=[a-z0-9_\.]+\|(ASC|DESC)/i);if(h!=undefined&&h[1]!=undefined){j=(h[1].toLowerCase()=="asc")?"DESC":"ASC"}var a=document.location.pathname+((document.location.search=="")?"?":document.location.search+"&");if(document.location.search!=""){a=cleanQueryString("orderBy")}a+="orderBy="+k+"|"+j;document.location.href=a}function showSort(c){var h=c.split("|");if(c!=""&&h!=undefined&&h[0]!=undefined&&h[1]!=undefined){var a=(h[1].toLowerCase()=="desc")?"&darr;":"&uarr;";document.getElementById(h[0]).innerHTML+=" "+a;document.getElementById(h[0]).className+=" nobr"}}function getInvoice(c){var a="ajaxGetInvoice="+c;return ajaxJSONCall(a)}function invoiceOptions(h){var c=getInvoice(h);var a="";if(c.payed_01=="f"){a+='<a href="javascript: markInvoiceAsPayed('+h+');">... als bezahlt markieren</a><br/>'}if(c.userhistoryRecord["paperbill_01"]=="t"&&c.paperbill_01=="f"){a+='<a href="javascript: markInvoiceAsPaperbillSent('+h+');">... als per Post verschickt markieren</a><br/>'}if(c.accounted_01=="f"){a+='<a href="javascript: addCreditToInvoice('+h+');">... Wertgutschrift</a><br/>'}if(a==""){alert("Keine weiteren Optionen")}else{overlib(a,CAPTION,"Rechnungsoptionen [ "+h+" ]",WRAP,CELLPAD,5,HAUTO,VAUTO,STICKY)}}function markInvoiceAsPayed(c){var a=document.location.pathname+((document.location.search!="")?document.location.search+"&":"?");document.location.href=a+"btn_markInvoiceAsPayed="+c}function markInvoiceAsPaperbillSent(c){var a=document.location.pathname+((document.location.search!="")?document.location.search+"&":"?");document.location.href=a+"btn_markInvoiceAsPaperbillSent="+c}function addCreditToInvoice(h){var a=prompt("Wertgutschrift Rechnung [ "+h+" ]",0);if(a!=null){a=a.replace(",",".");if(a>0){var c="ajaxAddCreditToInvoice="+h+"&amount="+a;var a=ajaxJSONCall(c);var j=a.split("|");if(j[0]<0){alert(getTranslation(j[0],j[1]))}else{alert(a);document.location.href=document.location.href}}}}function emptyFields(j,h){var a=h.split("|");for(var c=0;c<a.length;c++){j.elements[a[c]].value=""}}function emptyFieldById(a){document.getElementById(a).value=""}function emptyField(a){a.value=""}function hideSearchresults(a){document.getElementById(a+"_searchresult").innerHTML="";document.getElementById(a+"_searchresult").style.border="0px";document.getElementById(a+"_searchresult").style.display="none"}function createSearchResultDiv(a){if(document.getElementById(a+"_searchresult")==null){var h=document.createElement("div");h.setAttribute("id",a+"_searchresult");var c=document.createAttribute("class");c.nodeValue="searchResultDiv";h.setAttributeNode(c);if(document.getElementById(a).nodeName!="div"){var j=document.getElementById(a).parentNode.parentNode;j.insertBefore(h,document.getElementById(a).parentNode.nextSibling.nextSibling)}else{document.getElementById(a).appendChild(h)}}}function searchStartLocations(a){var h=a.name;createSearchResultDiv(h);if(a.value.length>=3&&a.value.search(/^[A-Z]{2},/)==-1){var l=document.location.pathname.match(/([a-z0-9\/]*\/scripts\/)/i);var j=l[1]+"ajax_json.php?";var c=j+"ajaxSearchStartLocations="+encodeURI(a.value);var k=new ShowLocations(h);HTML_AJAX.grab(c,k.invoke)}else{document.getElementById(h+"_searchresult").innerHTML="";document.getElementById(h+"_searchresult").style.border="0px";document.getElementById(h+"_searchresult").style.display="none";document.getElementById(h+"_select").value="";return}}function searchDestinationLocations(a){var h=a.name;createSearchResultDiv(h);if(a.value.length>=3&&a.value.search(/^[A-Z]{2},/)==-1){startLocationId=document.getElementById("search_location_from_select").value;var l=document.location.pathname.match(/([a-z0-9\/]*\/scripts\/)/i);var j=l[1]+"ajax_json.php?";var c=j+"ajaxSearchDestinationLocations="+encodeURI(a.value)+"&startLocationId="+startLocationId;var k=new ShowLocations(h);HTML_AJAX.grab(c,k.invoke)}else{document.getElementById(h+"_searchresult").innerHTML="";document.getElementById(h+"_searchresult").style.border="0px";document.getElementById(h+"_searchresult").style.display="none";document.getElementById(h+"_select").value="";return}}function searchLocation(a,j){var h=a.name;createSearchResultDiv(h);if(a.value.length>2){var m=document.location.pathname.match(/([a-z0-9\/]*\/scripts\/)/i);var k=m[1]+"ajax_json.php?";var c=k+"ajaxSearchLocation="+encodeURI(a.value);var l=new ShowLocations(h,j);HTML_AJAX.grab(c,l.invoke)}else{document.getElementById(h+"_searchresult").innerHTML="";document.getElementById(h+"_searchresult").style.border="0px";document.getElementById(h+"_searchresult").style.display="none";document.getElementById(h+"_select").value="";if(document.getElementById(h+"_radius")!=undefined){document.getElementById(h+"_radius").style.display="none"}return}}function ShowLocations(fieldname,showInMap){this.fieldname=fieldname;var me=this;var searchResultDivId=me.fieldname+"_searchresult";this.invoke=function(results){if(document.getElementById(fieldname).value.search(/^[a-z]{2},/i)==0){return}results=eval("("+results+")");var cityCount=results.length;var locations='<div class="caption"><div class="floatleft">'+cityCount+' Städte gefunden</div> <div class="floatright"><a href="javascript: hideSearchresults(\''+fieldname+"');\"> "+ol_close+'</a></div><div class="clearfloat"></div></div><div style="padding: 2px; overflow: auto; height: 100px;">';for(var i=0;i<results.length;i++){locations+='<div style="padding: 1px;" class="'+((i%2==0)?"shadow":"")+'"><a href="javascript: setLocation('+results[i]["location_id"]+", '"+me.fieldname+"', "+showInMap+');">'+results[i]["name"]+"</a></div>"}if(results.length==0){locations+='<div class="bold">Es wurden keine Städte gefunden. Versuch es mit einer Stadt in der Nähe</div>'}locations+="</div>";document.getElementById(searchResultDivId).innerHTML=locations;document.getElementById(searchResultDivId).style.border="1px solid #336699";document.getElementById(searchResultDivId).style.height="";document.getElementById(searchResultDivId).style.display="block"}}function getLocation(h,a){var c="ajaxGetLocation="+h;return ajaxJSONCall(c,a)}function closeSearchfield(a){if(document.getElementById(a+"_searchresult")!=undefined){document.getElementById(a+"_searchresult").style.display="none";if(document.getElementById(a+"_select").value==""){document.getElementById(a).value=""}}}function setLocation(p,a,q){if(document.getElementById(a+"_searchresult")==undefined){createSearchResultDiv(a)}document.getElementById(a+"_searchresult").style.display="none";document.getElementById(a+"_select").value=p;var m=getLocation(p);var j=false;if(m.lat==null||!(m.lat>0)||m.lng==null||!(m.lng>0)){updateLocationLatLng(p);m=getLocation(p,true);j=true}document.getElementById(a).value=m.name;if(document.getElementById(a+"_radius")!=undefined){document.getElementById(a+"_radius").style.display="block"}if(document.getElementById(a+"_detail")!=undefined){document.getElementById(a+"_detail").readOnly=false}if(q!=undefined){if(document.getElementById(a).form.elements.locationFromId.value>0&&document.getElementById(a).form.elements.locationToId.value>0){initializeMap();stopOverLocations=new Array();if(stopOverLocations.length==0){stopOverLocations.push(document.getElementById(a).form.elements.locationFromId.value);stopOverLocations.push(document.getElementById(a).form.elements.locationToId.value)}var c=getLocation(document.getElementById(a).form.elements.locationFromId.value,j);var l=getLocation(document.getElementById(a).form.elements.locationToId.value,j);var n=new GLatLng(parseFloat(c.lat),parseFloat(c.lng));var o=new GLatLng(parseFloat(l.lat),parseFloat(l.lng));directions=new GDirections(map);GEvent.addListener(directions,"load",function(){onGDirectionsLoad()});var k=[n,o];directions.loadFromWaypoints(k)}}if(a.search(/from/)!=-1){var h=a.replace(/from/,"to");if(document.getElementById(h)!=undefined){if(document.getElementById(a+"_detail")!=undefined){document.getElementById(a+"_detail").focus()}else{document.getElementById(h).focus()}}}if(a.search(/_to/)!=-1){if(document.getElementById(a+"_detail")!=undefined){document.getElementById(a+"_detail").focus()}}}function removeStopover(h){stopOverLocations.remove(h);var j=new Array();for(var c=0;c<stopOverLocations.length;c++){var a=getLocation(stopOverLocations[c]);j.push(new GLatLng(a.lat,a.lng))}directions.loadFromWaypoints(j)}function addStopoverLocations(c){if(c!=""){var h=c.split(",");for(var a=0;a<h.length;a++){addStopover(h[a])}}}function addStopover(c,h){$("#"+h).val("");var j=stopOverLocations.slice(1,-1);j.push(c);var a=ajaxUrl+"ajaxGetOrderedStopoverLocations="+stopOverLocations[0]+"&locations="+j.join(",");$.getJSON(a,function(m){var k=new Array();var o=new Array();var n=new Array();k.push(stopOverLocations[0]);o.push(directions.getRoute(0).getStep(0).getLatLng());for(var l=0;l<m.length;l++){k.push(m[l]["location_id"]);o.push(new GLatLng(m[l]["lat"],m[l]["lng"]))}k.push(stopOverLocations[stopOverLocations.length-1]);o.push(directions.getRoute(directions.getNumRoutes()-1).getEndLatLng());stopOverLocations=k;directions.loadFromWaypoints(o)})}function computeStartTime(a,p,o){if(p.value!=""&&o>0&&a.value==""){var c=Math.floor(o/60);var m=p.value.split(":");if(m.length==1){m[1]="00";p.value=m[0]+":"+m[1]}var j=parseInt(m[0]);var k=parseInt(m[1]);var s=j*60+k;var n=s-c;if(n<0){n=1440+n}var l=Math.floor(n/10)*10;var q=Math.floor(l/60);var h=l-(q*60);a.value=q+":"+(h+"0").substr(0,2);a.className="changed"}}function onGDirectionsLoad(){var a=directions.getDistance();var k=directions.getDuration();var s=directions.getPolyline();$("#showdistance").html(a.html);document.getElementById("distance").value=a.meters;$("#showduration").html(k.html);document.getElementById("duration").value=k.seconds;computeStartTime(document.getElementById("starttime"),document.getElementById("destinationtime"),k.seconds);var c=20;var l=Math.ceil((s.getVertexCount()-1)/c);var h=s.getVertexCount()-1;var w=Math.ceil(h/l)-1;var n=new Array();var u=Math.ceil(a.meters/1000/c);var p=l;for(v=0;v<w;v++){if(v>0){p=0}var q=Math.min(v*l+(l/2)+p,h-l);var j=s.getVertex(q);n.push(j.y+","+j.x)}var o=n.join("|");var m=stopOverLocations[0];var t=stopOverLocations[stopOverLocations.length-1];setTimeout(function(){getStopoverLocations(m,t,o,u)},2000)}function initializeMap(){var c=document.getElementById("map");c.style.display="block";var a=document.getElementById("norouteinfo");if(a!=undefined){a.style.display="none"}map=new GMap2(c);map.setCenter(new GLatLng(45.120053,6.943359),5);map.addControl(new GLargeMapControl());map.addControl(new GScaleControl());map.addControl(new GMapTypeControl());directions=new GDirections(map);GEvent.addListener(directions,"addoverlay",function(){MROnGDirectionsLoad()})}function initializeVisualSearchMap(){var a=document.getElementById("visualSearchMap");a.style.display="block";mapVS=new GMap2(a);mapVS.setCenter(new GLatLng(51.651786,10.115039),5);mapVS.addControl(new GLargeMapControl());mapVS.addControl(new GScaleControl());mapVS.addControl(new GMapTypeControl())}function initializeMapById(c){var a=document.getElementById(c);if(a!=null){a.style.display="block";maps[c]=new GMap2(a);maps[c].setCenter(new GLatLng(51.651786,10.115039),6);maps[c].addControl(new GSmallMapControl());maps[c].addControl(new GScaleControl());maps[c].addControl(new GMapTypeControl())}}function getStopoverLocations(j,l,k,a){var c=ajaxUrl+"ajaxGetStopoverLocations="+k+"&startLocationId="+j+"&destinationLocationId="+l+"&ambit="+a;document.getElementById("stopoverLocationIds").value="";var m="";var h=false;$.getJSON(c,function(n){for(var o=0;o<n.length;o++){h=false;if(stopOverLocations.exists(n[o]["location_id"])){h=true;document.getElementById("stopoverLocationIds").value+=((document.getElementById("stopoverLocationIds").value=="")?"":",")+n[o]["location_id"]}if(h){m+='<div class="smaller stopover stopoverselected"><a href="javascript: removeStopover('+n[o]["location_id"]+');">'+n[o]["name"]+"</a></div>"}else{m+='<div class="smaller stopover"><a href="javascript: addStopover('+n[o]["location_id"]+');">'+n[o]["name"]+"</a></div>"}}$("#stopovers").html(m)});$("#additionalstopoverdiv").show()}function updateLocationLatLng(j){var h=getLocation(j);var c=h.country+" "+h.location;var a=new GClientGeocoder();a.getLatLng(c,function(k){if(k==null){alert("Fehler")}else{var l="ajaxUpdateLocationLatLng="+j+"&lat="+k.y+"&lng="+k.x;var m=ajaxJSONCall(l,true);if(isError(m)){alert(getTranslation(m.errorCode,m.errorClass))}}})}function geocodeAddress(k,h){var n=k.countryid.options[k.countryid.selectedIndex].text;var j=k.zip.value;var m=k.city.value;var c=k.street.value+" "+k.streetnumber.value;var l=n+" "+j+" "+m+" "+c;var a=new GClientGeocoder();a.getLatLng(l,function(o){if(o!=null){if(document.getElementById(h)!=undefined){document.getElementById(h).value="("+o.y+","+o.x+")"}}})}function geocodeLocation(h){var c=getLocation(h);var j=c.country+", "+((c.zip==null)?"":c.zip+" ")+c.location;var a=new GClientGeocoder();a.getLatLng(j,function(k){if(k!=null){var l="ajaxUpdateLocationLatLng="+h+"&lat="+k.y+"&lng="+k.x;var m=ajaxJSONCall(l,true);if(isError(m)){document.getElementById("coordinates_"+h).innerHTML="Fehler: "+m.message}else{document.getElementById("coordinates_"+h).innerHTML="("+k.y+","+k.x+")"}}else{document.getElementById("coordinates_"+h).innerHTML="Fehler: "+k}});return false}function getSeatsForCar(h,j){if(h.value>0&&h.form.elements[j]!=undefined){var a="ajaxGetSeatsForCar="+h.value;var c=ajaxJSONCall(a);h.form.elements[j].value=c.seats}}function showPersonFields(a){if(a.checked){$("#person").show()}else{$("#person").hide()}}function showObjectFields(a){if(a.checked){$("#object").show()}else{$("#object").hide()}}function postFeedback(c){if(c.feedback.value!=""){var a=!HTML_AJAX.formSubmit(c,"feedbackreturn1");$("#feedbackreturn").html("Vielen Dank für Dein Feedback");$("#feedbackreturn").show(200);setTimeout("$('#feedbackreturn').hide(200);",2500);c.feedback.value=""}return false}function setStopovers(h){var j=stopOverLocations.slice(1,-1);var c=h.split(",");for(var a=0;a<c.length;a++){addStopover(c[a])}}function showNewCarFields(a){if(a.options[a.selectedIndex].value==""){$("#trnewcar").show();if(a.form.elements.car_consumption.value==""){a.form.elements.car_consumption.value="8,0"}if(a.form.elements.car_seats.value==""){a.form.elements.car_seats.value=3}a.form.elements.car_licencenumber.focus()}else{$("#trnewcar").hide()}}function getPriceProposal(l,k,n){if(l.elements[k].value==""||n==true){var m=document.getElementById("distance").value;var c=l.carid.value;if(c>0){var h="ajaxGetPriceProposal="+c+"&distance="+m}else{var a=l.elements.car_consumption.value;var h="ajaxGetPriceProposal=-1&distance="+m+"&cc="+a}var j=ajaxJSONCall(h,true);if(isError(j)){alert(j.message)}else{l.elements[k].value=j;$("input[name='askingprice_01']").attr("checked",false)}}}function configureTripForm(c){var a=$("#"+c.id+" input[name='type']:checked").val();if(a=="offer"){$("#trstopovers").show();$("#trcarid").show();showNewCarFields(c.elements.carid);MRCheckRailway(c.elements.railway_01);document.getElementById("td-distance").className="subsection";if(c.frequency[1].checked==true){$("#trfrequency").show()}else{$("#trfrequency").hide()}}else{MRCheckRailway(c.elements.railway_01);$("#trcarid").hide();$("#trnewcar").hide();$("#trstopovers").hide();document.getElementById("td-distance").className="";if(a=="request"){if(c.frequency[1].checked==true){$("#trfrequency").show()}else{$("#trfrequency").hide()}}}}function showHelp(h){var l=h.id;var j="ajaxGetHelpRecord="+l;var c=ajaxJSONCall(j);if(isError(c)){alert(c.message)}else{var a=c.help;var k=c.field;overlib(a,CAPTION,k,WIDTH,200,CELLPAD,5,HAUTO,VAUTO,STICKY)}}function getEventsForLocation(h,j,l){var a="block";if(document.all==undefined){a="table-row"}var o=$("#"+h).val();if(o>0&&j.value!=""){$("#"+h+"_events").hide();var p="ajaxGetEventsForLocation="+o+"&date="+j.value;var n=ajaxJSONCall(p);if(isError(n)){alert(n.message)}else{var c=j.form.elements[h+"_eventid"];if(l==undefined&&c.selectedIndex>=0){l=c.options[c.selectedIndex].value}c.length=0;if(n.length>0){c.options[0]=new Option(getTranslation("no_event","trip"),"",false,false);for(var m=0;m<n.length;m++){var k=false;if(l!=undefined&&l==n[m].event_id){k=true}c.options[m+1]=new Option(n[m].name,n[m].event_id,k,k)}document.getElementById(h+"_events").style.display=a}}}}function showPassengers(j){var h="ajaxGetBookings="+j;var c=ajaxJSONCall(h);if(isError(c)){alert(c.message)}else{if(c.length>0){var a='<table class="list"><tr><th colspan=3 class="nobr">Vor- & Nachname</th><th>Telefon</th><th>Handy</th><th>E-Mail</th><th>Plätze</th></tr>';for(b=0;b<c.length;b++){a+="<tr>";a+=" <td><img src='"+rootUrl+"/icons/confirmed_"+c[b]["confirmed_01"]+".png' alt='status'/></td><td><a href=\"skype:"+c[b]["skype"]+'"><img src="'+rootUrl+'/icons/skypeme.png" alt="Skype"/></a></td><td class="nobr">'+c[b]["firstname"]+" "+c[b]["lastname"]+"</td><td>"+((c[b]["phone"]==null)?"-":'<a href="callto:'+c[b]["phone_international"]+'">'+c[b]["phone_international"]+"</a>")+'</td><td><a href="callto:'+c[b]["mobile_international"]+'">'+c[b]["mobile_international"]+'</a></td><td><a href="mailto:'+c[b]["email"]+'">'+c[b]["email"]+'</a></td><td class="center">'+c[b]["seats"]+"</td>";a+="</tr>"}a+="</table>"}else{a="Für dieses Inserat wurden noch keine Reservierungen eingetragen"}overlib(a,CAPTION,"Reservierungen",STICKY,WIDTH,450,HAUTO,VAUTO)}}function date2Array(a){if(a==null){return null}var c=a.split("-");return new Array(c[0],c[1],c[2])}function showUpcomingEvents(j){var m=8;if(j==1){var h="ajaxGetUpcomingEvents="+m+"&withTripsOnly=0"}else{var h="ajaxGetUpcomingEvents="+m+"&withTripsOnly=1"}var c=ajaxJSONCall(h);if(isError(c)){alert(c.message)}else{if(j==1){var l=rootUrl+"scripts/trip/add.php"}else{var l=rootUrl+"scripts/trip/trips2event.php"}var a='<table class="list"><tr><th>Datum</th><th>Art</th><th>Event</th><th>Ort</th><th><img src=\''+rootUrl+"icons/toevent.png' alt='Mitfahrgelegenheiten zum Event'/></th><th class=\"lastcolumn\"><img src='"+rootUrl+"icons/fromevent.png' alt='Mitfahrgelegenheiten nach Hause'/></th></tr>";for(e=0;e<c.length;e++){c[e]["trips_to_event"]=(c[e]["trips_to_event"]==null)?0:c[e]["trips_to_event"];c[e]["trips_from_event"]=(c[e]["trips_from_event"]==null)?0:c[e]["trips_from_event"];a+="<tr>";var k=date2Array(c[e]["date_start"]);a+=" <td>"+(new Date(k[0],k[1]-1,k[2])).format("dd.mm.yy")+"</td><td class=center>"+c[e]["eventcategory"]+"</td><td class='nobr'><a href=\""+l+"?eid="+c[e]["event_id"]+'">'+c[e]["name"]+'</a></td><td class="nobr">'+c[e]["location"]+'</td><td class="center">'+c[e]["trips_to_event"]+'</td><td class="center lastcolumn">'+c[e]["trips_from_event"]+"</td>";a+="</tr>"}a+="</table>";overlib(a,CAPTION,"Nächste Events",STICKY,HAUTO,VAUTO,WIDTH,450)}}function computeCosts(a,c){var h=ajaxUrl+"ajaxGetFuelData=1";$.getJSON(h,function(s){var u=8;var t=s.pricePerLiter;var k=new Date(s.lastUpdate*1000);var q=a.value;var j=3;if(!isNaN(a.value)){if(a.value>=0&&a.value<=42000){if(over){cClick()}var l="<table class=\"list\"><tr><th class=center>Mitfahrer</th><th class='center nobr'>Kosten (in &euro;)<br/>pro Person</th><th class=center>Ersparnis</th></tr>";for(var n=0;n<=j;n++){var o=(q*(u/100)*t)/(n+1);if(n==0){maxPrice=o}if(n==j){minPrice=o}var m=(maxPrice-o)/maxPrice*100;l+="<tr class="+((n%2==0)?"shadow":"")+"><td class=center>"+n+"</td><td class=center>"+(new Number(o)).numberFormat("#,#.00")+"</td><td class='red bold center'>- "+(new Number(m)).numberFormat("#,#.0")+" %</td></tr>"}l+="</table>";if(c!=undefined){overlib(l,CAPTION,"Fahrtkosten für "+q+" Km",STICKY,VAUTO)}$("#costcalculatorMinPrice").html((new Number(minPrice)).numberFormat("#,#.00"));$("#costcalculatorMaxPrice").html((new Number(maxPrice)).numberFormat("#,#.00"));$("#costcalculatorPricePerLiter").html((new Number(t)).numberFormat("#,#.00"));$("#costcalculatorLastUpdate").html((k.format("dd.mm.yy, HH:MM")))}}})}function getUserInfo(h){var j="ajaxGetUserInfo="+h;var c=ajaxJSONCall(j);if(isError(c)){alert(c.message)}else{var a='<table class="list">';a+='<tr class=shadow><td class=label>Name</td><td class="lastcolumn nobr">'+c.firstname+" "+c.lastname+"</td></tr>";a+='<tr><td class=label>E-Mail</td><td class="lastcolumn nobr"><a href="mailto:'+c.email+'">'+c.email+"</a></td></tr>";if(c.phone!=""&&c.phone!=null){a+='<tr class=shadow><td class=label>Telefon</td><td class="lastcolumn nobr"><a href="callto:'+c.phone_international+'">'+c.phone_international+"</a></td></tr>"}if(c.mobile!=""&&c.mobile!=null){a+='<tr><td class=label>Handy</td><td class="lastcolumn nobr"><a href="callto:'+c.mobile_international+'">'+c.mobile_international+"</a></td></tr>"}a+="</table>";overlib(a,CAPTION,"Benutzer [ "+c.loginname+" ]",STICKY,HAUTO,VAUTO)}}function showCounternotice(a){var c=document.getElementById("counternotice_"+a);var h=document.getElementById("writecounternotice_"+a);c.style.display="inline";h.style.display="none"}function updateFreeSeats(a){a.form.elements.freeseats.value=a.value}function createMarker(c,k,j){var a='<div class="gpopup">'+j+"</div>";var h=new PdMarker(c,{icon:k});GEvent.addListener(h,"click",function(){h.openInfoWindowHtml(a)});return h}function showVisualSearch(){$("#visualSearch").toggle();if($("#visualSearch:visible")){initializeVisualSearchMap();showStartStopPoints();vsStartStop=new Array()}}function hideVisualSearch(){document.getElementById("visualSearch").style.display="none"}function showStartStopPoints(){var u="ajaxGetVSData=1";var p=ajaxJSONCall(u);var j=p.maxCount;var t=25;var a=15;var o="Neue visuelle Suche";var q=p.locations;for(var l=0;l<q.length;l++){var s=new GPoint(q[l]["lng"],q[l]["lat"]);var n=Math.max(a,Math.ceil(q[l]["locationcount"]/j*t));var m="";var c={};c.width=n;c.height=n;c.label=q[l]["locationcount"];c.labelSize=0;if(q[l]["startonly"]=="t"){c.primaryColor="#B3FF07";c.labelColor="#000000";c.shape="circle";m='<h2 class="black">'+q[l]["name"]+"</h2>";m+='<div class="vsstartlocation">&raquo; <a href="javascript: setStartLocation('+q[l]["location_id"]+", '"+q[l]["name"]+'\');">Hier will ich starten (<span class="green">von A</span>)</a></div>';m+='<br/>&raquo; <a href="javascript: vsShowAllMarkers();">'+o+"</a>"}else{if(q[l]["stoponly"]=="t"){c.primaryColor="#0DC1E4";c.labelColor="#000000";c.shape="circle";m='<h2 class="black">'+q[l]["name"]+"</h2>";m+='<div class="vsstoplocation">&raquo; <a href="javascript: setStopLocation('+q[l]["location_id"]+", '"+q[l]["name"]+'\');">Hier will ich hin (<span class="blue">nach B</span>)</a></div>';m+='<br/>&raquo; <a href="javascript: vsShowAllMarkers();">'+o+"</a>"}else{c.primaryColor="#FF0000";c.labelColor="#ffffff";c.shape="roundrect";m='<h2 class="black">'+q[l]["name"]+"</h2>";m+='<div class="vsstartlocation">&raquo; <a href="javascript: setStartLocation('+q[l]["location_id"]+", '"+q[l]["name"]+'\');">Hier will ich starten (<span class="green">von A</span>)</a></div>';m+='<div class="vsstoplocation">&raquo; <a href="javascript: setStopLocation('+q[l]["location_id"]+", '"+q[l]["name"]+'\');">Hier will ich hin (<span class="blue">nach B</span>)</a></div>';m+='<br/>&raquo; <a href="javascript: vsShowAllMarkers();">'+o+"</a>"}}var h=MapIconMaker.createFlatIcon(c);var k=createMarker(s,h,m);GEvent.addListener(k,"click",function(w){if(vsStartStop[0]>0){$("div.vsstartlocation").hide()}else{$("div.vsstartlocation").show()}if(vsStartStop[1]>0){$("div.vsstoplocation").hide()}else{$("div.vsstoplocation").show()}});mapVS.addOverlay(k);vsLocations.push(k)}}function vsShowAllMarkers(){for(var a=0;a<vsLocations.length;a++){vsLocations[a].show()}mapVS.closeInfoWindow();vsStartStop=new Array()}function setStartLocation(n,j){$("#search_location_from_search").val(j);$("#search_location_from").val(n);mapVS.closeInfoWindow();var o="ajaxGetVisualSearchStopLocations="+n;var m=ajaxJSONCall(o);var c=getLocation(n);for(var a=0;a<vsLocations.length;a++){var h=vsLocations[a].getLatLng();markerFound=false;if(c.lat==h.lat()&&c.lng==h.lng()){markerFound=true}else{for(var k=0;k<m.length;k++){if(h.lat()==m[k]["lat"]&&h.lng()==m[k]["lng"]){markerFound=true}}}if(!markerFound){vsLocations[a].hide()}else{vsLocations[a].show()}}vsStartStop[0]=n;if(vsStartStop[0]>0&&vsStartStop[1]>0&&(vsStartStop[0]!=vsStartStop[1])){hideVisualSearch()}}function setStopLocation(n,j){$("#search_location_to_search").val(j);$("#search_location_to").val(n);mapVS.closeInfoWindow();var o="ajaxGetVisualSearchStartLocations="+n;var m=ajaxJSONCall(o);var c=getLocation(n);for(var a=0;a<vsLocations.length;a++){var h=vsLocations[a].getLatLng();markerFound=false;if(c.lat==h.lat()&&c.lng==h.lng()){markerFound=true}else{for(var k=0;k<m.length;k++){if(h.lat()==m[k]["lat"]&&h.lng()==m[k]["lng"]){markerFound=true}}}if(!markerFound){vsLocations[a].hide()}else{vsLocations[a].show()}}vsStartStop[1]=n;if(vsStartStop[0]>0&&vsStartStop[1]>0&&(vsStartStop[0]!=vsStartStop[1])){hideVisualSearch()}}function getLatLngFromCoordinates(c){var a=c.substring(1,c.length-1);return a.split(",")}function checkWeekdays(c,a){if(a=="daily"){for(var h=0;h<=6;h++){c.elements["daysofweek["+h+"]"].checked=true}}else{if(a=="workdays"){for(var h=1;h<=5;h++){c.elements["daysofweek["+h+"]"].checked=true}c.elements["daysofweek[6]"].checked=false;c.elements["daysofweek[0]"].checked=false}else{if(a=="weekend"){for(var h=1;h<=5;h++){c.elements["daysofweek["+h+"]"].checked=false}c.elements["daysofweek[6]"].checked=true;c.elements["daysofweek[0]"].checked=true}}}}function toggleElement(c,a){if($("#"+c).is(":visible")){$("#"+c).hide()}else{$("#"+c).fadeIn(300);if(a!=undefined){$("#"+a).focus()}}}function setFeedbackDone(h){var c="ajaxSetFeedbackDone="+h;var a=ajaxJSONCall(c);if(isError(a)){alert(a.message)}else{alert(a.message)}}function updateCountryPrefix(a){var j=a.value;var h="ajaxGetCountryRecord="+j;var c=ajaxJSONCall(h);if(!isError(c)){if(a.form.elements.mobile_country_prefix!=undefined){a.form.elements.mobile_country_prefix.value=c.phone_prefix;if(a.form.elements.mobile_prefix!=undefined){a.form.elements.mobile_prefix.focus()}}if(a.form.elements.phone_country_prefix!=undefined){a.form.elements.phone_country_prefix.value=c.phone_prefix}}}function hide(a){$("#"+a).hide(200)}function createDynSearchDiv(c){var a=c.name+"_dynsearchdiv";if(document.getElementById(a)==null){$("#"+c.id).after('<div id="'+a+'" class="searchResultDiv"><div class="caption"><div id="captiontext" class="floatleft"></div><div class="floatright"><a href="javascript: hide(\''+a+"');\">"+ol_close+'</a></div><div class="clearfloat"/></div><div id="dynsearchcontent" style="padding: 2px; overflow: auto; height: 100px;"></div></div>');document.getElementById(a).style.border="1px solid #336699"}return a}function autoFill(j,h,c){if(j.value.length>=2){var a=createDynSearchDiv(j);$("#"+a+" #captiontext").html("Vorschläge");$(j).addClass("loading");var k=ajaxUrl+"ajaxAutoFill="+j.value+"&table="+h+"&column="+c+"&limit=20";$.getJSON(k,function(n){var m="";for(var l=0;l<n.length;l++){m+="<a href=\"javascript: autoFillSetValue('"+j.name+"', '"+n[l]["autofill"]+"');\">"+n[l]["autofill"]+"</a><br/>"}if(m!=""){$("#"+a+" #dynsearchcontent").html(m);$("#"+a).show()}else{$("#"+a).hide()}$(j).removeClass("loading")})}else{$(j).removeClass("loading")}}function autoFillSetValue(a,c){$("input[name='"+a+"']").val(c);hide(a+"_dynsearchdiv")}function checkTimeInput(k){if(k.value==""){return}var j=/([0-9]{1,2})(:?)([0-9]{1,2})?/;var h=j.exec(k.value);if(h==null){k.value="hh:mm";return}var a="00";var c="00";if(k.value.length==3&&(h[2]==""||h[2]==undefined)){a=k.value.substr(0,1);c=k.value.substr(1,2)}else{a=h[1];c=h[3]}if(a==undefined||a==""){a="00"}if(c==undefined||c==""){c="00"}if(a<0||a>23||c<0||c>59){k.value="hh:mm"}else{if(a.length==1){a="0"+a}if(c.length==1){c="0"+c}k.value=a+":"+c}}function disallowDateBefore(a){var c=3600*24*1000;a=a.getTime();if(a<=((new Date()).getTime()-c)){return true}return false}function fillAdditionalStopovers(a,c){var h="";for(i=0;i<a.length;i++){h+='<div class="'+((i%2==0)?"shadow":"")+'"><a href="javascript: addStopover('+a[i]["location_id"]+", '"+c+"');\">"+a[i]["name"]+"</a></div>"}return h}function stripHTML(a){var h="";var j=false;for(var c=0;c<a.length;c++){if(a.charAt(c)=="<"){j=true}if(a.charAt(c)==">"){if(a.charAt(c+1)=="<"){}else{j=false;c++}}if(!j){h+=a.charAt(c)}}return h}function selectAllCheckboxesInForm(a){$("#"+a+" input[type='checkbox']").each(function(){$(this).attr("checked",!$(this).attr("checked"))})}function inviteFriend(c,a){if(c.message.value!=""){var h={btn_invite:"invite",message:c.message.value,friendid:c.friendid.value};$.post(c.action,h,function(j){if(isError(j)){alert(j.message)}else{$("#"+a).html("<p class='bold'>"+j.message+"</p>");if($("#centeredPopup").is(":visible")){setTimeout("closePopup();",2000)}}},"json")}return false}function showShortInfoMessage(c,a){if(a==undefined){a="infos"}$("#shortInfoMessage").html("<div class='"+a+"'>"+c+"</div>");$("#shortInfoMessage").show(500);setTimeout("hideShortInfoMessage()",5000)}function hideShortInfoMessage(){$("#shortInfoMessage").hide(500).html("")}function assignToEvent(a,c){if(a>0){var h=ajaxUrl+"ajaxAssignToEvent="+a;$.getJSON(h,function(j){if(isError(j)){showShortInfoMessage(j.message,"errors")}else{$(c).removeClass("event_unassigned");$(c).addClass("event_assigned");if($(c).html()!="&nbsp;"){$(c).html("Nein, ich gehe doch nicht hin")}$(c).attr("onclick","");$(c).unbind("click");$(c).click(function(){unassignFromEvent(a,c)});$(c).blur();showShortInfoMessage(j.message)}})}}function unassignFromEvent(a,c){if(a>0){var h=ajaxUrl+"ajaxUnassignFromEvent="+a;$.getJSON(h,function(j){if(isError(j)){showShortInfoMessage(j.message,"errors")}else{$(c).removeClass("event_assigned");$(c).addClass("event_unassigned");if($(c).html()!="&nbsp;"){$(c).html("Da geh' ich hin")}$(c).attr("onclick","");$(c).unbind("click");$(c).click(function(){assignToEvent(a,c)});$(c).blur();showShortInfoMessage(j.message)}})}}function inviteFriendForm(c){var a=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var h=ajaxUrl+"ajaxGetInvitePopup="+c;$.getJSON(h,function(j){$("#centeredPopup").show().html(j);$("#centeredPopup").css("top",Math.round((document.documentElement.clientHeight/2)-($("#centeredPopup").height()/2)+a)+"px");$("#centeredPopup").css("left",Math.round((document.documentElement.clientWidth/2)-($("#centeredPopup").width()/2))+"px")})}function closePopup(){$("#centeredPopup").hide().html("")}function currentTime(){var c=new Array();c.de=new Object();c.de[0]="Sonntag";c.de[1]="Montag";c.de[2]="Dienstag";c.de[3]="Mittwoch";c.de[4]="Donnerstag";c.de[5]="Freitag";c.de[6]="Samstag";c.en=new Object();c.en[0]="Sunday";c.en[1]="Monday";c.en[2]="Tuesday";c.en[3]="Wednesday";c.en[4]="Thursday";c.en[5]="Friday";c.en[6]="Saturday";var p=new Array();p.de="Uhr";p.en="";var q=new Date();var k=q.getHours();var l=q.getMinutes();var a=q.getSeconds();var o=q.getDate();var j=q.getMonth()+1;var h=q.getFullYear();var m=c[currentLanguage][q.getDay()];if(o<10){o="0"+o}if(j<10){j="0"+j}if(k<10){k="0"+k}if(l<10){l="0"+l}if(a<10){a="0"+a}var n=document.getElementById("currentTime");n.innerHTML=m+", "+o+"."+j+"."+h+" &nbsp;|&nbsp;  "+k+":"+l+":"+a+" "+p[currentLanguage];setTimeout("currentTime()",1000)}var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,j=/[^-+\dA-Z]/g,h=function(l,k){l=String(l);k=k||2;while(l.length<k){l="0"+l}return l};return function(q,F,A){var n=dateFormat;if(arguments.length==1&&Object.prototype.toString.call(q)=="[object String]"&&!/\d/.test(q)){F=q;q=undefined}q=q?new Date(q):new Date;if(isNaN(q)){throw SyntaxError("invalid date")}F=String(n.masks[F]||F||n.masks["default"]);if(F.slice(0,4)=="UTC:"){F=F.slice(4);A=true}var C=A?"getUTC":"get",w=q[C+"Date"](),k=q[C+"Day"](),t=q[C+"Month"](),z=q[C+"FullYear"](),B=q[C+"Hours"](),u=q[C+"Minutes"](),E=q[C+"Seconds"](),x=q[C+"Milliseconds"](),l=A?0:q.getTimezoneOffset(),p={d:w,dd:h(w),ddd:n.i18n.dayNames[k],dddd:n.i18n.dayNames[k+7],m:t+1,mm:h(t+1),mmm:n.i18n.monthNames[t],mmmm:n.i18n.monthNames[t+12],yy:String(z).slice(2),yyyy:z,h:B%12||12,hh:h(B%12||12),H:B,HH:h(B),M:u,MM:h(u),s:E,ss:h(E),l:h(x,3),L:h(x>99?Math.round(x/10):x),t:B<12?"a":"p",tt:B<12?"am":"pm",T:B<12?"A":"P",TT:B<12?"AM":"PM",Z:A?"UTC":(String(q).match(c)||[""]).pop().replace(j,""),o:(l>0?"-":"+")+h(Math.floor(Math.abs(l)/60)*100+Math.abs(l)%60,4),S:["th","st","nd","rd"][w%10>3?0:(w%100-w%10!=10)*w%10]};return F.replace(a,function(m){return m in p?p[m]:m.slice(1,m.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,c){return dateFormat(this,a,c)};var olLoaded=0;var pmStart=10000000;var pmUpper=10001000;var pmCount=pmStart+1;var pmt="";var pms=new Array();var olInfo=new Info("4.21",1);var FREPLACE=0;var FBEFORE=1;var FAFTER=2;var FALTERNATE=3;var FCHAIN=4;var olHideForm=0;var olHautoFlag=0;var olVautoFlag=0;var hookPts=new Array(),postParse=new Array(),cmdLine=new Array(),runTime=new Array();registerCommands("donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass");if(typeof ol_fgcolor=="undefined"){var ol_fgcolor="#CCCCFF"}if(typeof ol_bgcolor=="undefined"){var ol_bgcolor="#333399"}if(typeof ol_textcolor=="undefined"){var ol_textcolor="#000000"}if(typeof ol_capcolor=="undefined"){var ol_capcolor="#FFFFFF"}if(typeof ol_closecolor=="undefined"){var ol_closecolor="#9999FF"}if(typeof ol_textfont=="undefined"){var ol_textfont="Arial,Verdana,Helvetica"}if(typeof ol_captionfont=="undefined"){var ol_captionfont="Verdana,Arial,Helvetica"}if(typeof ol_closefont=="undefined"){var ol_closefont="Verdana,Arial,Helvetica"}if(typeof ol_textsize=="undefined"){var ol_textsize="1.5"}if(typeof ol_captionsize=="undefined"){var ol_captionsize="1"}if(typeof ol_closesize=="undefined"){var ol_closesize="1"}if(typeof ol_width=="undefined"){var ol_width="200"}if(typeof ol_border=="undefined"){var ol_border="1"}if(typeof ol_cellpad=="undefined"){var ol_cellpad=2}if(typeof ol_offsetx=="undefined"){var ol_offsetx=10}if(typeof ol_offsety=="undefined"){var ol_offsety=10}if(typeof ol_text=="undefined"){var ol_text="Default Text"}if(typeof ol_cap=="undefined"){var ol_cap=""}if(typeof ol_sticky=="undefined"){var ol_sticky=0}if(typeof ol_background=="undefined"){var ol_background=""}if(typeof ol_close=="undefined"){var ol_close="Close"}if(typeof ol_hpos=="undefined"){var ol_hpos=RIGHT}if(typeof ol_status=="undefined"){var ol_status=""}if(typeof ol_autostatus=="undefined"){var ol_autostatus=0}if(typeof ol_height=="undefined"){var ol_height=-1}if(typeof ol_snapx=="undefined"){var ol_snapx=0}if(typeof ol_snapy=="undefined"){var ol_snapy=0}if(typeof ol_fixx=="undefined"){var ol_fixx=-1}if(typeof ol_fixy=="undefined"){var ol_fixy=-1}if(typeof ol_relx=="undefined"){var ol_relx=null}if(typeof ol_rely=="undefined"){var ol_rely=null}if(typeof ol_fgbackground=="undefined"){var ol_fgbackground=""}if(typeof ol_bgbackground=="undefined"){var ol_bgbackground=""}if(typeof ol_padxl=="undefined"){var ol_padxl=1}if(typeof ol_padxr=="undefined"){var ol_padxr=1}if(typeof ol_padyt=="undefined"){var ol_padyt=1}if(typeof ol_padyb=="undefined"){var ol_padyb=1}if(typeof ol_fullhtml=="undefined"){var ol_fullhtml=0}if(typeof ol_vpos=="undefined"){var ol_vpos=BELOW}if(typeof ol_aboveheight=="undefined"){var ol_aboveheight=0}if(typeof ol_capicon=="undefined"){var ol_capicon=""}if(typeof ol_frame=="undefined"){var ol_frame=self}if(typeof ol_timeout=="undefined"){var ol_timeout=0}if(typeof ol_function=="undefined"){var ol_function=null}if(typeof ol_delay=="undefined"){var ol_delay=0}if(typeof ol_hauto=="undefined"){var ol_hauto=0}if(typeof ol_vauto=="undefined"){var ol_vauto=0}if(typeof ol_closeclick=="undefined"){var ol_closeclick=0}if(typeof ol_wrap=="undefined"){var ol_wrap=0}if(typeof ol_followmouse=="undefined"){var ol_followmouse=1}if(typeof ol_mouseoff=="undefined"){var ol_mouseoff=0}if(typeof ol_closetitle=="undefined"){var ol_closetitle="Close"}if(typeof ol_compatmode=="undefined"){var ol_compatmode=0}if(typeof ol_css=="undefined"){var ol_css=CSSOFF}if(typeof ol_fgclass=="undefined"){var ol_fgclass=""}if(typeof ol_bgclass=="undefined"){var ol_bgclass=""}if(typeof ol_textfontclass=="undefined"){var ol_textfontclass=""}if(typeof ol_captionfontclass=="undefined"){var ol_captionfontclass=""}if(typeof ol_closefontclass=="undefined"){var ol_closefontclass=""}if(typeof ol_texts=="undefined"){var ol_texts=new Array("Text 0","Text 1")}if(typeof ol_caps=="undefined"){var ol_caps=new Array("Caption 0","Caption 1")}var o3_text="";var o3_cap="";var o3_sticky=0;var o3_background="";var o3_close="Close";var o3_hpos=RIGHT;var o3_offsetx=2;var o3_offsety=2;var o3_fgcolor="";var o3_bgcolor="";var o3_textcolor="";var o3_capcolor="";var o3_closecolor="";var o3_width=100;var o3_border=1;var o3_cellpad=2;var o3_status="";var o3_autostatus=0;var o3_height=-1;var o3_snapx=0;var o3_snapy=0;var o3_fixx=-1;var o3_fixy=-1;var o3_relx=null;var o3_rely=null;var o3_fgbackground="";var o3_bgbackground="";var o3_padxl=0;var o3_padxr=0;var o3_padyt=0;var o3_padyb=0;var o3_fullhtml=0;var o3_vpos=BELOW;var o3_aboveheight=0;var o3_capicon="";var o3_textfont="Verdana,Arial,Helvetica";var o3_captionfont="Verdana,Arial,Helvetica";var o3_closefont="Verdana,Arial,Helvetica";var o3_textsize="1";var o3_captionsize="1";var o3_closesize="1";var o3_frame=self;var o3_timeout=0;var o3_timerid=0;var o3_allowmove=0;var o3_function=null;var o3_delay=0;var o3_delayid=0;var o3_hauto=0;var o3_vauto=0;var o3_closeclick=0;var o3_wrap=0;var o3_followmouse=1;var o3_mouseoff=0;var o3_closetitle="";var o3_compatmode=0;var o3_css=CSSOFF;var o3_fgclass="";var o3_bgclass="";var o3_textfontclass="";var o3_captionfontclass="";var o3_closefontclass="";var o3_x=0;var o3_y=0;var o3_showingsticky=0;var o3_removecounter=0;var over=null;var fnRef,hoveringSwitch=false;var olHideDelay;var isMac=(navigator.userAgent.indexOf("Mac")!=-1);var olOp=(navigator.userAgent.toLowerCase().indexOf("opera")>-1&&document.createTextNode);var olNs4=(navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==4);var olNs6=(document.getElementById)?true:false;var olKq=(olNs6&&/konqueror/i.test(navigator.userAgent));var olIe4=(document.all)?true:false;var olIe5=false;var olIe55=false;var docRoot="document.body";if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight){location.reload()}}}if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6){olNs6=false}}}if(olNs6){olIe4=false}}if(document.compatMode&&document.compatMode=="CSS1Compat"){docRoot=((olIe4&&!olOp)?"document.documentElement":docRoot)}if(window.addEventListener){window.addEventListener("load",OLonLoad_handler,false)}else{if(window.attachEvent){window.attachEvent("onload",OLonLoad_handler)}}var capExtent;function overlib(){if(!olLoaded||isExclusive(overlib.arguments)){return true}if(olCheckMouseCapture){olMouseCapture()}if(over){over=(typeof over.id!="string")?o3_frame.document.all.overDiv:over;cClick()}olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;o3_capicon=ol_capicon;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;o3_closefontclass=ol_closefontclass;setRunTimeVariables();fnRef="";o3_frame=ol_frame;if(!(over=createDivContainer())){return false}parseTokens("o3_",overlib.arguments);if(!postParseChecks()){return false}if(o3_delay==0){return runHook("olMain",FREPLACE)}else{o3_delayid=setTimeout("runHook('olMain', FREPLACE)",o3_delay);return false}}function nd(a){if(olLoaded&&!isExclusive()){hideDelay(a);if(o3_removecounter>=1){o3_showingsticky=0}if(o3_showingsticky==0){o3_allowmove=0;if(over!=null&&o3_timerid==0){runHook("hideObject",FREPLACE,over)}}else{o3_removecounter++}}return true}function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0}return false}function overlib_pagedefaults(){parseTokens("ol_",overlib_pagedefaults.arguments)}function olMain(){var c,a;runHook("olMain",FBEFORE);if(o3_background!=""||o3_fullhtml){c=runHook("ol_content_background",FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml)}else{a=(pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass");if(o3_fgbackground!=""){o3_fgbackground='background="'+o3_fgbackground+'"'}if(o3_bgbackground!=""){o3_bgbackground=(a?'background="'+o3_bgbackground+'"':o3_bgbackground)}if(o3_fgcolor!=""){o3_fgcolor=(a?'bgcolor="'+o3_fgcolor+'"':o3_fgcolor)}if(o3_bgcolor!=""){o3_bgcolor=(a?'bgcolor="'+o3_bgcolor+'"':o3_bgcolor)}if(o3_height>0){o3_height=(a?'height="'+o3_height+'"':o3_height)}else{o3_height=""}if(o3_cap==""){c=runHook("ol_content_simple",FALTERNATE,o3_css,o3_text)}else{if(o3_sticky){c=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,o3_close)}else{c=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,"")}}}if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}o3_showingsticky=1;o3_removecounter=0}if(!runHook("createPopup",FREPLACE,c)){return false}if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1){o3_status=o3_cap}}o3_allowmove=0;if(o3_timeout>0){if(o3_timerid>0){clearTimeout(o3_timerid)}o3_timerid=setTimeout("cClick()",o3_timeout)}runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER);return(olOp&&event&&event.type=="mouseover"&&!o3_status)?"":(o3_status!="")}function ol_content_simple(h){var c=/,/.test(o3_cellpad);var a='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_height)+'><tr><td><table width="100%" border="0" '+((olNs4||!c)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&c)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+h+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return a}function ol_content_caption(n,m,l){var k,c,j=/,/.test(o3_cellpad);var h,a;h="";a="onmouseover";if(o3_closeclick==1){a=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick"}if(o3_capicon!=""){k=' hspace = "5" align = "middle" alt = ""';if(typeof o3_dragimg!="undefined"&&o3_dragimg){k=' hspace="5" name="'+o3_dragimg+'" id="'+o3_dragimg+'" align="middle" alt="Drag Enabled" title="Drag Enabled"'}o3_capicon='<img src="'+o3_capicon+'"'+k+" />"}if(l!=""){h="<td "+(!o3_compatmode&&o3_closefontclass?'class="'+o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+((o3_compatmode&&o3_closefontclass)?' class="'+o3_closefontclass+'" ':" ")+a+'="return '+fnRef+'cClick();">'+(o3_closefontclass?"":wrapStr(0,o3_closesize,"close"))+l+(o3_closefontclass?"":wrapStr(1,o3_closesize,"close"))+"</a></td>"}c='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_bgbackground+" "+o3_height)+'><tr><td><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td'+(o3_captionfontclass?' class="'+o3_captionfontclass+'">':">")+(o3_captionfontclass?"":"<b>"+wrapStr(0,o3_captionsize,"caption"))+o3_capicon+m+(o3_captionfontclass?"":wrapStr(1,o3_captionsize)+"</b>")+"</td>"+h+'</tr></table><table width="100%" border="0" '+((olNs4||!j)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&j)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+n+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return c}function ol_content_background(h,c,a){if(a){txt=h}else{txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-o3_padxl-o3_padxr)+(o3_textfontclass?'" class="'+o3_textfontclass:"")+'">'+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+h+(o3_textfontclass?"":wrapStr(1,o3_textsize))+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>'}set_background(c);return txt}function set_background(a){if(a==""){if(olNs4){over.background.src=null}else{if(over.style){over.style.backgroundImage="none"}}}else{if(olNs4){over.background.src=a}else{if(over.style){over.style.width=o3_width+"px";over.style.backgroundImage="url("+a+")"}}}}var olShowId=-1;function disp(a){runHook("disp",FBEFORE);if(o3_allowmove==0){runHook("placeLayer",FREPLACE);(olNs6&&olShowId<0)?olShowId=setTimeout("runHook('showObject', FREPLACE, over)",1):runHook("showObject",FREPLACE,over);o3_allowmove=(o3_sticky||o3_followmouse==0)?0:1}runHook("disp",FAFTER);if(a!=""){self.status=a}}function createPopup(a){runHook("createPopup",FBEFORE);if(o3_wrap){var h,j,c=(olNs4?over:over.style);c.top=c.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);layerWrite(a);h=(olNs4?over.clip.width:over.offsetWidth);if(h>(j=windowWidth())){a=a.replace(/\&nbsp;/g," ");o3_width=j;o3_wrap=0}}layerWrite(a);if(o3_wrap){o3_width=(olNs4?over.clip.width:over.offsetWidth)}runHook("createPopup",FAFTER,a);return true}function placeLayer(){var placeX,placeY,widthFix=0;if(o3_frame.innerWidth){widthFix=18}iwidth=windowWidth();winoffset=(olIe4)?eval("o3_frame."+docRoot+".scrollLeft"):o3_frame.pageXOffset;placeX=runHook("horizontalPlacement",FCHAIN,iwidth,winoffset,widthFix);if(o3_frame.innerHeight){iheight=o3_frame.innerHeight}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval("o3_frame."+docRoot+".clientHeight")){iheight=eval("o3_frame."+docRoot+".clientHeight")}}scrolloffset=(olIe4)?eval("o3_frame."+docRoot+".scrollTop"):o3_frame.pageYOffset;placeY=runHook("verticalPlacement",FCHAIN,iheight,scrolloffset);repositionTo(over,placeX,placeY)}function olMouseMove(e){var e=(e)?e:event;if(e.pageX){o3_x=e.pageX;o3_y=e.pageY}else{if(e.clientX){o3_x=eval("e.clientX+o3_frame."+docRoot+".scrollLeft");o3_y=eval("e.clientY+o3_frame."+docRoot+".scrollTop")}}if(o3_allowmove==1){runHook("placeLayer",FREPLACE)}if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){(olHideDelay?hideDelay(olHideDelay):cClick());hoveringSwitch=!hoveringSwitch}}function no_overlib(){return ver3fix}function olMouseCapture(){capExtent=document;var fN,str="",l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/;wMv=(!olIe4&&window.onmousemove);if(document.onmousemove||wMv){if(wMv){capExtent=window}f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null){str=f+"(e); "}else{if(fN[1]=="anonymous"||fN[1]=="olMouseMove"||(wMv&&fN[1]=="onmousemove")){if(!olOp&&wMv){l=f.indexOf("{")+1;k=f.lastIndexOf("}");sS=f.substring(l,k);if((l=sS.indexOf("("))!=-1){sS=sS.substring(0,l).replace(/^\s+/,"").replace(/\s+$/,"");if(eval("typeof "+sS+" == 'undefined'")){window.onmousemove=null}else{str=sS+"(e);"}}}if(!str){olCheckMouseCapture=false;return}}else{if(fN[1]){str=fN[1]+"(e); "}else{l=f.indexOf("{")+1;k=f.lastIndexOf("}");str=f.substring(l,k)+"\n"}}}str+="olMouseMove(e); ";mseHandler=new Function("e",str)}capExtent.onmousemove=mseHandler;if(olNs4){capExtent.captureEvents(Event.MOUSEMOVE)}}function parseTokens(pf,ar){var v,i,mode=-1,par=(pf!="ol_");var fnMark=(par&&!ar.length?1:0);for(i=0;i<ar.length;i++){if(mode<0){if(typeof ar[i]=="number"&&ar[i]>pmStart&&ar[i]<pmUpper){fnMark=(par?1:0);i--}else{switch(pf){case"ol_":ol_text=ar[i].toString();break;default:o3_text=ar[i].toString()}}mode=0}else{if(ar[i]>=pmCount||ar[i]==DONOTHING){continue}if(ar[i]==INARRAY){fnMark=0;eval(pf+"text=ol_texts["+ar[++i]+"].toString()");continue}if(ar[i]==CAPARRAY){eval(pf+"cap=ol_caps["+ar[++i]+"].toString()");continue}if(ar[i]==STICKY){if(pf!="ol_"){eval(pf+"sticky=1")}continue}if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[++i]+'"');continue}if(ar[i]==NOCLOSE){if(pf!="ol_"){opt_NOCLOSE()}continue}if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+"hpos="+ar[i]);if(pf!="ol_"){olHautoFlag=1}continue}if(ar[i]==OFFSETX){eval(pf+"offsetx="+ar[++i]);continue}if(ar[i]==OFFSETY){eval(pf+"offsety="+ar[++i]);continue}if(ar[i]==FGCOLOR){eval(pf+'fgcolor="'+ar[++i]+'"');continue}if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[++i]+'"');continue}if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[++i]+'"');continue}if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[++i]+'"');continue}if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[++i]+'"');continue}if(ar[i]==WIDTH){eval(pf+"width="+ar[++i]);continue}if(ar[i]==BORDER){eval(pf+"border="+ar[++i]);continue}if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(++i,ar,(pf+"cellpad"));continue}if(ar[i]==STATUS){eval(pf+"status='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==AUTOSTATUS){eval(pf+"autostatus=("+pf+"autostatus == 1) ? 0 : 1");continue}if(ar[i]==AUTOSTATUSCAP){eval(pf+"autostatus=("+pf+"autostatus == 2) ? 0 : 2");continue}if(ar[i]==HEIGHT){eval(pf+"height="+pf+"aboveheight="+ar[++i]);continue}if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==SNAPX){eval(pf+"snapx="+ar[++i]);continue}if(ar[i]==SNAPY){eval(pf+"snapy="+ar[++i]);continue}if(ar[i]==FIXX){eval(pf+"fixx="+ar[++i]);continue}if(ar[i]==FIXY){eval(pf+"fixy="+ar[++i]);continue}if(ar[i]==RELX){eval(pf+"relx="+ar[++i]);continue}if(ar[i]==RELY){eval(pf+"rely="+ar[++i]);continue}if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[++i]+'"');continue}if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[++i]+'"');continue}if(ar[i]==PADX){eval(pf+"padxl="+ar[++i]);eval(pf+"padxr="+ar[++i]);continue}if(ar[i]==PADY){eval(pf+"padyt="+ar[++i]);eval(pf+"padyb="+ar[++i]);continue}if(ar[i]==FULLHTML){if(pf!="ol_"){eval(pf+"fullhtml=1")}continue}if(ar[i]==BELOW||ar[i]==ABOVE){eval(pf+"vpos="+ar[i]);if(pf!="ol_"){olVautoFlag=1}continue}if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[++i]+'"');continue}if(ar[i]==CLOSESIZE){eval(pf+'closesize="'+ar[++i]+'"');continue}if(ar[i]==TIMEOUT){eval(pf+"timeout="+ar[++i]);continue}if(ar[i]==FUNCTION){if(pf=="ol_"){if(typeof ar[i+1]!="number"){v=ar[++i];ol_function=(typeof v=="function"?v:null)}}else{fnMark=0;v=null;if(typeof ar[i+1]!="number"){v=ar[++i]}opt_FUNCTION(v)}continue}if(ar[i]==DELAY){eval(pf+"delay="+ar[++i]);continue}if(ar[i]==HAUTO){eval(pf+"hauto=("+pf+"hauto == 0) ? 1 : 0");continue}if(ar[i]==VAUTO){eval(pf+"vauto=("+pf+"vauto == 0) ? 1 : 0");continue}if(ar[i]==CLOSECLICK){eval(pf+"closeclick=("+pf+"closeclick == 0) ? 1 : 0");continue}if(ar[i]==WRAP){eval(pf+"wrap=("+pf+"wrap == 0) ? 1 : 0");continue}if(ar[i]==FOLLOWMOUSE){eval(pf+"followmouse=("+pf+"followmouse == 1) ? 0 : 1");continue}if(ar[i]==MOUSEOFF){eval(pf+"mouseoff=("+pf+"mouseoff==0) ? 1 : 0");v=ar[i+1];if(pf!="ol_"&&eval(pf+"mouseoff")&&typeof v=="number"&&(v<pmStart||v>pmUpper)){olHideDelay=ar[++i]}continue}if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CSSOFF||ar[i]==CSSCLASS){eval(pf+"css="+ar[i]);continue}if(ar[i]==COMPATMODE){eval(pf+"compatmode=("+pf+"compatmode==0) ? 1 : 0");continue}if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[++i]+'"');continue}if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[++i]+'"');continue}if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[++i]+'"');continue}i=parseCmdLine(pf,i,ar)}}if(fnMark&&o3_function){o3_text=o3_function()}if((pf=="o3_")&&o3_wrap){o3_width=0;var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text)){o3_text=o3_text.replace(/[ ]+/g,"&nbsp;")}if(!tReg.test(o3_cap)){o3_cap=o3_cap.replace(/[ ]+/g,"&nbsp;")}}if((pf=="o3_")&&o3_sticky){if(!o3_close&&(o3_frame!=ol_frame)){o3_close=ol_close}if(o3_mouseoff&&(o3_frame==ol_frame)){opt_NOCLOSE(" ")}}}function layerWrite(a){a+="\n";if(olNs4){var c=o3_frame.document.layers.overDiv.document;c.write(a);c.close()}else{if(typeof over.innerHTML!="undefined"){if(olIe5&&isMac){over.innerHTML=""}over.innerHTML=a}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(a);while(over.hasChildNodes()){over.removeChild(over.lastChild)}over.appendChild(domfrag)}}}function showObject(c){runHook("showObject",FBEFORE);var a=(olNs4?c:c.style);a.visibility="visible";runHook("showObject",FAFTER)}function hideObject(c){runHook("hideObject",FBEFORE);var a=(olNs4?c:c.style);if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0}a.visibility="hidden";a.top=a.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);if(o3_timerid>0){clearTimeout(o3_timerid)}if(o3_delayid>0){clearTimeout(o3_delayid)}o3_timerid=0;o3_delayid=0;self.status="";if(c.onmouseout||c.onmouseover){if(olNs4){c.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER)}c.onmouseout=c.onmouseover=null}runHook("hideObject",FAFTER)}function repositionTo(h,j,a){var c=(olNs4?h:h.style);c.left=j+(!olNs4?"px":0);c.top=a+(!olNs4?"px":0)}function cursorOff(){var j=parseInt(over.style.left);var h=parseInt(over.style.top);var c=j+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var a=h+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);if(o3_x<j||o3_x>c||o3_y<h||o3_y>a){return true}return false}function opt_FUNCTION(callme){o3_text=(callme?(typeof callme=="string"?(/.+\(.*\)/.test(callme)?eval(callme):callme):callme()):(o3_function?o3_function():"No Function"));return 0}function opt_NOCLOSE(a){if(!a){o3_close=""}if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}};over.onmouseout=function(c){if(olHideDelay){hideDelay(olHideDelay)}else{cClick(c)}}}else{over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}}}return 0}function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str="";for(k=i;k<args.length;k++){if(typeof args[k]=="number"&&args[k]>pmStart){break}str+=args[k]+","}if(str){str=str.substring(0,--str.length)}k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(",")[0]:str;eval(parameter+'="'+pV+'"');return k}function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g," ");o3_cap=o3_cap.replace(/\&nbsp;/g," ")}}function escSglQuote(a){return a.toString().replace(/'/g,"\\'")}function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i;if(!olLoaded){olLoaded=1}if(window.removeEventListener&&e.eventPhase==3){window.removeEventListener("load",OLonLoad_handler,false)}else{if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute("onload");if(fN){fN=fN.toString().match(re);if(fN&&fN.length){for(i=0;i<fN.length;i++){if(/anonymous/.test(fN[i])){continue}while((l=fN[i].search(/\)[;\s]+/))!=-1){fn=fN[i].substring(0,l+1);fN[i]=fN[i].substring(l+2);if(olre.test(fn)){eval(fn)}}}}}}}}function wrapStr(endWrap,fontSizeStr,whichString){var fontStr,fontColor,isClose=((whichString=="close")?1:0),hasDims=/[%\-a-z]+$/.test(fontSizeStr);fontSizeStr=(olNs4)?(!hasDims?fontSizeStr:"1"):fontSizeStr;if(endWrap){return(hasDims&&!olNs4)?(isClose?"</span>":"</div>"):"</font>"}else{fontStr="o3_"+whichString+"font";fontColor="o3_"+((whichString=="caption")?"cap":whichString)+"color";return(hasDims&&!olNs4)?(isClose?'<span style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">'):'<font face="'+eval(fontStr)+'" color="'+eval(fontColor)+'" size="'+(parseInt(fontSizeStr)>7?"7":fontSizeStr)+'">'}}function quoteMultiNameFonts(j){var a,c=j.split(",");for(var h=0;h<c.length;h++){a=c[h];a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(/\s/.test(a)&&!/['"]/.test(a)){a="'"+a+"'";c[h]=a}}return c.join()}function isExclusive(a){return false}function setCellPadStr(o){var l="",c=0,k=new Array(),n,a,m,h;l+="padding: ";k=o.replace(/\s+/g,"").split(",");switch(k.length){case 2:n=a=k[c];m=h=k[++c];break;case 3:n=k[c];m=h=k[++c];a=k[++c];break;case 4:n=k[c];h=k[++c];a=k[++c];m=k[++c];break}l+=((k.length==1)?k[0]+"px;":n+"px "+h+"px "+a+"px "+m+"px;");return l}function hideDelay(a){if(a&&!o3_delay){if(o3_timerid>0){clearTimeout(o3_timerid)}o3_timerid=setTimeout("cClick()",(o3_timeout=a))}}function horizontalPlacement(m,n,j){var l,c=m,h=n;var a=parseInt(o3_width);if(o3_fixx>-1||o3_relx!=null){l=(o3_relx!=null?(o3_relx<0?h+o3_relx+c-a-j:h+o3_relx):o3_fixx)}else{if(o3_hauto==1){if((o3_x-h)>(c/2)){o3_hpos=LEFT}else{o3_hpos=RIGHT}}if(o3_hpos==CENTER){l=o3_x+o3_offsetx-(a/2);if(l<h){l=h}}if(o3_hpos==RIGHT){l=o3_x+o3_offsetx;if((l+a)>(h+c-j)){l=c+h-a-j;if(l<0){l=0}}}if(o3_hpos==LEFT){l=o3_x-o3_offsetx-a;if(l<h){l=h}}if(o3_snapx>1){var k=l%o3_snapx;if(o3_hpos==LEFT){l=l-(o3_snapx+k)}else{l=l+(o3_snapx-k)}if(l<h){l=h}}}return l}function verticalPlacement(c,a){var l,m=c,h=a;var k=(o3_aboveheight?parseInt(o3_aboveheight):(olNs4?over.clip.height:over.offsetHeight));if(o3_fixy>-1||o3_rely!=null){l=(o3_rely!=null?(o3_rely<0?h+o3_rely+m-k:h+o3_rely):o3_fixy)}else{if(o3_vauto==1){if((o3_y-h)>(m/2)&&o3_vpos==BELOW&&(o3_y+k+o3_offsety-(h+m)>0)){o3_vpos=ABOVE}else{if(o3_vpos==ABOVE&&(o3_y-(k+o3_offsety)-h<0)){o3_vpos=BELOW}}}if(o3_vpos==ABOVE){if(o3_aboveheight==0){o3_aboveheight=k}l=o3_y-(o3_aboveheight+o3_offsety);if(l<h){l=h}}else{l=o3_y+o3_offsety}if(o3_snapy>1){var j=l%o3_snapy;if(o3_aboveheight>0&&o3_vpos==ABOVE){l=l-(o3_snapy+j)}else{l=l+(o3_snapy-j)}if(l<h){l=h}}}return l}function checkPositionFlags(){if(olHautoFlag){olHautoFlag=o3_hauto=0}if(olVautoFlag){olVautoFlag=o3_vauto=0}return true}function windowWidth(){var w;if(o3_frame.innerWidth){w=o3_frame.innerWidth}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval("o3_frame."+docRoot+".clientWidth")){w=eval("o3_frame."+docRoot+".clientWidth")}}return w}function createDivContainer(l,j,h){l=(l||"overDiv"),j=(j||o3_frame),h=(h||1000);var k,c=layerReference(l);if(c==null){if(olNs4){c=j.document.layers[l]=new Layer(window.innerWidth,j);k=c}else{var a=(olIe4?j.document.all.tags("BODY")[0]:j.document.getElementsByTagName("BODY")[0]);if(olIe4&&!document.getElementById){a.insertAdjacentHTML("beforeEnd",'<div id="'+l+'"></div>');c=layerReference(l)}else{c=j.document.createElement("DIV");c.id=l;a.appendChild(c)}k=c.style}k.position="absolute";k.visibility="hidden";k.zIndex=h;if(olIe4&&!olOp){k.left=k.top="0px"}else{k.left=k.top=-10000+(!olNs4?"px":0)}}return c}function layerReference(a){return(olNs4?o3_frame.document.layers[a]:(document.all?o3_frame.document.all[a]:o3_frame.document.getElementById(a)))}function isFunction(h){var c=true;if(typeof h=="object"){for(var a=0;a<h.length;a++){if(typeof h[a]=="function"){continue}c=false;break}}else{if(typeof h!="function"){c=false}}return c}function argToString(n,c,m){var l=c,a="",j=n;m=(m?m:"ar");if(j.length>l){for(var h=l;h<j.length;h++){a+=m+"["+h+"], "}a=a.substring(0,a.length-2)}return a}function reOrder(c,n,a){var h=new Array(),l,m,k;if(!a||typeof a=="undefined"||typeof a=="number"){return c}if(typeof a=="function"){if(typeof n=="object"){h=h.concat(n)}else{h[h.length++]=n}for(m=0;m<c.length;m++){l=false;if(typeof n=="function"&&c[m]==n){continue}else{for(k=0;k<n.length;k++){if(c[m]==n[k]){l=true;break}}}if(!l){h[h.length++]=c[m]}}h[h.length++]=a}else{if(typeof a=="object"){if(typeof n=="object"){h=h.concat(n)}else{h[h.length++]=n}for(k=0;k<c.length;k++){l=false;if(typeof n=="function"&&c[k]==n){continue}else{for(m=0;m<n.length;m++){if(c[k]==n[m]){l=true;break}}}if(!l){h[h.length++]=c[k]}}for(m=0;m<h.length;m++){c[m]=h[m]}h.length=0;for(k=0;k<c.length;k++){l=false;for(m=0;m<a.length;m++){if(c[k]==a[m]){l=true;break}}if(!l){h[h.length++]=c[k]}}h=h.concat(a)}}c=h;return c}function setRunTimeVariables(){if(typeof runTime!="undefined"&&runTime.length){for(var a=0;a<runTime.length;a++){runTime[a]()}}}function parseCmdLine(a,m,l){if(typeof cmdLine!="undefined"&&cmdLine.length){for(var c=0;c<cmdLine.length;c++){var h=cmdLine[c](a,m,l);if(h>-1){m=h;break}}}return m}function postParseChecks(a,h){if(typeof postParse!="undefined"&&postParse.length){for(var c=0;c<postParse.length;c++){if(postParse[c](a,h)){continue}return false}}return true}function registerCommands(cmdStr){if(typeof cmdStr!="string"){return}var pM=cmdStr.split(",");pms=pms.concat(pM);for(var i=0;i<pM.length;i++){eval(pM[i].toUpperCase()+"="+pmCount++)}}function registerNoParameterCommands(a){if(!a&&typeof a!="string"){return}pmt=(!pmt)?a:pmt+","+a}function registerHook(l,k,j,c){var a,h=typeof c;if(l=="plgIn"||l=="postParse"){return}if(typeof hookPts[l]=="undefined"){hookPts[l]=new FunctionReference()}a=hookPts[l];if(j!=null){if(j==FREPLACE){a.ovload=k;if(l.indexOf("ol_content_")>-1){a.alt[pms[CSSOFF-1-pmStart]]=k}}else{if(j==FBEFORE||j==FAFTER){var a=(j==1?a.before:a.after);if(typeof k=="object"){a=a.concat(k)}else{a[a.length++]=k}if(c){a=reOrder(a,k,c)}}else{if(j==FALTERNATE){if(h=="number"){a.alt[pms[c-1-pmStart]]=k}}else{if(j==FCHAIN){a=a.chain;if(typeof k=="object"){a=a.concat(k)}else{a[a.length++]=k}}}}}return}}function registerRunTimeFunction(a){if(isFunction(a)){if(typeof a=="object"){runTime=runTime.concat(a)}else{runTime[runTime.length++]=a}}}function registerCmdLineFunction(a){if(isFunction(a)){if(typeof a=="object"){cmdLine=cmdLine.concat(a)}else{cmdLine[cmdLine.length++]=a}}}function registerPostParseFunction(a){if(isFunction(a)){if(typeof a=="object"){postParse=postParse.concat(a)}else{postParse[postParse.length++]=a}}}function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments;if(hookType==FREPLACE){arS=argToString(ar,2);if(typeof l=="undefined"||!(l=l.ovload)){rtnVal=eval(fnHookTo+"("+arS+")")}else{rtnVal=eval("l("+arS+")")}}else{if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!="undefined"){l=(hookType==1?l.before:l.after);if(l.length){arS=argToString(ar,2);for(var k=0;k<l.length;k++){eval("l[k]("+arS+")")}}}}else{if(hookType==FALTERNATE){optPm=ar[2];arS=argToString(ar,3);if(typeof l=="undefined"||(l=l.alt[pms[optPm-1-pmStart]])=="undefined"){rtnVal=eval(fnHookTo+"("+arS+")")}else{rtnVal=eval("l("+arS+")")}}else{if(hookType==FCHAIN){arS=argToString(ar,2);l=l.chain;for(k=l.length;k>0;k--){if((rtnVal=eval("l[k-1]("+arS+")"))!=void (0)){break}}}}}}return rtnVal}function FunctionReference(){this.ovload=null;this.before=new Array();this.after=new Array();this.alt=new Array();this.chain=new Array()}function Info(a,c){this.version=a;this.prerelease=c;this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major*10;this.revision=parseInt(this.simpleversion)-this.major*100-this.minor*10;this.meets=meets}function meets(a){return(!a)?false:this.simpleversion>=Math.round(100*parseFloat(a))}registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||(olIe5&&isMac)||olKq){olLoaded=1}registerNoParameterCommands("sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode");var olCheckMouseCapture=true;if((olNs4||olNs6||olIe4)){olMouseCapture()}else{overlib=no_overlib;nd=no_overlib;ver3fix=true}
/*
 * jQuery JavaScript Library v1.6.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Jun 30 14:16:56 2011 -0400
 */
(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement){ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close()}d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1){for(h in a.converters){typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h])}}l=k,k=d[g];if(k==="*"){k=l}else{if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g){i in d&&(c[g[i]]=d[i])}while(f[0]==="*"){f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"))}if(h){for(i in e){if(e[i]&&e[i].test(h)){f.unshift(i);break}}}if(f[0] in d){j=f[0]}else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b)){f.each(b,function(b,e){c||bC.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)})}else{if(!c&&b!=null&&typeof b=="object"){for(var e in b){bY(a+"["+e+"]",b[e],c,d)}}else{d(a,b)}}}function bX(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bR,l;for(;i<j&&(k||!l);i++){l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bX(a,c,d,e,l,g)))}(k||!l)&&!g["*"]&&(l=bX(a,c,d,e,"*",g));return l}function bW(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bN),e=0,g=d.length,h,i,j;for(;e<g;e++){h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}}function bA(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bv:bw;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null){d=a.style[b]||0}d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName" in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio"){a.defaultChecked=a.checked}}function bj(a){return"getElementsByTagName" in a?a.getElementsByTagName("*"):"querySelectorAll" in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object"){b.outerHTML=a.outerHTML}else{if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option"){b.selected=a.defaultSelected}else{if(c==="input"||c==="textarea"){b.defaultValue=a.defaultValue}}}else{a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)}}b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g){for(var i=0,j=g[h].length;i<j;i++){f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}}}function bg(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function W(a,b,c){b=b||0;if(f.isFunction(b)){return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c})}if(b.nodeType){return f.grep(a,function(a,d){return a===b===c})}if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(R.test(b)){return f.filter(b,d,!c)}b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function V(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++){g=s[i],g.origType.replace(x,"")===a.type?q.push(g.selector):s.splice(i--,1)}e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave"){a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h)}(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c){break}a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped()){break}}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return !0}function D(){return !1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a){if(b!=="toJSON"){return !1}}return !0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else{d=b}}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a){return this}if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2]){return f.find(a)}this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return !d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a)){return f.ready(a)}a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++){if((a=arguments[j])!=null){for(c in a){d=i[c],f=a[c];if(i===f){continue}l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}}}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body){return setTimeout(e.ready,1)}e.isReady=!0;if(a!==!0&&--e.readyWait>0){return}A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete"){return setTimeout(e.ready,1)}if(c.addEventListener){c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1)}else{if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval" in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a)){return !1}if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf")){return !1}var c;for(c in a){}return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a){return !1}return !0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b){return null}b=e.trim(b);if(a.JSON&&a.JSON.parse){return a.JSON.parse(b)}if(o.test(b.replace(p,"@").replace(q,"]").replace(r,""))){return(new Function("return "+b))()}e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a){if(c.apply(a[f],d)===!1){break}}}else{for(;g<h;){if(c.apply(a[g++],d)===!1){break}}}}else{if(i){for(f in a){if(c.call(a[f],f,a[f])===!1){break}}}else{for(;g<h;){if(c.call(a[g],g,a[g++])===!1){break}}}}return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(H){return H.call(b,a)}for(var c=0,d=b.length;c<d;c++){if(b[c]===a){return c}}return -1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number"){for(var f=c.length;e<f;e++){a[d++]=c[e]}}else{while(c[e]!==b){a[d++]=c[e++]}}a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++){e=!!b(a[f],f),c!==e&&d.push(a[f])}return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k){for(;i<j;i++){f=c(a[i],i,d),f!=null&&(h[h.length]=f)}}else{for(g in a){f=c(a[g],g,d),f!=null&&(h[h.length]=f)}}return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a)){return b}var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c){e.access(a,j,c[j],f,g,d)}return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++){g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h)}return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++){i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i)}k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0]){a.shift().apply(e,f)}}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return !!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g](h)}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d){return d}d=a={}}var c=g.length;while(c--){a[g[c]]=b[g[c]]}return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++){b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e}e||g.resolveWith(g,b)}else{g!==a&&g.resolveWith(g,d?[a]:[])}return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e){return{}}g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1000,top:-1000});for(t in p){o.style[t]=p[t]}o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom" in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent){for(t in {submit:1,change:1,focusin:1}){s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u}}o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return !!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b){return}l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function"){e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c)}i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c]){return i[g]&&i[g].events}return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i]){return}if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j)){return}}}if(d){delete h[i][e];if(!l(h[i])){return}}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b){return b!==!0&&a.getAttribute("classid")===b}}return !0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++){g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}}return d}if(typeof a=="object"){return this.each(function(){f.data(this,a)})}var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b){return f.queue(this[0],a)}return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--){if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0)){h++,l.done(m)}}m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/\:|^on/,v,w;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a)){return this.each(function(b){f(this).addClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1){if(!e.className&&b.length===1){e.className=a}else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++){~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ")}e.className=f.trim(g)}}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a)){return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className){if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++){h=h.replace(" "+c[i]+" "," ")}g.className=f.trim(h)}else{g.className=""}}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a)){return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)})}return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++]){i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}}else{if(c==="undefined"||c==="boolean"){this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""}}})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++){if((" "+this[c].className+" ").replace(n," ").indexOf(b)>-1){return !0}}return !1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get" in c&&(d=c.get(e,"value"))!==b){return d}d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set" in c)||c.set(this,h,"value")===b){this.value=h}}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return !b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0){return null}for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g){return b}d.push(b)}}if(g&&!d.length&&e.length){return f(e[c]).val()}return d},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2){return b}if(e&&c in f.attrFn){return f(a)[c](d)}if(!("getAttribute" in a)){return f.prop(a,c,d)}var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set" in i&&j&&(h=i.set(a,d,c))!==b){return h}a.setAttribute(c,""+d);return d}if(i&&"get" in i&&j&&(h=i.get(a,c))!==null){return h}h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b) in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode){f.error("type property can't be changed")}else{if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button")){return v.get(a,b)}return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button")){return v.set(a,b,c)}a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2){return b}var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set" in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get" in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b)){return a.checked=f.inArray(f(a).val(),b)>=0}}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1){d=D}else{if(!d){return}}var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i){return}var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1){a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t){return}c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t){f.event.remove(a,h+c)}return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p){continue}if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace)){f.event.remove(a,r,q.handler,j),p.splice(j--,1)}}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace)){e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q)}if(e!=null){break}}}if(p.length===0||e!=null&&p.length===1){(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete t[h]}}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e){c.preventDefault(),c.stopPropagation()}if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8){return}c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped()){break}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando]){return a}var d=a;a=f.Event(d);for(var e=this.props.length,g;e;){g=this.props[--e],a[g]=d[g]}a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:100000000,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,N(a.origType,a.selector),f.extend({},a,{handler:M,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,N(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault){return new f.Event(a,b)}a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?E:D):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E,this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var F=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},G=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?G:F,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?G:F)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form")){f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&f(b).closest("form").length&&K("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&K("submit",this,arguments)})}else{return !1}},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var H,I=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e){return}if(e!=null||g){c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file"){return !1}for(var c in H){f.event.add(this,c+".specialChange",H[c])}return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a){this[c](h,d,a[h],e)}return this}if(arguments.length===2||d===!1){e=d,d=b}c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one"){this.one(a,d,e)}else{for(var i=0,j=this.length;i<j;i++){f.event.add(this[i],a,g,d)}}return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault){for(var c in a){this.unbind(c,a[c])}}else{for(var d=0,e=this.length;d<e;d++){f.event.remove(this[d],a,b)}}return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){return f.event.trigger(a,b,this[0],!0)}},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length){b[d++].guid=c}return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var L={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a){n[c](o,d,a[o],m)}return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d)){e=d||D,d=b}a=(a||"").split(" ");while((h=a[i++])!=null){j=x.exec(h),k="",j&&(k=j[0],h=h.replace(x,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,L[h]?(a.push(L[h]+k),h=h+k):h=(L[h]||h)+k;if(c==="live"){for(var p=0,q=n.length;p<q;p++){f.event.add(n[p],"live."+N(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l})}}else{n.unbind("live."+N(h,m),e)}}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else{if(k.filter(b,[i]).length>0){j=i;break}}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9){return[]}if(!b||typeof b!="string"){return f}var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b)){if(x.length===2&&l.relative[x[0]]){j=v(x[0]+x[1],d)}else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length){b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}}}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length){r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}}else{n=x=[]}}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]"){if(!u){f.push.apply(f,n)}else{if(d&&d.nodeType===1){for(t=0;n[t]!=null;t++){n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t])}}else{for(t=0;n[t]!=null;t++){n[t]&&n[t].nodeType===1&&f.push(j[t])}}}}else{p(n,f)}o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g){for(var b=1;b<a.length;b++){a[b]===a[b-1]&&a.splice(b--,1)}}}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a){return[]}for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter){if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\"){continue}j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f){g=o=!0}else{if(f===!0){continue}}}if(f){for(var s=0;(p=j[s])!=null;s++){if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}}}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g){return[]}break}}}if(a===h){if(g==null){k.error(a)}else{break}}h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++){if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++){c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b)}d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++){d[e].getAttribute("name")===a[1]&&c.push(d[e])}return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined"){return b.getElementsByTagName(a[1])}}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f){return a}for(var g=0,h;(h=b[g])!=null;g++){h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1))}return !1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else{a[2]&&k.error(a[0])}a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"){if((a.exec(b[3])||"").length>1||/^\w/.test(b[3])){b[3]=k(b[3],null,null,c)}else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return !1}}else{if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0])){return !0}}return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f){return f(a,c,b,d)}if(e==="contains"){return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0}if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++){if(g[h]===a){return !1}}return !0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling){if(d.nodeType===1){return !1}}if(c==="first"){return !0}d=a;case"last":while(d=d.nextSibling){if(d.nodeType===1){return !1}}return !0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0){return !0}var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling){d.nodeType===1&&(d.nodeIndex=++i)}h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f){return f(a,c,b,d)}}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match){l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n))}var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length=="number"){for(var f=a.length;c<f;c++){d.push(a[c])}}else{for(;a[c];c++){d.push(a[c])}}}return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition){return a.compareDocumentPosition?-1:1}return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex){return a.sourceIndex-b.sourceIndex}var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i){return s(a,b)}if(!h){return -1}if(!i){return 1}while(j){e.unshift(j),j=j.parentNode}j=i;while(j){f.unshift(j),j=j.parentNode}c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++){if(e[k]!==f[k]){return s(e[k],f[k])}}return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b){return c}var d=a.nextSibling;while(d){if(d===b){return -1}d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++){c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes))}return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){c[e].nodeType===1&&d.push(c[e])}c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1]){return p(e.getElementsByTagName(b),f)}if(h[2]&&l.find.CLASS&&e.getElementsByClassName){return p(e.getElementsByClassName(h[2]),f)}}if(e.nodeType===9){if(b==="body"&&e.body){return p([e.body],f)}if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode){return p([],f)}if(i.id===h[3]){return p([i],f)}}try{return p(e.querySelectorAll(b),f)}catch(j){}}else{if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q){return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}}catch(s){}finally{n||m.removeAttribute("id")}}}}return a(b,e,f,g)};for(var e in a){k[e]=a[e]}b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a)){try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11){return f}}}catch(g){}}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c){return b.getElementsByClassName(a[1])}},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return !1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a)){e+=c[0],a=a.replace(l.match.PSEUDO,"")}a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++){k(a,f[g],d)}return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var O=/Until$/,P=/^(?:parents|prevUntil|prevAll)/,Q=/,/,R=/^.[^:#\[\.,]*$/,S=Array.prototype.slice,T=f.expr.match.POS,U={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string"){return f(a).filter(function(){for(c=0,d=b.length;c<d;c++){if(f.contains(b[c],this)){return !0}}})}var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0){for(h=g;h<e.length;h++){for(i=0;i<g;i++){if(e[i]===e[h]){e.splice(h--,1);break}}}}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++){if(f.contains(this,b[a])){return !0}}})},not:function(a){return this.pushStack(W(this,a,!1),"not",a)},filter:function(a){return this.pushStack(W(this,a,!0),"filter",a)},is:function(a){return !!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++){i=a[d],j[i]||(j[i]=T.test(i)?f(i,b||this.context):i)}while(g&&g.ownerDocument&&g!==b){for(i in j){h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k})}g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11){break}}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string"){return f.inArray(this[0],a?f(a):this.parent().children())}return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d))){g.nodeType===1&&e.push(g),g=g[c]}return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling){a.nodeType===1&&a!==b&&c.push(a)}return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/<tbody/i,ba=/<|&#?\w+;/,bb=/<(?:script|object|embed|option|style)/i,bc=/checked\s*(?:[^=]|=\s*.checked.)/i,bd=/\/(java|ecma)script/i,be=/^\s*<!(?:\[CDATA\[|\-\-)/,bf={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a)){return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))})}if(typeof a!="object"&&a!==b){return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))}return f.text(this)},wrapAll:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapAll(a.call(this,b))})}if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapInner(a.call(this,b))})}return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})}if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})}if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++){if(!a||f.filter(a,[d]).length){!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d)}}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild){b.removeChild(b.firstChild)}}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null}if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++){this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}}catch(e){this.empty().append(a)}}else{f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a)}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a)){return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))})}typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bc.test(j)){return this.each(function(){f(this).domManip(a,c,d,!0)})}if(f.isFunction(j)){return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)})}if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++){d.call(c?bg(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}}k.length&&f.each(k,bm)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!bb.test(a[0])&&(f.support.checkClone||!bc.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h){bi(e[h],g[h])}}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h){bh(e[h],g[h])}}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k){continue}if(typeof k=="string"){if(!ba.test(k)){k=b.createTextNode(k)}else{k=k.replace(Z,"<$1></$2>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--){o=o.lastChild}if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i){f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}}var r;if(!f.support.appendChecked){if(k[0]&&typeof(r=k.length)=="number"){for(i=0;i<r;i++){bl(k[i])}}else{bl(k)}}k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return !a.type||bd.test(a.type)};for(j=0;h[j];j++){if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript")){e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j])}else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()]){continue}c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events){g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle)}b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bn=/alpha\([^)]*\)/i,bo=/opacity=([^)]*)/,bp=/([A-Z]|^ms)/g,bq=/^-?\d+(?:px)?$/i,br=/^-?\d/,bs=/^[+\-]=/,bt=/[^+\-\.\de]+/g,bu={position:"absolute",visibility:"hidden",display:"block"},bv=["Left","Right"],bw=["Top","Bottom"],bx,by,bz;f.fn.css=function(a,c){if(arguments.length===2&&c===b){return this}return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bx(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get" in k&&(g=k.get(a,!1,e))!==b){return g}return j[c]}h=typeof d;if(h==="number"&&isNaN(d)||d==null){return}h==="string"&&bs.test(d)&&(d=+d.replace(bt,"")+parseFloat(f.css(a,c)),h="number"),h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set" in k)||(d=k.set(a,d))!==b){try{j[c]=d}catch(l){}}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get" in g&&(e=g.get(a,!0,d))!==b){return e}if(bx){return bx(a,c)}},swap:function(a,b,c){var d={};for(var e in b){d[e]=a.style[e],a.style[e]=b[e]}c.call(a);for(e in b){a.style[e]=d[e]}}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0){return bA(a,b,d)}f.swap(a,bu,function(){e=bA(a,b,d)});return e}},set:function(a,b){if(!bq.test(b)){return b}b=parseFloat(b);if(b>=0){return b+"px"}}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView)){return b}if(g=e.getComputedStyle(a,null)){d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c))}return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return !f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ){return bQ.apply(this,arguments)}if(!this.length){return this}var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in {context:1,url:1}){c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c])}return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified")){f.lastModified[k]=x}if(y=v.getResponseHeader("Etag")){f.etag[k]=y}}if(a===304){c="notmodified",o=!0}else{try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}}else{u=c;if(!c||a){c="error",a<0&&(a=0)}}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n)){o[c[1].toLowerCase()]=c[2]}}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2){for(b in a){j[b]=[j[b],a[b]]}}else{b=a[v.status],v.then(b,b)}}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2){return !1}t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers){v.setRequestHeader(u,d.headers[u])}if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return !1}for(u in {success:1,error:1,complete:1}){v[u](d[u])}p=bX(bS,d,c,v);if(!p){w(-1,"No Transport")}else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a)){f.each(a,function(){e(this.name,this.value)})}else{for(var g in a){bY(g,a[g],c,e)}}return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState)){d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")}},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd){cd[a](0,1)}}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return !this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials" in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields){for(j in c.xhrFields){h[j]=c.xhrFields[j]}}c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e){h.setRequestHeader(j,e[j])}}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e){h.readyState!==4&&h.abort()}else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0){return this.animate(cr("show",3),a,b,c)}for(var g=0,h=this.length;g<h;g++){d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cs(d.nodeName)))}for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none"){d.style.display=f._data(d,"olddisplay")||""}}}return this},hide:function(a,b,c){if(a||a===0){return this.animate(cr("hide",3),a,b,c)}for(var d=0,e=this.length;d<e;d++){if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}}for(d=0;d<e;d++){this[d].style&&(this[d].style.display="none")}return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cr("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a)){return this.each(e.complete,[!1])}a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d){return b.complete.call(this)}c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cs(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a){k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""))}return !0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--){a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}}),b||this.dequeue();return this}}),f.each({slideDown:cr("show",1),slideUp:cr("hide",1),slideToggle:cr("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+0.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function h(a){return d.step(a)}var d=this,e=f.fx,g;this.startTime=cn||cp(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,h.elem=this.elem,h()&&f.timers.push(h)&&!cl&&(co?(cl=!0,g=function(){cl&&(co(g),e.tick())},co(g)):cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||cp(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties){e.animatedProperties[g]!==!0&&(c=!1)}if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show){for(var i in e.animatedProperties){f.style(d,i,e.orig[i])}}e.complete.call(d)}return !1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return !0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b){a[b]()||a.splice(b--,1)}a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var ct=/^t(?:able|d|h)$/i,cu=/^(?:body|html)$/i;"getBoundingClientRect" in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a){return this.each(function(b){f.offset.setOffset(this,a,b)})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return f.offset.bodyOffset(b)}try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b)){return c?{top:c.top,left:c.left}:{top:0,left:0}}var h=e.body,i=cv(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a){return this.each(function(b){f.offset.setOffset(this,a,b)})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return f.offset.bodyOffset(b)}f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed"){break}c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!ct.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static"){l+=i.offsetTop,m+=i.offsetLeft}f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using" in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0]){return null}var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static"){a=a.offsetParent}return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e){return null}g=cv(e);return g?"pageXOffset" in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e){return a==null?null:this}if(f.isFunction(a)){return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))})}if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9){return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c])}if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);(function(W,O,z){var I="function",N="password",U="maxLength",R="type",X="",V=true,J="placeholder",T=false,B="watermark",M=B,P="watermarkClass",E="watermarkFocus",K="watermarkSubmit",G="watermarkMaxLength",Q="watermarkPassword",S="watermarkText",L=/\r/g,C=":data("+M+")",H=":text,:password,:search,textarea",F=["Page_ClientValidate"],D=T,A=J in document.createElement("input");W.watermark=W.watermark||{version:"3.1.1",runOnce:V,options:{className:B,useNative:V,hideBeforeUnload:V},hide:function(c){W(c).filter(C).each(function(){W.watermark._hide(W(this))})},_hide:function(x,a){var j=x[0],h=(j.value||X).replace(L,X),s=x.data(S)||X,m=x.data(G)||0,t=x.data(P);if(s.length&&h==s){j.value=X;if(x.data(Q)){if((x.attr(R)||X)==="text"){var u=x.data(Q)||[],w=x.parent()||[];if(u.length&&w.length){w[0].removeChild(x[0]);w[0].appendChild(u[0]);x=u}}}if(m){x.attr(U,m);x.removeData(G)}if(a){x.attr("autocomplete","off");O.setTimeout(function(){x.select()},1)}}t&&x.removeClass(t)},show:function(c){W(c).filter(C).each(function(){W.watermark._show(W(this))})},_show:function(u){var c=u[0],w=(c.value||X).replace(L,X),t=u.data(S)||X,a=u.attr(R)||X,x=u.data(P);if((w.length==0||w==t)&&!u.data(E)){D=V;if(u.data(Q)){if(a===N){var h=u.data(Q)||[],k=u.parent()||[];if(h.length&&k.length){k[0].removeChild(u[0]);k[0].appendChild(h[0]);u=h;u.attr(U,t.length);c=u[0]}}}if(a==="text"||a==="search"){var m=u.attr(U)||0;if(m>0&&t.length>m){u.data(G,m);u.attr(U,t.length)}}x&&u.addClass(x);c.value=t}else{W.watermark._hide(u)}},hideAll:function(){if(D){W.watermark.hide(H);D=T}},showAll:function(){W.watermark.show(H)}};W.fn.watermark=W.fn.watermark||function(j,k){var h="string";if(!this.length){return this}var a=T,c=typeof j===h;if(c){j=j.replace(L,X)}if(typeof k==="object"){a=typeof k.className===h;k=W.extend({},W.watermark.options,k)}else{if(typeof k===h){a=V;k=W.extend({},W.watermark.options,{className:k})}else{k=W.watermark.options}}if(typeof k.useNative!==I){k.useNative=k.useNative?function(){return V}:function(){return T}}return this.each(function(){var s="dragleave",w="dragenter",t=this,o=W(t);if(!o.is(H)){return}if(o.data(M)){if(c||a){W.watermark._hide(o);c&&o.data(S,j);a&&o.data(P,k.className)}}else{if(A&&k.useNative.call(t,o)&&(o.attr("tagName")||X)!=="TEXTAREA"){c&&o.attr(J,j);return}o.data(S,c?j:X);o.data(P,k.className);o.data(M,1);if((o.attr(R)||X)===N){var q=o.wrap("<span>").parent(),n=W(q.html().replace(/type=["']?password["']?/i,'type="text"'));n.data(S,o.data(S));n.data(P,o.data(P));n.data(M,1);n.attr(U,j.length);n.focus(function(){W.watermark._hide(n,V)}).bind(w,function(){W.watermark._hide(n)}).bind("dragend",function(){O.setTimeout(function(){n.blur()},1)});o.blur(function(){W.watermark._show(o)}).bind(s,function(){W.watermark._show(o)});n.data(Q,o);o.data(Q,n)}else{o.focus(function(){o.data(E,1);W.watermark._hide(o,V)}).blur(function(){o.data(E,0);W.watermark._show(o)}).bind(w,function(){W.watermark._hide(o)}).bind(s,function(){W.watermark._show(o)}).bind("dragend",function(){O.setTimeout(function(){W.watermark._show(o)},1)}).bind("drop",function(u){var x=o[0],p=u.originalEvent.dataTransfer.getData("Text");if((x.value||X).replace(L,X).replace(p,X)===o.data(S)){x.value=p}o.focus()})}if(t.form){var m=t.form,l=W(m);if(!l.data(K)){l.submit(W.watermark.hideAll);if(m.submit){l.data(K,m.submit);m.submit=function(u,p){return function(){var x=p.data(K);W.watermark.hideAll();if(x.apply){x.apply(u,Array.prototype.slice.call(arguments))}else{x()}}}(m,l)}else{l.data(K,1);m.submit=function(p){return function(){W.watermark.hideAll();delete p.submit;p.submit()}}(m)}}}}W.watermark._show(o)})};if(W.watermark.runOnce){W.watermark.runOnce=T;W.extend(W.expr[":"],{search:function(a){return"search"===(a.type||X)},data:function(k,j,h){return !!W.data(k,h[3])}});(function(a){W.fn.val=function(){var h=this;if(!h.length){return arguments.length?h:z}if(!arguments.length){if(h.data(M)){var c=(h[0].value||X).replace(L,X);return c===(h.data(S)||X)?X:c}else{return a.apply(h,arguments)}}else{a.apply(h,arguments);W.watermark.show(h);return h}}})(W.fn.val);F.length&&W(function(){for(var h,k,j=F.length-1;j>=0;j--){h=F[j];k=O[h];if(typeof k===I){O[h]=function(c){return function(){W.watermark.hideAll();return c.apply(null,Array.prototype.slice.call(arguments))}}(k)}}});W(O).bind("beforeunload",function(){W.watermark.options.hideBeforeUnload&&W.watermark.hideAll()})}})(jQuery,window);var MapIconMaker={};MapIconMaker.createMarkerIcon=function(a){var j=a.width||32;var o=a.height||32;var k=a.primaryColor||"#ff0000";var p=a.strokeColor||"#000000";var h=a.cornerColor||"#ffffff";var m="http://chart.apis.google.com/chart?cht=mm";var c=m+"&chs="+j+"x"+o+"&chco="+h.replace("#","")+","+k.replace("#","")+","+p.replace("#","")+"&ext=.png";var n=new GIcon(G_DEFAULT_ICON);n.image=c;n.iconSize=new GSize(j,o);n.shadowSize=new GSize(Math.floor(j*1.6),o);n.iconAnchor=new GPoint(j/2,o);n.infoWindowAnchor=new GPoint(j/2,Math.floor(o/12));n.printImage=c+"&chof=gif";n.mozPrintImage=c+"&chf=bg,s,ECECD8&chof=gif";c=m+"&chs="+j+"x"+o+"&chco="+h.replace("#","")+","+k.replace("#","")+","+p.replace("#","");n.transparent=c+"&chf=a,s,ffffff11&ext=.png";n.imageMap=[j/2,o,(7/16)*j,(5/8)*o,(5/16)*j,(7/16)*o,(7/32)*j,(5/16)*o,(5/16)*j,(1/8)*o,(1/2)*j,0,(11/16)*j,(1/8)*o,(25/32)*j,(5/16)*o,(11/16)*j,(7/16)*o,(9/16)*j,(5/8)*o];for(var l=0;l<n.imageMap.length;l++){n.imageMap[l]=parseInt(n.imageMap[l])}return n};MapIconMaker.createFlatIcon=function(q){var u=q.width||32;var s=q.height||32;var z=q.primaryColor||"#ff0000";var t=q.shadowColor||"#000000";var o=MapIconMaker.escapeUserText_(q.label)||"";var B=q.labelColor||"#000000";var p=q.labelSize||0;var h=q.shape||"circle";var x=(h==="circle")?"it":"itr";var c="http://chart.apis.google.com/chart?cht="+x;var n=c+"&chs="+u+"x"+s+"&chco="+z.replace("#","")+","+t.replace("#","")+"ff,ffffff01&chl="+o+"&chx="+B.replace("#","")+","+p;var y=new GIcon(G_DEFAULT_ICON);y.image=n+"&chf=bg,s,00000000&ext=.png";y.iconSize=new GSize(u,s);y.shadowSize=new GSize(0,0);y.iconAnchor=new GPoint(u/2,s/2);y.infoWindowAnchor=new GPoint(u/2,s/2);y.printImage=n+"&chof=gif";y.mozPrintImage=n+"&chf=bg,s,ECECD8&chof=gif";y.transparent=n+"&chf=a,s,ffffff01&ext=.png";y.imageMap=[];if(x==="itr"){y.imageMap=[0,0,u,0,u,s,0,s]}else{var m=8;var j=360/m;var C=Math.min(u,s)/2;for(var A=0;A<(m+1);A++){var w=j*A*(Math.PI/180);var l=C+C*Math.cos(w);var k=C+C*Math.sin(w);y.imageMap.push(parseInt(l),parseInt(k))}}return y};MapIconMaker.createLabeledMarkerIcon=function(c){var h=c.primaryColor||"#DA7187";var q=c.strokeColor||"#000000";var m=c.starPrimaryColor||"#FFFF00";var s=c.starStrokeColor||"#0000FF";var n=MapIconMaker.escapeUserText_(c.label)||"";var o=c.labelColor||"#000000";var j=c.addStar||false;var p=(j)?"pin_star":"pin";var k="http://chart.apis.google.com/chart?cht=d&chdp=mapsapi&chl=";var a=k+p+"'i\\'["+n+"'-2'f\\hv'a\\]h\\]o\\"+h.replace("#","")+"'fC\\"+o.replace("#","")+"'tC\\"+q.replace("#","")+"'eC\\";if(j){a+=m.replace("#","")+"'1C\\"+s.replace("#","")+"'0C\\"}a+="Lauto'f\\";var l=new GIcon(G_DEFAULT_ICON);l.image=a+"&ext=.png";l.iconSize=(j)?new GSize(23,39):new GSize(21,34);return l};MapIconMaker.escapeUserText_=function(a){if(a===undefined){return null}a=a.replace(/@/,"@@");a=a.replace(/\\/,"@\\");a=a.replace(/'/,"@'");a=a.replace(/\[/,"@[");a=a.replace(/\]/,"@]");return encodeURIComponent(a)};$(document).ready(function(){$(".help").click(function(){showHelp(this)});$(".copyicon").mouseover(function(){overlib(getTranslation("icon_copyrecord","framework"))});$(".copyicon").mouseout(function(){nd()});$(".editicon").mouseover(function(){overlib(getTranslation("icon_editrecord","framework"))});$(".editicon").mouseout(function(){nd()});$(".deleteicon").mouseover(function(){overlib(getTranslation("icon_deleterecord","framework"))});$(".deleteicon").mouseout(function(){nd()});$(".setdefaulticon").mouseover(function(){overlib(getTranslation("icon_deleterecord","framework"))});$(".setdefaulticon").mouseout(function(){nd()});$(".confirmicon").mouseover(function(){overlib("Diese Buchung bestätigen. Du hast dann nach der Fahrt auch die Möglichkeit, eine Bewertung abzugeben")});$(".confirmicon").mouseout(function(){nd()});$(".offericon").mouseover(function(){overlib("Angebot")});$(".offericon").mouseout(function(){nd()});$(".requesticon").mouseover(function(){overlib("Gesuch")});$(".requesticon").mouseout(function(){nd()});$(".personicon").mouseover(function(){overlib("Dieses Inserat ist für Personen")});$(".personicon").mouseout(function(){nd()});$(".womenonlyicon").mouseover(function(){overlib("Dieses Inserat ist nur für Frauen")});$(".womenonlyicon").mouseout(function(){nd()});$(".menonlyicon").mouseover(function(){overlib("Dieses Inserat ist nur für Männer")});$(".menonlyicon").mouseout(function(){nd()});$(".objecticon").mouseover(function(){overlib("Dieses Inserat ist ein Gegenstandstransport")});$(".objecticon").mouseout(function(){nd()});$(".geocodeicon").mouseover(function(){overlib(getTranslation("icon_geocodelocation","framework"))});$(".geocodeicon").mouseout(function(){nd()});$(".onetimeicon").mouseover(function(){overlib("Einmal-Inserat: Nur zu diesem Termin")});$(".onetimeicon").mouseout(function(){nd()});$(".continuousicon").mouseover(function(){overlib("Serien-Inserat: Findet an den angegebenen Tagen statt")});$(".continuousicon").mouseout(function(){nd()})});function showHelp(h){var l=h.id;var j="ajaxGetHelpRecord="+l;var c=ajaxJSONCall(j);if(isError(c)){overlib(c.message,CAPTION,"Hilfe",WIDTH,200,CELLPAD,5,HAUTO,VAUTO,STICKY)}else{var a=c.help;var k=c.field;overlib(a,CAPTION,k,WIDTH,200,CELLPAD,5,HAUTO,VAUTO,STICKY)}}var lsResultDiv=new Array();var lsField=new Array();var lsSearchField=new Array();var lsAjaxUrl=new Array();var lsDelay=250;var lsListTotal=0;var lsListCurrent=-1;var jsonResult=new Array();var lsOldValue=new Array();var lsCallback=new Array();function liveSearchInit(c,j,k){var h=c+"_search";var a=c+"_result";lsField[c]=$("#"+c);lsSearchField[c]=$("#"+h);lsAjaxUrl[c]=j;lsCallback[c]=k;$("body").append('<div class="lsResults" id="'+a+'" style="display: none;"></div>');lsResultDiv[c]=$("#"+a);lsSearchField[c].blur(function(){if(lsSearchField[c].val()==""){lsEmptySearch(c)}else{lsSetSearchKey(c)}setTimeout(function(){clearLiveSearchResults(c)},10)});lsSearchField[c].keyup(function(n){var m=n.keyCode||window.event.keyCode;var l=lsSearchField[c].val();if(handleCursor(c,m)){return}else{if(l.search(/^[A-Z]{2},/)!=-1){lsOldValue[c]=l}}if(m==13||m==27){if(m==27){lsSetSearchKey(c)}clearLiveSearchResults(c);return}if(l.search(/^[A-Z]{2},/)==-1){setTimeout(function(){lsLiveSearch(c,l)},lsDelay)}})}function lsEmptySearch(a){lsField[a].val("");lsSearchField[a].val("")}function lsSetSearchKey(fieldId){if(lsListCurrent>=0){lsField[fieldId].val(jsonResult[fieldId][lsListCurrent]["key"]);if(lsCallback[fieldId]!=undefined){eval(lsCallback[fieldId])}}else{if(lsField[fieldId].val()==""){lsEmptySearch(fieldId)}else{if(lsSearchField[fieldId].val().search(/^[A-Z]{2},/)==-1){lsSearchField[fieldId].val(lsOldValue[fieldId])}}}}function lsRepositionResultsDiv(h){var j=lsSearchField[h].offset();var c=j.top;var l=j.left;var k=lsSearchField[h].height();var a=lsSearchField[h].width();lsResultDiv[h].css("position","absolute");lsResultDiv[h].css("left",l);lsResultDiv[h].css("top",c+k+5);lsResultDiv[h].css("width",a*1.25)}function clearLiveSearchResults(a){lsResultDiv[a].html("");lsResultDiv[a].hide(300)}function lsLiveSearch(a,c){lsRepositionResultsDiv(a);var h=lsSearchField[a].val();if(c!=h){return}if(h==""){clearLiveSearchResults(a);return}$.getJSON(lsAjaxUrl[a]+"="+encodeURI(h),function(l){jsonResult[a]=l;var k=l.length;lsListTotal=k;if(k>0){var m="<ul>";for(var n=0;n<k;n++){m+="<li class='"+((n%2==0)?"shadow":"")+"'>"+l[n]["value"]+"</li>"}m+="</ul>";lsResultDiv[a].html(m);lsResultDiv[a].show();var j=lsResultDiv[a].find("li");j.click(function(){lsSetSearchKey(a)});j.mouseover(function(){j.each(function(){this.className=""});if((nv=this.childNodes[0].nodeValue)==null){nv=this.childNodes[0].childNodes[0].nodeValue}lsSearchField[a].val(nv);this.className="selected";var o=-1;j.each(function(){o++;if(this.className=="selected"){lsListCurrent=o}})})}else{clearLiveSearchResults(a)}})}function handleCursor(a,c){if(c==37||c==38||c==39||c==40){if(c==38){if(lsListCurrent==0||lsListCurrent==-1){lsListCurrent=lsListTotal-1}else{lsListCurrent--}}else{if(c==40){if(lsListCurrent==lsListTotal-1){lsListCurrent=0}else{lsListCurrent++}}}lsResultDiv[a].find("li").each(function(h){if(h==lsListCurrent){if((nv=this.childNodes[0].nodeValue)==null){nv=this.childNodes[0].childNodes[0].nodeValue}lsSearchField[a].val(stripHTML(nv));this.className="selected"}else{this.className=""}});return true}else{lsListCurrent=-1;return false}}String.prototype.linkify=function(){return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/,function(a){return"<a href='"+a+"' target='_blank'>"+a+"</a>"})};function relativeTime(h){var c=h.split(" ");h=c[1]+" "+c[2]+", "+c[5]+" "+c[3];var a=Date.parse(h);var k=(arguments.length>1)?arguments[1]:new Date();var l=parseInt((k.getTime()-a)/1000);l=l+(k.getTimezoneOffset()*60);var j="";if(l<60){j="a minute ago"}else{if(l<120){j="couple of minutes ago"}else{if(l<(45*60)){j=(parseInt(l/60)).toString()+" minutes ago"}else{if(l<(90*60)){j="an hour ago"}else{if(l<(24*60*60)){j=""+(parseInt(l/3600)).toString()+" hours ago"}else{if(l<(48*60*60)){j="1 day ago"}else{j=(parseInt(l/86400)).toString()+" days ago"}}}}}}return j}function capitalise(a){if(typeof a!="string"){return a}var c=a.substr(0,1);return(c.toUpperCase()+a.substr(1))}function capitaliseField(a){$(a).val(capitalise($(a).val()))}function MRShowTripInMap(c,j){var a=$("#"+c);var h=$("#"+j);if(a.val()>0&&h.val()>0){initializeMap();stopOverLocations=new Array();stopOverLocations.push(a.val());stopOverLocations.push(h.val());var l=new Array();var k=ajaxUrl+"ajaxGetLocation="+stopOverLocations[0];$.getJSON(k,function(m){l.push(new GLatLng(parseFloat(m.lat),parseFloat(m.lng)));k=ajaxUrl+"ajaxGetLocation="+stopOverLocations[1];$.getJSON(k,function(n){l.push(new GLatLng(parseFloat(n.lat),parseFloat(n.lng)));directions.loadFromWaypoints(l)})})}}function MROnGDirectionsLoad(){var a=directions.getDistance();var k=directions.getDuration();var q=directions.getPolyline();$("#showdistance").html(a.html);document.getElementById("distance").value=a.meters;$("#showduration").html(k.html);document.getElementById("duration").value=k.seconds;computeStartTime($("#starttime").get(),$("#destinationtime").get(),k.seconds);var c=20;var l=Math.ceil((q.getVertexCount()-1)/c);var h=q.getVertexCount()-1;var t=Math.ceil(h/l)-1;var m=new Array();var s=Math.ceil(a.meters/1000/c);var o=l;for(v=0;v<t;v++){if(v>0){o=0}var p=Math.floor(Math.min(v*l+(l/2)+o,h-l));var j=q.getVertex(p);m.push(j.y+","+j.x)}var n=m.join("|");MRGetStopoverLocations(n,s)}function MRGetStopoverLocations(k,a){var j=stopOverLocations[0];var l=stopOverLocations[stopOverLocations.length-1];var c=ajaxUrl+"ajaxGetStopoverLocations="+k+"&startLocationId="+j+"&destinationLocationId="+l+"&ambit="+a;var m="";var h=false;$.getJSON(c,function(n){var q=new Array();for(var o=0;o<n.length;o++){h=false;if(stopOverLocations.exists(n[o]["location_id"])){h=true;q.push(n[o]["location_id"])}if(h){m+='<div class="smaller stopover stopoverselected"><a href="javascript: removeStopover('+n[o]["location_id"]+');">'+n[o]["name"]+"</a></div>"}else{m+='<div class="smaller stopover"><a href="javascript: addStopover('+n[o]["location_id"]+');">'+n[o]["name"]+"</a></div>"}}var p="";for(var o=0;o<stopOverLocations.length;o++){if(o>0&&o<stopOverLocations.length-1){p+=((p=="")?"":",")+stopOverLocations[o]}}$("#stopoverLocationIds").val(p);$("#stopovers").html(m);$("#additionalstopoverdiv").show()})}function MRAddStopoverLocations(c){if(c!=""){var h=c.split(",");for(var a=0;a<h.length;a++){if(a==(h.length-1)){addStopover(h[a])}else{stopOverLocations.push(h[a])}}$("#trstopovers").show()}}function MRGetEventsForLocation(k,h){var a=$("#"+k);var j=$("#date");if(a.val()>0&&j.val()!=""){$("#"+k+"_events").hide();var c=ajaxUrl+"ajaxGetEventsForLocation="+a.val()+"&date="+j.val();$.getJSON(c,function(n){if(isError(n)){alert(n.message)}else{var m=$("#"+k+"_eventid");if(h==undefined&&m.val()>=0){h=m.val()}if(n.length>0){var l="<option value=''>"+getTranslation("no_event","trip")+"</option>";for(var p=0;p<n.length;p++){var o=false;if(h!=undefined&&h==n[p]["event_id"]){o=true}l+="<option "+((o)?"selected":"")+" value='"+n[p]["event_id"]+"'>"+n[p]["name"]+"</option>"}m.html(l);$("#"+k+"_events").show()}}})}}function MRGetMeetingpointsForLocation(j,c){var a=$("#"+j);if(a.val()>0){var h=ajaxUrl+"ajaxGetMeetingpointsForLocation="+a.val();$.getJSON(h,function(m){if(isError(m)){alert(m.message)}else{var k=$("#"+j+"_meetingpoint");if(m.length>0){var n=false;var l="<option value=''>"+getTranslation("pleaseSelect")+"</option>";for(var o=0;o<m.length;o++){n=false;if(c==m[o]["meetingpoint_id"]||c==m[o]["name"]){n=true}l+="<option "+((n)?"selected":"")+" value='"+m[o]["meetingpoint_id"]+"'>"+m[o]["name"]+"</option>"}k.html(l)}$("#"+j+"_meetingpoint_newlink").show()}})}}function MRCreateNewMeetingpoint(j){var t=$("#"+j);var o=$("#"+j+"_search");var l=$("#"+j+"_meetingpoint_new");var q=$("#"+j+"_meetingpoint_new_zip");var u=$("#"+j+"_meetingpoint_new_address");var a=q.val();var c=/^[A-Z]{2}, [0-9\.]{0,5} ?(.+)/i;c.exec(o.val());var h=RegExp.$1.replace(/\(|\)/g,"");var p=u.val();var n=(p=="")?l.val():p;var m=a+" "+h+" "+n;var s="";var k=new GClientGeocoder();k.getLatLng(m,function(w){if(w!=null){s="("+w.y+","+w.x+")"}var x=ajaxUrl+"ajaxCreateNewMeetingpoint="+t.val()+"&name="+l.val()+"&zip="+q.val()+"&address="+u.val()+"&coordinate="+s;$.getJSON(encodeURI(x),function(y){if(isError(y)){alert(y.message);l.focus()}else{t=$("#tr"+j+"_meetingpoint_new").hide();MRGetMeetingpointsForLocation(j,l.val());l.val("");q.val("");u.val("");$("#"+j+"_meetingpoint").focus()}return false});return false});return false}function MRUpdateMeetingpointCoordinates(c){$("#adjust_coordinates").show();initializeMapById("meetingpointmap");var a=maps.meetingpointmap;if(c.elements.coordinate.value==""){var m=new GClientGeocoder();var j=/, [0-9\.]* ?(.+)/i;j.exec(c.elements.locationSearch.value);var k=RegExp.$1.replace(/\(|\)/g,"");var o=(c.elements.address.value=="")?c.elements.name.value:c.elements.address.value;var n=c.elements.zip.value+" "+k+" "+o;m.getLatLng(n,function(p){if(p!=null){c.elements.coordinate.value="("+p.y+","+p.x+")";MRUpdateMeetingpointCoordinates(c)}else{alert("Keine Koordinaten gefunden")}})}else{var h=getLatLngFromCoordinates(c.elements.coordinate.value);a.setCenter(new GLatLng(h[0],h[1]),14);var l=new GMarker(new GLatLng(h[0],h[1]),{draggable:true});GEvent.addListener(l,"dragstart",function(){a.closeInfoWindow()});GEvent.addListener(l,"dragend",function(){c.elements.coordinate.value="("+l.getPoint().lat()+","+l.getPoint().lng()+")";a.setCenter(l.getPoint())});a.addOverlay(l);a.setMapType(G_HYBRID_MAP)}}function MRAskDeleteRecord(a){return confirm("Soll der Datensatz mit der Kennung [ "+a+" ] gelöscht werden?")}function MRCheckWomenMenExclusive(c){var a=$(c).is(":checked");$("input[name='womenonly_01']").attr("checked",false);$("input[name='menonly_01']").attr("checked",false);$(c).attr("checked",a)}function MRUnsetPrice(){if($("input[name='askingprice_01']").is(":checked")){$("input[name='price']").val("")}}function MRUnsetAskingPrice(){if($("input[name='price']").val()!=""){$("input[name='askingprice_01']").attr("checked",false)}}function MRSelectEvent(c){var j=$("#"+c);var a=j.val();var h=ajaxUrl+"ajaxGetEvent="+a;$.getJSON(encodeURI(h),function(k){$("#date").val(k.date_start);$("#trip_location_to_search").val(k.location);$("#trip_location_to").val(k.locationid);MRGetMeetingpointsForLocation("trip_location_to");$("#trip_location_to_meetingpoint_newlink").show();MRShowTripInMap("trip_location_from","trip_location_to");MRGetEventsForLocation("trip_location_to",a);$("#trip_location_from_search").focus()})}function MRUpdateLocationCoordinates(j){$("#adjust_coordinates").show();initializeMapById("locationmap");var l=maps.locationmap;if(j.elements.coordinate.value==""){var c=new GClientGeocoder();var n=/^[0-9\.]{0,5} ?(.+)/i;n.exec(j.elements.location.value);var m=RegExp.$1.replace(/\(|\)/g,"");var k=j.elements.zip.value+" "+m;c.getLatLng(k,function(o){if(o!=null){j.elements.coordinate.value="("+o.y+","+o.x+")";MRUpdateLocationCoordinates(j)}else{alert("Keine Koordinaten gefunden")}})}else{var h=getLatLngFromCoordinates(j.elements.coordinate.value);l.setCenter(new GLatLng(h[0],h[1]),14);var a=new GMarker(new GLatLng(h[0],h[1]),{draggable:true});GEvent.addListener(a,"dragstart",function(){l.closeInfoWindow()});GEvent.addListener(a,"dragend",function(){j.elements.coordinate.value="("+a.getPoint().lat()+","+a.getPoint().lng()+")";l.setCenter(a.getPoint())});l.addOverlay(a);l.setMapType(G_HYBRID_MAP)}}function MRUpdateEventCoordinates(j){$("#adjust_coordinates").show();initializeMapById("locationmap");var l=maps.locationmap;if(j.elements.coordinate.value==""){var c=new GClientGeocoder();var n=/, [0-9\.]* ?(.+)/i;n.exec(j.elements.locationSearch.value);var m=RegExp.$1.replace(/\(|\)/g,"");var k=m+", "+j.elements.locationdetail.value;c.getLatLng(k,function(o){if(o!=null){j.elements.coordinate.value="("+o.y+","+o.x+")";MRUpdateEventCoordinates(j)}else{alert("Keine Koordinaten gefunden")}})}else{var h=getLatLngFromCoordinates(j.elements.coordinate.value);l.setCenter(new GLatLng(h[0],h[1]),14);var a=new GMarker(new GLatLng(h[0],h[1]),{draggable:true});GEvent.addListener(a,"dragstart",function(){l.closeInfoWindow()});GEvent.addListener(a,"dragend",function(){j.elements.coordinate.value="("+a.getPoint().lat()+","+a.getPoint().lng()+")";l.setCenter(a.getPoint())});l.addOverlay(a);l.setMapType(G_HYBRID_MAP)}}function MRShowEventsInMap(c){var a=null;if($("#"+c).is(":visible")){$("#"+c).hide()}else{$("#"+c).show();if(a==null){initializeMapById(c);var a=maps[c]}var h={};h.width=20;h.height=20;h.primaryColor="#0DC1E4";h.labelSize=0;h.labelColor="#ffffff";h.shape="circle";var j=ajaxUrl+"ajaxGetFutureEventsForMap=1";$.getJSON(encodeURI(j),function(o){if(!isError(o)){for(var n=0;n<o.length;n++){h.label=o[n]["tripcount"];var m=MapIconMaker.createFlatIcon(h);html="<div>"+((o[n]["date_end"]==null)?Date.parse(o[n]["date_start"]).toString("dd.MM.yyyy"):Date.parse(o[n]["date_start"]).toString("dd.MM")+" - "+Date.parse(o[n]["date_end"]).toString("dd.MM.yyyy"))+", "+o[n]["location"]+"</div>";html+='<h2 class="black" style="margin-top: 4px;">'+o[n]["event"]+"</h2>";html+='<div class="vsstartlocation">&raquo; <a href="'+rootUrl+"scripts/trip/trips2event.php?eid="+o[n]["event_id"]+'">Hier will ich hin</a></div>';var k=new GPoint(+o[n]["lng"],+o[n]["lat"]);var l=createMarker(k,m,html);a.addOverlay(l)}a.zoomToMarkers(5,2)}})}}function MRTranslate(a){var h=a.id;var c=ajaxUrl+"ajaxGetTranslationForm="+h;$.getJSON(encodeURI(c),function(j){overlib(j,STICKY);$("#toBeTranslated").html($("#"+h).html())})}function MRSubmitTranslation(c){var a=$(c).serialize();var h=ajaxUrl+"ajaxSubmitTranslation=1";$.post(h,a);cClick();return false}function MRSetEnddate(c,a){if($(c).val()==""){$(c).val($("#"+a).val())}}function MRCheckUsernameAvialable(c){var j=c.value;var a=c.name+"_available";$("#"+a).hide();if(j!=undefined&&j!=""){var h=ajaxUrl+"ajaxCheckUsernameAvialable="+encodeURI(j);$.getJSON(encodeURI(h),function(k){$("#"+a).show(300);if(!isError(k)){$("#"+a).html(k.message);$("#"+a).removeClass("red");$("#"+a).addClass("green")}else{$("#"+a).html(k.message);$("#"+a).removeClass("green");$("#"+a).addClass("red")}})}}function MRAdjustTextarea(a){var c=($(a).val().length+1)-(a.cols/2);var h=a.rows*a.cols;if(c>h){a.rows=Math.ceil(+c/a.cols)}if(c<h){a.rows=Math.ceil(+c/a.cols)}}function MRShowTweets(c,h){var a="http://twitter.com/status/user_timeline/"+c+".json?count=5&callback=?";if($("#"+h).is(":visible")){$("#"+h).fadeOut(500).html("")}else{$.getJSON(a,function(j){$("#"+h).html("").fadeIn(1000);$.each(j,function(k,l){if(k==0){$("#"+h).append("<br/><div style='float: left;'><a href='http://twitter.com/"+c+"' target='_blank'><img style='margin: 0 10px 10px 0;width: 48px; height: 48px;' src='"+l.user.profile_image_url+"'/></a></div>")}$("#"+h).append("<div style='float: left; width: 420px; margin-bottom: 5px; border-bottom: 1px dotted #e0e0e0;'>"+l.text.linkify()+" <span class='smaller nobr' style='color: #a0a0a0;'>("+relativeTime(l.created_at)+")</span></div>")});$("#"+h).append("<div style='clear: both;'>&raquo; <a href=\"javascript: MRShowTweets('"+c+"', '"+h+"');\">Tweets ausblenden</a></div>")})}}function MRShowTripsFromLocation(k,c,h,a){if(k==null||c==null){var j=$("#tripsFromLocation_coords").val().split(",");k=j[0];c=j[1]}$(".LOADERICON").show();$("#locationAwareBrowsing").hide();var l=ajaxUrl+"ajaxGetTripsFromLocation=1&lat="+k+"&lng="+c+"&lid="+h+"&r="+a;$.getJSON(encodeURI(l),function(u){$(".tripsFromLocationRadius").html(a);$("#tripsFromLocation_coords").val(k+","+c);$("#tripsFromLocationTable > tbody tr.dynitem").remove();$("#tripsFromLocationTable").hide();if(u.length>0){$("#tripsFromLocationTable").show();$("#tripsFromLocationNothingFound").hide()}else{$("#tripsFromLocationTable").hide();$("#tripsFromLocationNothingFound").show()}for(var n=0;n<u.length;n++){var m=date2Array(u[n]["date"]);if(u[n]["frequency"]=="onetime"){var x=(new Date(m[0],m[1]-1,m[2])).format("dd.mm.yy")}else{var x=u[n]["daysofweek"]}x+=", "+u[n]["time"].substring(0,5);var q="<img src='"+rootUrl+"icons/"+u[n]["type"]+".png' alt='Typ'/>";var p="";if(u[n]["whatfor_person"]!=null){p+="<img src='"+rootUrl+"icons/"+u[n]["whatfor_person"]+".png' alt='Wofür'/> "}if(u[n]["whatfor_object"]!=null){p+="<img src='"+rootUrl+"icons/"+u[n]["whatfor_object"]+".png' alt='Wofür'/> "}var y="<img align='absmiddle' src='"+rootUrl+"icons/"+u[n]["frequency"]+".png' alt='Frequenz'/>";var t=(u[n]["askingprice_01"]=="t")?"VHB":(+u[n]["price"]).numberFormat("0.00");var z="<tr class='dynitem'><td class='center'><a href='"+rootUrl+"scripts/trip/tripdetail.php?tid="+u[n]["trip_id"]+"&slid="+u[n]["startlocationid"]+"&dlid="+u[n]["destlocationid"]+"'>"+u[n]["trip_id"]+"</a></td><td>"+q+"</td><td>"+p+"</td><td>"+(u[n]["start"].replace(/^DE, [0-9\.]*/,""))+"</td><td>"+(u[n]["dest"].replace(/^DE, [0-9\.]*/,""))+"</td><td class='nobr'>"+y+" "+x+"</td><td class='rightalign lastcolumn'>"+t+"</td></tr>";$("#tripsFromLocationTable > tbody").append(z)}$("#tripsFromLocation").show();var w=false;if(maps.tripsFromLocation_map==undefined){initializeMapById("tripsFromLocation_map");w=true}var o=maps.tripsFromLocation_map;var s=new GMarker(new GLatLng(k,c),{draggable:true});GEvent.addListener(s,"dragstart",function(){o.closeInfoWindow()});GEvent.addListener(s,"dragend",function(){var A=$(".tripsFromLocationRadius:first").html();MRShowTripsFromLocation(s.getPoint().lat(),s.getPoint().lng(),"",A)});if(w){o.addOverlay(s);GEvent.addListener(o,"click",function(B,C){var A=$(".tripsFromLocationRadius:first").html();s.setLatLng(C);MRShowTripsFromLocation(C.lat(),C.lng(),"",A)})}o.setCenter(new GLatLng(k,c));$(".LOADERICON").hide()})}function MRShowTripsFromHere(a){$("#tripsFromLocation").hide();if($("#tripsFromLocation").length){if(a==undefined){a=10}if(navigator.geolocation!=undefined){navigator.geolocation.getCurrentPosition(function(h){MRShowTripsFromLocation(h.coords.latitude,h.coords.longitude,"",a)},function(h){$("#locationAwareBrowsing").show()})}else{if(google.loader.ClientLocation){var c=google.loader.ClientLocation;MRShowTripsFromLocation(c.latitude,c.longitude,"",a)}}}else{if(navigator.geolocation==undefined){$("#locationAwareBrowsing").show()}}}function MREmptyOnSameStartDate(c,a){if($(c).val()==$("#"+a).val()){$(c).val("")}}function MRCheckRailway(c){if($(c).is(":checked")){$("#trcarid").hide();$("#trnewcar").hide()}else{var a=$("#"+c.form.id+" input[name='type']:checked").val();if(a=="offer"){$("#trcarid").show();$("#trnewcar").show();showNewCarFields(c.form.carid)}}}function Location(){this.timeout=new Array();this.res=null;this.resultId=new Array();this.loaderId=new Array();this.field=new Array();this.idField=new Array();this.oldvalue=new Array();this.typeWaitTime=800;this.minLength=2;this.originalInput=new Array();this.search=function(m,l,k){var c=m.attr("id");this.field[c]=m;this.idField[c]=$("#"+c+"_id");var a=m.val();if(this.idField[c].val()>0){var j=m.val().charAt(m.val().length-1);if(k.keyCode<=46){j="";if(k.keyCode==8){this.originalInput[c]=this.originalInput[c].substring(0,this.originalInput[c].length-1)}}a=this.originalInput[c]+j;m.val(a)}this.originalInput[c]=m.val();this.resultId[c]=m.attr("id")+"_result";this.loaderId[c]=m.attr("id")+"_loader";if($("#"+this.loaderId[c]).length==0){m.after('<img src="'+rootUrl+'icons/smallloader.gif" alt="+" id="'+this.loaderId[c]+'"/>')}if(a.length>this.minLength){$("#"+this.loaderId[c]).show()}else{$("#"+this.loaderId[c]).hide()}if($("#"+this.resultId[c]).length>0){$("#"+this.resultId[c]).html("").hide()}else{m.after('<div class="sResults" id="'+this.resultId[c]+'"></div>')}var h=true;$("#julian").html(this.oldvalue[c]+" => "+a+" :: "+h);if(this.oldvalue[c]==a){h=false;$("#"+this.loaderId[c]).hide()}this.oldvalue[c]=a;if(this.timeout[c]!=undefined){clearTimeout(this.timeout[c])}this.timeout=new Array();this.timeout[c]=setTimeout(function(){this.timeout=undefined;if(a.length>l.minLength&&h){if(this.res==undefined){this.res=new Array()}this.res[c]=new Array();var n=ajaxUrl+"ajaxSearchLocation2="+a;$.getJSON(encodeURI(n),function(p){var o="";if(p.length==0){o="Es wurde keine Stadt gefunden"}else{if(p.length==1){}else{o="Oder doch eine dieser <a href=\"javascript: loc.showAlternativeLocations('"+c+"');\">"+p.length+" Städte</a>?"}}if(p.length>0){m.val(p[0]["name"]);l.idField[c].val(p[0]["location_id"]);if(l.res==null){l.res=new Array()}l.res[c]=p;l.confirm(m);l.oldvalue[c]=l.originalInput[c]}$("#"+l.loaderId[c]).hide();if(o!=""&&m.hasClass("focusedfield")){$("#"+l.resultId[c]).html(o).show()}else{$("#"+l.resultId[c]).html(o).hide()}})}},this.typeWaitTime)};this.search2=function(l,k,j){var c=l.attr("id");this.field[c]=l;this.idField[c]=$("#"+c+"_id");var a=l.val();this.resultId[c]=l.attr("id")+"_result";this.loaderId[c]=l.attr("id")+"_loader";if($("#"+this.loaderId[c]).length==0){l.after('<img src="'+rootUrl+'icons/smallloader.gif" alt="+" id="'+this.loaderId[c]+'"/>')}var h=true;if(j.keyCode>=16&&j.keyCode<=46){h=false}if(a.length>this.minLength&&h){$("#"+this.loaderId[c]).show()}else{$("#"+this.loaderId[c]).hide()}if($("#"+this.resultId[c]).length>0){}else{l.after('<div class="sResults" id="'+this.resultId[c]+'"></div>')}if(this.timeout[c]!=undefined){clearTimeout(this.timeout[c])}this.timeout=new Array();this.timeout[c]=setTimeout(function(){this.timeout=undefined;if(a.length>k.minLength&&h){if(this.res==undefined){this.res=new Array()}this.res[c]=new Array();var m=ajaxUrl+"ajaxSearchLocation2="+a;$.getJSON(encodeURI(m),function(n){if(n.length>0){k.idField[c].val(n[0]["location_id"]);if(k.res==null){k.res=new Array()}k.res[c]=n;loc.showAlternativeLocations(c)}$("#"+k.loaderId[c]).hide()})}},this.typeWaitTime)};this.showAlternativeLocations=function(c){var h="";for(var a=0;a<this.res[c].length;a++){h+='<a class="'+((a==0)?"bold":"")+'" href="javascript: loc.setLocation('+this.res[c][a]["location_id"]+", '"+c+"');\">"+this.res[c][a]["name"].replace(this.field[c].val(),"<b></b>")+"</a><br/>"}$("#"+this.resultId[c]).html(h).show()};this.setLocation=function(h,a){for(var c=0;c<this.res[a].length;c++){if(this.res[a][c]["location_id"]==h){this.field[a].val(this.res[a][c]["name"]);this.idField[a].val(this.res[a][c]["location_id"]);$("#"+this.resultId[a]).html("").hide();this.confirm(this.field[a]);break}}};this.confirm=function(a){a.addClass("confirm");setTimeout(function(){a.removeClass("confirm")},500)}}function disableCtrlModifer(a){var h={a:0,c:0,x:0,v:0};var j=(window.event)?window.event.ctrlKey:a.ctrlKey;var c=(window.event)?window.event.keyCode:a.which;c=String.fromCharCode(c).toLowerCase();return(j&&(c in h))?false:true}function Mitreisen(){this.getLocationBasedEvents=function(a){var j=ajaxUrl+"ajaxGetLocationBasedEvents=1";var h=null;if(google.loader.ClientLocation){h=google.loader.ClientLocation}if(h!=null){var c={count:a,lat:h.latitude,lng:h.longitude};$.getJSON(encodeURI(j),c,function(m){if(!isError(m)){var l="";for(var k=0;k<m.length;k++){l+="<div class='separator'><b><a href='"+rootUrl+"scripts/trip/trips2event.php?eid="+m[k]["event_id"]+"'>"+m[k]["name"]+"</a></b><br/>"+dateFormat(m[k]["date_start"],"dd.mm")+" - "+dateFormat(m[k]["date_end"],"dd.mm.yy")+", "+m[k]["location"]+" ("+m[k]["radius"]+" km)</div>"}$("#widget-locationbasedevents").html(l)}})}};this.getDashboard=function(){var h=ajaxUrl+"ajaxGetDashboard=1";var c=null;if(google.loader.ClientLocation){c=google.loader.ClientLocation}if(c!=null){var a={event:{count:5},location:{count:5},locationbased:{radius:20},lat:c.latitude,lng:c.longitude};$.getJSON(encodeURI(h),a,function(q){if(!isError(q)){var x="";for(var o=0;o<q.event.length;o++){var n=dateFormat(new Date(q.event[o]["date_start"].replace(/-/g,"/")),"dd.mm.yyyy");if(q.event[o]["date_end"]!=null){n=dateFormat(new Date(q.event[o]["date_start"].replace(/-/g,"/")),"dd.mm.yyyy")+" - "+dateFormat(new Date(q.event[o]["date_end"].replace(/-/g,"/")),"dd.mm.yy")}x+="<div class='separator'><b><a href='"+rootUrl+"scripts/trip/trips2event.php?eid="+q.event[o]["event_id"]+"'>"+q.event[o]["name"]+"</a></b><br/>"+n+", "+q.event[o]["location"]+" ("+q.event[o]["radius"]+" km)</div>"}$("#widget-locationbasedevents").html(x);var s="";for(var o=0;o<q.location.length;o++){s+="<div class='separator'><b>"+q.location[o]["location"]+"</b><br/>Entfernung Luftlinie ca. "+q.location[o]["radius"]+" km</div>"}$("#widget-newlocations").html(s);if(q.locationFromLatLng!=null){$(".currentLocation").html(" (in der Nähe von "+q.locationFromLatLng["name"]+")")}var u=false;$("#widget-locationbasedtrips").hide();$("#widget-locationbasedtrips-table > tbody tr.dynitem").remove();for(var k=0;k<q.locationbased.length;k++){u=true;var j=date2Array(q.locationbased[k]["date"]);if(q.locationbased[k]["frequency"]=="onetime"){var t=(new Date(j[0],j[1]-1,j[2])).format("dd.mm.yy")}else{var t=q.locationbased[k]["daysofweek"]}t+=", "+q.locationbased[k]["time"].substring(0,5);var m="<img src='"+rootUrl+"icons/"+q.locationbased[k]["type"]+".png' alt='Typ'/>";var l="";if(q.locationbased[k]["whatfor_person"]!=null){l+="<img src='"+rootUrl+"icons/"+q.locationbased[k]["whatfor_person"]+".png' alt='Wofür'/> "}if(q.locationbased[k]["whatfor_object"]!=null){l+="<img src='"+rootUrl+"icons/"+q.locationbased[k]["whatfor_object"]+".png' alt='Wofür'/> "}var w="<img align='absmiddle' src='"+rootUrl+"icons/"+q.locationbased[k]["frequency"]+".png' alt='Frequenz'/>";var p=(q.locationbased[k]["askingprice_01"]=="t")?"VHB":(+q.locationbased[k]["price"]).numberFormat("0.00");var y="<tr class='dynitem'><td class='center'><a href='"+rootUrl+"scripts/trip/tripdetail.php?tid="+q.locationbased[k]["trip_id"]+"&slid="+q.locationbased[k]["startlocationid"]+"&dlid="+q.locationbased[k]["destlocationid"]+"'>Details</a></td><td>"+m+"</td><td>"+l+"</td><td>"+(q.locationbased[k]["start"].replace(/^DE, [0-9\.]*/,""))+"</td><td>"+(q.locationbased[k]["dest"].replace(/^DE, [0-9\.]*/,""))+"</td><td class='nobr'>"+w+" "+t+"</td><td class='rightalign lastcolumn'>"+p+"</td></tr>";$("#widget-locationbasedtrips-table > tbody").append(y)}if(u){$("#widget-locationbasedtrips").show()}$.scrollTo(355)}})}};this.validateFacebookRegistration1=function(c,a){var h=ajaxUrl+"ajaxCheckUsernameAvialableFacebook="+encodeURI(c.mr_loginname)+"&callback=?";$.getJSON(h,function(j){if(isError(j)){a({mr_loginname:j.message})}else{a()}})};this.validateFacebookRegistration2=function(a){errors={};if(a.mr_password==""){errors.mr_password="You did not enter a password"}else{if((a.mr_password.length<6)){errors.mr_password="The password is to short"}}return errors};this.selectText=function(a){$(a).select()}}var mitreisen=new Mitreisen();function getPdMarkerRevisionInfo(){var c="<br/>";var a="2.03  10/02/07 - fixed zindex bug (setMarkerZIndex, topMarkerZIndex)"+c+"2.02  05/22/07 - fixed minor issues (blink, initDetailWin)"+c+"2.01  04/29/07 - improved left hand side detail window positioning, uses new Google setImage &amp; show routines for added reliability, fixed zoomToMarkers for single marker case."+c+"2.00  04/22/07 - fix for setImage when using Explorer 7."+c+"1.99f 07/09/06 - zoomToMarkers now takes into account markers not displayed."+c+"1.99e 05/05/06 - fixed zoomed tooltip positioning &amp; non-centered marker graphics."+c+"1.99d 05/01/06 - fixed display &amp; blink when defining .transparent."+c+"1.99c 04/25/06 - added display and blink."+c+"1.99b 04/21/06 - added 'Powered By' version &amp; marker count display."+c+"1.99a 04/18/06 - revised for Google Maps API Version 2, GMap2 required."+c+"0.99c 01/30/06 - added setDetailWinClass and resetDetailWinClass."+c+"0.99a 10/12/05 - now handles maps in containers with undefined widths"+c+"define a div with id 'pdmarkerwork' to reduce flicker"+c+"0.99  10/03/05 - added setImageEnabled, allowLeftTooltips (global)"+c+"0.98  09/30/05 - fixed zoomToMarkers"+c+"0.97  09/24/05 - added setHoverImage, setShowDetailOnClick, setDetailWinHTML, showDetailWin, closeDetailWin"+c+"0.96  09/22/05 - added setTooltipHiding, getTooltipHiding"+c+"0.95  09/20/05 - handle zoom for lingering tooltips mouseOutEnabled(false) disables setImage and restoreImage"+c+"0.94  09/20/05 - added setTooltipClass and resetTooltipClass"+c+"0.93  09/19/05 - added slopPercentage [optional] parameter to zoomToMarkers"+c+"0.92  09/18/05 - added getMouseOutEnabled, setMouseOutEnabled"+c+"0.91  09/17/05 - fixed setOpacity";return a}function getPdMarkerVersion(){return getPdMarkerRevisionInfo().substring(0,15)}function getPdMarkerShortVersion(){return getPdMarkerRevisionInfo().substring(0,5)}var APIkey="";function getGoogleMapsVersion(){var l,j,h,m;var k="unknown";if(document.getElementsByTagName){for(l=0;(j=document.getElementsByTagName("script")[l]);l++){if(j.getAttribute("src")){h=j.getAttribute("src");m=h.indexOf("/mapfiles/maps");d=h.indexOf("http://maps.google.com/maps?file=api");e=h.indexOf("key=");f=h.indexOf("/mapfiles/");g=h.indexOf("/maps");if(m>0){k=parseFloat(h.substring(m+14))}else{if(f>0){k="2."+h.substring(f+10,g)}}if(d>=0){if(e>0){APIkey=h.substring(e+4)}}}}}return k}function latLongToPixel(c,h,a){return c.fromLatLngToDivPixel(h)}var pdMarkerExtList=[];function PdMarkerAddToExtList(a){pdMarkerExtList.push(a)}function PdMarkerRemoveFromExtList(c){for(var a=0;a<pdMarkerExtList.length;a++){if(pdMarkerExtList[a].internalId==c){pdMarkerExtList.splice(a,1)}}}function PdMarkerFindInExtList(c){for(var a=0;a<pdMarkerExtList.length;a++){if(pdMarkerExtList[a].internalId==c){return pdMarkerExtList[a]}}}function PdMarkerClose(c){for(var a=0;a<pdMarkerExtList.length;a++){if(pdMarkerExtList[a].internalId==c){pdMarkerExtList[a].closeDetailWin();pdMarkerExtList.splice(a,1)}}}function PdMarkerBlinkOnOff(c){var a=PdMarkerFindInExtList(c);if(a){if(!a.blinking){return}a.blinkOn=!a.blinkOn;a.display(a.blinkOn);setTimeout("PdMarkerBlinkOnOff("+a.getId()+");",a.blinkSpeed)}}function isPdMarker(c){if(c.isMarker){return true}return false}function getPdMarkerCount(c){if(c.pdMarkers){return c.pdMarkers.length}return 0}GMap2.prototype.getMarkerById=function(h){var c=getPdMarkerCount(this);for(var a=0;a<c;a++){if(isPdMarker(this.pdMarkers[a])){if(this.pdMarkers[a].internalId==h){this.cursor=a;return this.pdMarkers[a]}}}return null};GMap2.prototype.getFirstMarker=function(){var c=getPdMarkerCount(this);for(var a=0;a<c;a++){if(isPdMarker(this.pdMarkers[a])){this.cursor=a;return this.pdMarkers[a]}}return null};GMap2.prototype.getNextMarker=function(){var c=getPdMarkerCount(this);if(c>0){if(this.cursor>=0){for(var a=this.cursor+1;a<c;a++){if(isPdMarker(this.pdMarkers[a])){this.cursor=a;return this.pdMarkers[a]}}}}return null};GMap2.prototype.getNthMarker=function(h){var c=getPdMarkerCount(this);for(var a=0;a<c;a++){if(isPdMarker(this.pdMarkers[a])){h--;if(h==0){this.cursor=a;return this.pdMarkers[a]}}}return null};GMap2.prototype.getMarkerCount=function(){return getPdMarkerCount(this)};GMap2.prototype.boxMap=function(a,h){var c=this.spec;var j=c.getLowestZoomLevel(a,h,this.viewSize);this.centerAndZoom(new GPoint(a.x,a.y),j)};GMap2.prototype.zoomToMarkers=function(p,o){var q=0;var k,t,s,m,j,l,h,u;var n=this.getFirstMarker();while(n!=null){if(!n.isHidden()){k=n.getPoint();t=k.lat();s=k.lng();if(q==0){m=t;j=t;l=s;h=s}else{if(t<m){m=t}if(t>j){j=t}if(s<l){l=s}if(s>h){h=s}}q++}n=this.getNextMarker()}if(q==1){this.setCenter(new GLatLng(t,s),this.getZoom())}else{if(q>1){var c=new GLatLng((m+j)/2,(l+h)/2);u=new GSize(Math.abs(j-m),Math.abs(h-l));slopWid=0;slopHgt=0;if(typeof p!="undefined"){slopWid=u.width*p/200;slopHgt=u.height*p/200;u.width*=1+p/100;u.height*=1+p/100}deltaHgt=0;if(typeof o!="undefined"){deltaHgt=u.height*o/100;c=new GLatLng(c.lat()+deltaHgt,c.lng())}var a=new GLatLngBounds(new GLatLng(m-slopHgt,l-slopWid),new GLatLng(j+slopHgt,h+slopWid));var w=this.getBoundsZoomLevel(a);this.setCenter(c,w)}}};function shorten(a){var c=1000000;return Math.round(a*c)/c}function poweredByClick(k){var a=k.getCenter();var h=k.getBounds().toSpan();var j=k.getZoom();var c="http://maps.google.com/maps?ll="+a.lat()+","+a.lng()+"&spn="+shorten(h.lat())+","+shorten(h.lng())+"&z="+j+"&key="+APIkey;document.location=c}function poweredByMouseover(l){var h=l.getFirstMarker();var k=l.getBounds();var j=0;var c=0;while(h!=null){if(!h.isHidden()){var a=h.getPoint();if(k.contains(a)){j++}c=c+1}h=l.getNextMarker()}var m=l.poweredByTitle+" ("+j+" markers of "+c+" visible)";l.poweredByObj.setAttribute("title",m);l.poweredByObj.setAttribute("alt",m)}function getPoweredBy(j){try{var c="GMap "+getGoogleMapsVersion()+" & PdMarker "+getPdMarkerShortVersion();j.poweredByTitle=c;var a=document.createElement("img");a.setAttribute("src","http://www.google.com/intl/en_ALL/mapfiles/transparent.gif");a.setAttribute("width",62);a.setAttribute("alt",c);a.setAttribute("title",c);a.setAttribute("height",30);a.style.display="block";a.style.position="absolute";a.style.left="2px";a.style.bottom="0px";a.style.width="62px";a.style.height="30px";a.style.cursor="pointer";a.style.zIndex=600001;a.onclick=function(){poweredByClick(j)};a.onmouseover=function(){poweredByMouseover(j)};j.getPane(G_MAP_FLOAT_PANE).parentNode.parentNode.appendChild(a);return a}catch(h){}return true}function setPoweredBy(a){if(!a.poweredByObj){getGoogleMapsVersion();a.poweredByObj=getPoweredBy(a)}}function PdMarkerNamespace(){var userAgent=navigator.userAgent.toLowerCase();var n4=(document.layers);var n6=(document.getElementById&&!document.all);var ie=(document.all);var o6=(userAgent.indexOf("opera")!=-1);var safari=(userAgent.indexOf("safari")!=-1);var msie=(userAgent.indexOf("msie")!=-1)&&(userAgent.indexOf("opera")==-1);var msiePre7=false;if(msie){msiePre7=userAgent.substr(userAgent.indexOf("msie")+5,2)<7}var nextMarkerId=10;var permitLeft=true;var icon=new GIcon();icon.shadow="http://www.google.com/mapfiles/shadow50.png";icon.iconSize=new GSize(20,34);icon.shadowSize=new GSize(37,34);icon.iconAnchor=new GPoint(9,34);icon.infoWindowAnchor=new GPoint(9,2);icon.infoShadowAnchor=new GPoint(18,25);icon.image="http://www.google.com/mapfiles/marker.png";function PdMarker(a,b,tooltip){this.inheritFrom=GMarker;if(typeof b=="undefined"){b=icon}this.inheritFrom(a,b);if(typeof tooltip!="undefined"){this.pendingTitle=tooltip}else{this.pendingTitle=""}if(typeof b!="undefined"){this.oldImagePath=b.image}else{this.oldImagePath="http://www.google.com/mapfiles/marker.png"}this.internalId=nextMarkerId;nextMarkerId+=1;this.zIndexSaved=false;this.pendingCursor="";this.percentOpacity=70;this.mouseOutEnabled=true;this.setImageOn=true;this.hidingEnabled=true;this.showDetailOnClick=true;this.detailOpen=false;this.userData="";this.displayed=true}PdMarker.prototype=new GMarker(new GLatLng(1,1));function addMarkerToMapList(map,marker){try{if(map.pdMarkers.length){}}catch(e){map.pdMarkers=new Array()}map.pdMarkers.push(marker)}function removeMarkerFromMapList(map,marker){var id=marker.internalId;for(var i=0;i<map.pdMarkers.length;i++){if(map.pdMarkers[i].internalId==id){map.pdMarkers.splice(i,1);return}}}PdMarker.prototype.initialize=function(a){if(typeof a=="GMap"){GLog.write("PdMarker requires GMap2");return}addMarkerToMapList(a,this);try{GMarker.prototype.initialize.call(this,a);this.isMarker=true;if(this.pendingTitle.length>0){this.setTitle(this.pendingTitle)}if(this.pendingCursor.length>0){this.setCursor(this.pendingCursor)}this.map=a;setPoweredBy(a);GEvent.bindDom(this,"mouseover",this,this.onMouseOver);GEvent.bindDom(this,"mouseout",this,this.onMouseOut);GEvent.bindDom(this,"click",this,this.onClick);GEvent.bind(this.map,"zoomend",this,this.reZoom)}catch(e){alert("PdMarker initialize error: "+e)}};PdMarker.prototype.allowLeftTooltips=function(a){permitLeft=a};PdMarker.prototype.reZoom=function(){var didSet=false;if(this.tooltipObject){if(this.tooltipObject.style.display=="block"){setTTPosition(this);didSet=true}}if(this.detailObject){if(!didSet){setTTPosition(this)}setDetailPosition(this)}};PdMarker.prototype.setId=function(id){this.internalId=id};PdMarker.prototype.getId=function(){return this.internalId};PdMarker.prototype.setName=function(a){this.name=a};PdMarker.prototype.getName=function(){if(this.name){return this.name}else{return null}};PdMarker.prototype.setUserData=function(a){this.userData=a};PdMarker.prototype.getUserData=function(){if(this.userData){return this.userData}else{return""}};PdMarker.prototype.setUserData2=function(a){this.userData2=a};PdMarker.prototype.getUserData2=function(){if(this.userData2){return this.userData2}else{return""}};PdMarker.prototype.setImageEnabled=function(a){this.setImageOn=a};var PdMIN="";var PdMIA="";function PdCompPdMIN(marker){if(PdMIN.length==0){for(var i in marker){if(eval("typeof marker."+i)=="object"){try{if(eval("typeof marker."+i+"[0].src")!="undefined"){PdMIA="this."+i;PdMIN=PdMIA+"[0]"}}catch(e){}}}}}PdMarker.prototype.setImageOld=function(a){var msFilter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+a+'")';if(this.mouseOutEnabled&&this.setImageOn){PdCompPdMIN(this);try{if(this.oldImagePath.length==0){eval("this.oldImagePath = "+PdMIN+".src")}if(msie&&msiePre7){eval(PdMIN+".style.filter = msFilter")}else{eval(PdMIN+".src = a")}}catch(e){}}};PdMarker.prototype.setImage=function(a){if(this.mouseOutEnabled&&this.setImageOn){GMarker.prototype.setImage.call(this,a)}};PdMarker.prototype.restoreImage=function(){if(this.mouseOutEnabled&&this.setImageOn&&this.oldImagePath.length>0){this.setImage(this.oldImagePath)}};PdMarker.prototype.display=function(a){if(a){this.show()}else{this.hide()}};PdMarker.prototype.blink=function(a,b){if(a){this.blinkOn=true;this.blinkSpeed=b;if(!this.blinking){this.blinking=a;PdMarkerAddToExtList(this);PdMarkerBlinkOnOff(this.getId())}}else{this.blinking=a;this.display(true);PdMarkerRemoveFromExtList(this)}};PdMarker.prototype.setIcon=function(a){this.remove();this.icon=a;this.initialize(this.map);this.redraw(true)};PdMarker.prototype.setMarkerZIndex=function(a){PdCompPdMIN(this);if(!this.zIndexSaved){this.zIndexSaved=true;this.oldZIndex=eval(PdMIN+".style.zIndex")}eval(PdMIN+".style.zIndex = a");this.redraw(true)};PdMarker.prototype.topMarkerZIndex=function(){this.setMarkerZIndex(600000)};PdMarker.prototype.restoreMarkerZIndex=function(){PdCompPdMIN(this);if(this.zIndexSaved){this.zIndexSaved=false;eval(PdMIN+".style.zIndex = this.oldZIndex");this.redraw(true)}};PdMarker.prototype.onInfoWindowOpen=function(){this.hideTooltip();GMarker.prototype.onInfoWindowOpen.call(this)};PdMarker.prototype.setHoverImage=function(a){this.hoverImage=a};var inMouseOver=false;PdMarker.prototype.onMouseOver=function(){if(inMouseOver){return}inMouseOver=true;if(this.hoverImage){this.setImage(this.hoverImage)}if(!this.detailOpen){this.showTooltip()}inMouseOver=false};PdMarker.prototype.onMouseOut=function(){if(this.hoverImage){this.restoreImage()}if(!this.detailOpen){if(this.mouseOutEnabled){this.hideTooltip()}}};PdMarker.prototype.setMouseOutEnabled=function(a){this.mouseOutEnabled=a};PdMarker.prototype.getMouseOutEnabled=function(){return this.mouseOutEnabled};PdMarker.prototype.setTooltipHiding=function(a){this.hidingEnabled=a};PdMarker.prototype.getTooltipHiding=function(){return this.hidingEnabled};PdMarker.prototype.setTitle=function(a){this.tooltipText="";PdCompPdMIN(this);try{eval(PdMIN+".title = a")}catch(e){this.pendingTitle=a}};PdMarker.prototype.setCursor=function(a){PdCompPdMIN(this);try{eval(PdMIN+".style.cursor = a")}catch(e){this.pendingCursor=a}};PdMarker.prototype.setTooltipClass=function(a){this.pendingClassName=a;if(this.tooltipObject){var showing=(this.tooltipObject.style.display!="none");this.deleteObjects();if(this.tooltipRaw){this.setTooltipNoResize(this.tooltipRaw)}if(showing){this.showTooltip()}}else{if(this.tooltipRaw){this.setTooltipNoResize(this.tooltipRaw)}}};PdMarker.prototype.resetTooltipClass=function(){this.setTooltipClass("markerTooltip")};PdMarker.prototype.getTooltip=function(){try{return this.tooltipRaw}catch(e){return""}};PdMarker.prototype.setTooltipNoResize=function(a){this.setTitle("");var ttClass="markerTooltip";if(this.pendingClassName){ttClass=this.pendingClassName}this.tooltipRaw=a;this.tooltipText="<div class='"+ttClass+"'>"+a+"</div>";if(this.tooltipObject){this.tooltipObject.innerHTML=this.tooltipText}};PdMarker.prototype.setTooltip=function(a){this.setTooltipNoResize(a);this.deleteObjects()};PdMarker.prototype.showTooltip=function(){if(this.tooltipText){if(!this.tooltipObject){initTooltip(this)}setTTPosition(this);this.tooltipObject.style.display="block"}};PdMarker.prototype.hideTooltip=function(){if(this.tooltipObject){if(this.hidingEnabled){this.tooltipObject.style.display="none"}}};PdMarker.prototype.onClick=function(a){if(this.showDetailOnClick&&this.detailWinHTML){this.showDetailWin()}};PdMarker.prototype.setShowDetailOnClick=function(a){this.showDetailOnClick=a};PdMarker.prototype.setDetailWinHTML=function(a){this.detailWinHTML=a};PdMarker.prototype.setDetailWinClass=function(a){this.pendingDetailClassName=a};PdMarker.prototype.resetDetailWinClass=function(){this.setDetailWinClass("markerDetail")};PdMarker.prototype.showDetailWin=function(){if(this.detailOpen){this.closeDetailWin();return}this.hideTooltip();this.setMouseOutEnabled(false);var winClass="markerDetail";if(this.pendingWinClassName){winClass=this.pendingWinClassName}var html="<table><tr><td>"+this.detailWinHTML+"</td><td valign='top'><a class='markerDetailClose' href='javascript:PdMarkerClose("+this.internalId+")'><img src='http://www.google.com/mapfiles/close.gif' width='14' height='13'></a></td></tr></table>";html="<div class='"+winClass+"'>"+html+"</div>";this.detailOpen=true;if(!this.tooltipText){this.ttWidth=150;this.ttHeight=30;setTTPosition(this)}initDetailWin(this,this.ttTop,this.ttLeft,html);PdMarkerAddToExtList(this)};PdMarker.prototype.closeDetailWin=function(){this.detailOpen=false;if(this.detailObject){this.setMouseOutEnabled(true);this.onMouseOut();this.map.getPane(G_MAP_FLOAT_PANE).removeChild(this.detailObject);this.detailObject=null}};PdMarker.prototype.deleteObjects=function(){if(this.tooltipObject){this.map.getPane(G_MAP_FLOAT_PANE).removeChild(this.tooltipObject);this.tooltipObject=null}if(this.detailObject){this.map.getPane(G_MAP_FLOAT_PANE).removeChild(this.detailObject);this.detailObject=null}};PdMarker.prototype.remove=function(a){removeMarkerFromMapList(this.map,this);PdMarkerRemoveFromExtList(this.getId());GMarker.prototype.remove.call(this);this.deleteObjects()};PdMarker.prototype.setOpacity=function(b){if(b<0){b=0}if(b>=100){b=100}var c=b/100;this.percentOpacity=b;var d=document.getElementById(this.objId);if(d){if(typeof(d.style.filter)=="string"){d.style.filter="alpha(opacity:"+b+")"}if(typeof(d.style.KHTMLOpacity)=="string"){d.style.KHTMLOpacity=c}if(typeof(d.style.MozOpacity)=="string"){d.style.MozOpacity=c}if(typeof(d.style.opacity)=="string"){d.style.opacity=c}}};PdMarker.prototype.setOpacityNew=function(b){setObjOpacity(this.objId);this.percentOpacity=b};function setObjOpacity(objId,b){if(b<0){b=0}if(b>=100){b=100}var c=b/100;var d=document.getElementById(objId);if(d){if(typeof(d.style.filter)=="string"){d.style.filter="alpha(opacity:"+b+")"}if(typeof(d.style.KHTMLOpacity)=="string"){d.style.KHTMLOpacity=c}if(typeof(d.style.MozOpacity)=="string"){d.style.MozOpacity=c}if(typeof(d.style.opacity)=="string"){d.style.opacity=c}}}function idToElemId(id){return"ttobj"+id}function initTooltip(theObj){theObj.objId=idToElemId(theObj.internalId);theObj.anchorLatLng=theObj.point;var b=document.createElement("span");theObj.tooltipObject=b;b.setAttribute("id",theObj.objId);b.innerHTML=theObj.tooltipText;var c=document.body;var d=document.getElementById("pdmarkerwork");if(d){c=d}c.appendChild(b);b.style.position="absolute";b.style.bottom="5px";b.style.left="5px";b.style.zIndex=1;if(theObj.percentOpacity){theObj.setOpacity(theObj.percentOpacity)}var tempObj=document.getElementById(theObj.objId);theObj.ttWidth=tempObj.offsetWidth;theObj.ttHeight=tempObj.offsetHeight;c.removeChild(b);b.style.zIndex=600000;b.style.bottom="";b.style.left="";theObj.map.getPane(G_MAP_FLOAT_PANE).appendChild(b)}function initDetailWin(theObj,top,left,html){theObj.detailId="detail"+theObj.internalId;var b=document.createElement("span");theObj.detailObject=b;b.setAttribute("id",theObj.detailId);b.innerHTML=html;b.style.display="block";b.style.position="absolute";b.style.top=top+"px";if(theObj.rightSide){b.style.left=left+"px"}else{b.style.right=-left+"px"}b.style.zIndex=600001;theObj.map.getPane(G_MAP_FLOAT_PANE).appendChild(b)}function setTTPosition(theObj){var gap=5;var map=theObj.map;var pt=theObj.getPoint();var ttPos=latLongToPixel(map,pt,map.getZoom());var theIcon=theObj.getIcon();ttPos.y-=Math.floor(theIcon.iconAnchor.y/2);var rightSide=true;var bounds=map.getBounds();var boundsSpan=bounds.toSpan();var longSpan=boundsSpan.lng();var mapWidth=map.getSize().width;var tooltipWidthInDeg=(theObj.ttWidth+theIcon.iconSize.width+6)/mapWidth*longSpan;if(pt.lng()+tooltipWidthInDeg>bounds.getNorthEast().lng()&&permitLeft){rightSide=false}ttPos.y-=Math.floor(theObj.ttHeight/2);delta=(theIcon.iconSize.width-theIcon.iconAnchor.x)+gap;if(rightSide){ttPos.x+=delta}else{ttPos.x-=delta}theObj.rightSide=rightSide;theObj.ttLeft=ttPos.x;theObj.ttTop=ttPos.y;if(theObj.tooltipObject){if(rightSide){theObj.tooltipObject.style.left=ttPos.x+"px";theObj.tooltipObject.style.right=null}else{theObj.tooltipObject.style.left=null;theObj.tooltipObject.style.right=-ttPos.x+"px"}theObj.tooltipObject.style.top=ttPos.y+"px"}}function makeInterface(a){var b=a||window;b.PdMarker=PdMarker}makeInterface()}PdMarkerNamespace();Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},regexPatterns:{jan:/^jan(uary)?/i,feb:/^feb(ruary)?/i,mar:/^mar(ch)?/i,apr:/^apr(il)?/i,may:/^may/i,jun:/^jun(e)?/i,jul:/^jul(y)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^oct(ober)?/i,nov:/^nov(ember)?/i,dec:/^dec(ember)?/i,sun:/^su(n(day)?)?/i,mon:/^mo(n(day)?)?/i,tue:/^tu(e(s(day)?)?)?/i,wed:/^we(d(nesday)?)?/i,thu:/^th(u(r(s(day)?)?)?)?/i,fri:/^fr(i(day)?)?/i,sat:/^sa(t(urday)?)?/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i,tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600",PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",MDT:"-0700",PDT:"-0800"}};Date.getMonthNumberFromName=function(c){var k=Date.CultureInfo.monthNames,a=Date.CultureInfo.abbreviatedMonthNames,j=c.toLowerCase();for(var h=0;h<k.length;h++){if(k[h].toLowerCase()==j||a[h].toLowerCase()==j){return h}}return -1};Date.getDayNumberFromName=function(c){var l=Date.CultureInfo.dayNames,a=Date.CultureInfo.abbreviatedDayNames,k=Date.CultureInfo.shortestDayNames,j=c.toLowerCase();for(var h=0;h<l.length;h++){if(l[h].toLowerCase()==j||a[h].toLowerCase()==j){return h}}return -1};Date.isLeapYear=function(a){return(((a%4===0)&&(a%100!==0))||(a%400===0))};Date.getDaysInMonth=function(a,c){return[31,(Date.isLeapYear(a)?29:28),31,30,31,30,31,31,30,31,30,31][c]};Date.getTimezoneOffset=function(a,c){return(c||false)?Date.CultureInfo.abbreviatedTimeZoneDST[a.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[a.toUpperCase()]};Date.getTimezoneAbbreviation=function(c,j){var h=(j||false)?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,a;for(a in h){if(h[a]===c){return a}}return null};Date.prototype.clone=function(){return new Date(this.getTime())};Date.prototype.compareTo=function(a){if(isNaN(this)){throw new Error(this)}if(a instanceof Date&&!isNaN(a)){return(this>a)?1:(this<a)?-1:0}else{throw new TypeError(a)}};Date.prototype.equals=function(a){return(this.compareTo(a)===0)};Date.prototype.between=function(h,a){var c=this.getTime();return c>=h.getTime()&&c<=a.getTime()};Date.prototype.addMilliseconds=function(a){this.setMilliseconds(this.getMilliseconds()+a);return this};Date.prototype.addSeconds=function(a){return this.addMilliseconds(a*1000)};Date.prototype.addMinutes=function(a){return this.addMilliseconds(a*60000)};Date.prototype.addHours=function(a){return this.addMilliseconds(a*3600000)};Date.prototype.addDays=function(a){return this.addMilliseconds(a*86400000)};Date.prototype.addWeeks=function(a){return this.addMilliseconds(a*604800000)};Date.prototype.addMonths=function(a){var c=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+a);this.setDate(Math.min(c,this.getDaysInMonth()));return this};Date.prototype.addYears=function(a){return this.addMonths(a*12)};Date.prototype.add=function(c){if(typeof c=="number"){this._orient=c;return this}var a=c;if(a.millisecond||a.milliseconds){this.addMilliseconds(a.millisecond||a.milliseconds)}if(a.second||a.seconds){this.addSeconds(a.second||a.seconds)}if(a.minute||a.minutes){this.addMinutes(a.minute||a.minutes)}if(a.hour||a.hours){this.addHours(a.hour||a.hours)}if(a.month||a.months){this.addMonths(a.month||a.months)}if(a.year||a.years){this.addYears(a.year||a.years)}if(a.day||a.days){this.addDays(a.day||a.days)}return this};Date._validate=function(j,h,a,c){if(typeof j!="number"){throw new TypeError(j+" is not a Number.")}else{if(j<h||j>a){throw new RangeError(j+" is not a valid value for "+c+".")}}return true};Date.validateMillisecond=function(a){return Date._validate(a,0,999,"milliseconds")};Date.validateSecond=function(a){return Date._validate(a,0,59,"seconds")};Date.validateMinute=function(a){return Date._validate(a,0,59,"minutes")};Date.validateHour=function(a){return Date._validate(a,0,23,"hours")};Date.validateDay=function(h,a,c){return Date._validate(h,1,Date.getDaysInMonth(a,c),"days")};Date.validateMonth=function(a){return Date._validate(a,0,11,"months")};Date.validateYear=function(a){return Date._validate(a,1,9999,"seconds")};Date.prototype.set=function(c){var a=c;if(!a.millisecond&&a.millisecond!==0){a.millisecond=-1}if(!a.second&&a.second!==0){a.second=-1}if(!a.minute&&a.minute!==0){a.minute=-1}if(!a.hour&&a.hour!==0){a.hour=-1}if(!a.day&&a.day!==0){a.day=-1}if(!a.month&&a.month!==0){a.month=-1}if(!a.year&&a.year!==0){a.year=-1}if(a.millisecond!=-1&&Date.validateMillisecond(a.millisecond)){this.addMilliseconds(a.millisecond-this.getMilliseconds())}if(a.second!=-1&&Date.validateSecond(a.second)){this.addSeconds(a.second-this.getSeconds())}if(a.minute!=-1&&Date.validateMinute(a.minute)){this.addMinutes(a.minute-this.getMinutes())}if(a.hour!=-1&&Date.validateHour(a.hour)){this.addHours(a.hour-this.getHours())}if(a.month!==-1&&Date.validateMonth(a.month)){this.addMonths(a.month-this.getMonth())}if(a.year!=-1&&Date.validateYear(a.year)){this.addYears(a.year-this.getFullYear())}if(a.day!=-1&&Date.validateDay(a.day,this.getFullYear(),this.getMonth())){this.addDays(a.day-this.getDate())}if(a.timezone){this.setTimezone(a.timezone)}if(a.timezoneOffset){this.setTimezoneOffset(a.timezoneOffset)}return this};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};Date.prototype.isLeapYear=function(){var a=this.getFullYear();return(((a%4===0)&&(a%100!==0))||(a%400===0))};Date.prototype.isWeekday=function(){return !(this.is().sat()||this.is().sun())};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth())};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1})};Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()})};Date.prototype.moveToDayOfWeek=function(a,c){var h=(a-this.getDay()+7*(c||+1))%7;return this.addDays((h===0)?h+=7*(c||+1):h)};Date.prototype.moveToMonth=function(h,a){var c=(h-this.getMonth()+12*(a||+1))%12;return this.addMonths((c===0)?c+=12*(a||+1):c)};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/86400000)};Date.prototype.getWeekOfYear=function(a){var n=this.getFullYear(),h=this.getMonth(),k=this.getDate();var p=a||Date.CultureInfo.firstDayOfWeek;var j=7+1-new Date(n,0,1).getDay();if(j==8){j=1}var c=((Date.UTC(n,h,k,0,0,0)-Date.UTC(n,0,1,0,0,0))/86400000)+1;var o=Math.floor((c-j+7)/7);if(o===p){n--;var l=7+1-new Date(n,0,1).getDay();if(l==2||l==8){o=53}else{o=52}}return o};Date.prototype.isDST=function(){console.log("isDST");return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D"};Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST())};Date.prototype.setTimezoneOffset=function(c){var a=this.getTimezoneOffset(),h=Number(c)*-6/10;this.addMinutes(h-a);return this};Date.prototype.setTimezone=function(a){return this.setTimezoneOffset(Date.getTimezoneOffset(a))};Date.prototype.getUTCOffset=function(){var c=this.getTimezoneOffset()*-10/6,a;if(c<0){a=(c-10000).toString();return a[0]+a.substr(2)}else{a=(c+10000).toString();return"+"+a.substr(1)}};Date.prototype.getDayName=function(a){return a?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()]};Date.prototype.getMonthName=function(a){return a?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()]};Date.prototype._toString=Date.prototype.toString;Date.prototype.toString=function(h){var a=this;var c=function c(j){return(j.toString().length==1)?"0"+j:j};return h?h.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(j){switch(j){case"hh":return c(a.getHours()<13?a.getHours():(a.getHours()-12));case"h":return a.getHours()<13?a.getHours():(a.getHours()-12);case"HH":return c(a.getHours());case"H":return a.getHours();case"mm":return c(a.getMinutes());case"m":return a.getMinutes();case"ss":return c(a.getSeconds());case"s":return a.getSeconds();case"yyyy":return a.getFullYear();case"yy":return a.getFullYear().toString().substring(2,4);case"dddd":return a.getDayName();case"ddd":return a.getDayName(true);case"dd":return c(a.getDate());case"d":return a.getDate().toString();case"MMMM":return a.getMonthName();case"MMM":return a.getMonthName(true);case"MM":return c((a.getMonth()+1));case"M":return a.getMonth()+1;case"t":return a.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return a.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"zzz":case"zz":case"z":return""}}):this._toString()};Date.now=function(){return new Date()};Date.today=function(){return Date.now().clearTime()};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;return this};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this};Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var a={};a[this._dateElement]=this;return Date.now().add(a)};Number.prototype.ago=function(){var a={};a[this._dateElement]=this*-1;return Date.now().add(a)};(function(){var o=Date.prototype,a=Number.prototype;var w=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),u=("january february march april may june july august september october november december").split(/\s/),t=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),s;var q=function(j){return function(){if(this._is){this._is=false;return this.getDay()==j}return this.moveToDayOfWeek(j,this._orient)}};for(var n=0;n<w.length;n++){o[w[n]]=o[w[n].substring(0,3)]=q(n)}var p=function(j){return function(){if(this._is){this._is=false;return this.getMonth()===j}return this.moveToMonth(j,this._orient)}};for(var l=0;l<u.length;l++){o[u[l]]=o[u[l].substring(0,3)]=p(l)}var m=function(k){return function(){if(k.substring(k.length-1)!="s"){k+="s"}return this["add"+k](this._orient)}};var c=function(j){return function(){this._dateElement=j;return this}};for(var h=0;h<t.length;h++){s=t[h].toLowerCase();o[s]=o[s+"s"]=m(t[h]);a[s]=a[s+"s"]=c(s)}}());Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ")};Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern)};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern)};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern)};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern)};Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};(function(){Date.Parsing={Exception:function(j){this.message="Parse error at '"+j.substring(0,10)+" ...'"}};var a=Date.Parsing;var h=a.Operators={rtoken:function(j){return function(p){var q=p.match(j);if(q){return([q[0],p.substring(q[0].length)])}else{throw new a.Exception(p)}}},token:function(j){return function(p){return h.rtoken(new RegExp("^s*"+p+"s*"))(p)}},stoken:function(j){return h.rtoken(new RegExp("^"+j))},until:function(j){return function(p){var q=[],u=null;while(p.length){try{u=j.call(this,p)}catch(t){q.push(u[0]);p=u[1];continue}break}return[q,p]}},many:function(j){return function(p){var u=[],q=null;while(p.length){try{q=j.call(this,p)}catch(t){return[u,p]}u.push(q[0]);p=q[1]}return[u,p]}},optional:function(j){return function(p){var q=null;try{q=j.call(this,p)}catch(t){return[null,p]}return[q[0],q[1]]}},not:function(j){return function(p){try{j.call(this,p)}catch(q){return[null,p]}throw new a.Exception(p)}},ignore:function(j){return j?function(p){var q=null;q=j.call(this,p);return[null,q[1]]}:null},product:function(){var p=arguments[0],q=Array.prototype.slice.call(arguments,1),s=[];for(var j=0;j<p.length;j++){s.push(h.each(p[j],q))}return s},cache:function(q){var j={},p=null;return function(t){try{p=j[t]=(j[t]||q.call(this,t))}catch(u){p=j[t]=u}if(p instanceof a.Exception){throw p}else{return p}}},any:function(){var j=arguments;return function(q){var t=null;for(var p=0;p<j.length;p++){if(j[p]==null){continue}try{t=(j[p].call(this,q))}catch(u){t=null}if(t){return t}}throw new a.Exception(q)}},each:function(){var j=arguments;return function(q){var w=[],t=null;for(var p=0;p<j.length;p++){if(j[p]==null){continue}try{t=(j[p].call(this,q))}catch(u){throw new a.Exception(q)}w.push(t[0]);q=t[1]}return[w,q]}},all:function(){var p=arguments,j=j;return j.each(j.optional(p))},sequence:function(j,p,q){p=p||h.rtoken(/^\s*/);q=q||null;if(j.length==1){return j[0]}return function(x){var y=null,z=null;var B=[];for(var w=0;w<j.length;w++){try{y=j[w].call(this,x)}catch(A){break}B.push(y[0]);try{z=p.call(this,y[1])}catch(u){z=null;break}x=z[1]}if(!y){throw new a.Exception(x)}if(z){throw new a.Exception(z[1])}if(q){try{y=q.call(this,y[1])}catch(t){throw new a.Exception(y[1])}}return[B,(y?y[1]:x)]}},between:function(q,s,j){j=j||q;var t=h.each(h.ignore(q),s,h.ignore(j));return function(p){var u=t.call(this,p);return[[u[0][0],r[0][2]],u[1]]}},list:function(j,q,s){q=q||h.rtoken(/^\s*/);s=s||null;return(j instanceof Array?h.each(h.product(j.slice(0,-1),h.ignore(q)),j.slice(-1),h.ignore(s)):h.each(h.many(h.each(j,h.ignore(q))),px,h.ignore(s)))},set:function(j,p,q){p=p||h.rtoken(/^\s*/);q=q||null;return function(G){var t=null,w=null,u=null,x=null,y=[[],G],F=false;for(var A=0;A<j.length;A++){u=null;w=null;t=null;F=(j.length==1);try{t=j[A].call(this,G)}catch(D){continue}x=[[t[0]],t[1]];if(t[1].length>0&&!F){try{u=p.call(this,t[1])}catch(E){F=true}}else{F=true}if(!F&&u[1].length===0){F=true}if(!F){var B=[];for(var z=0;z<j.length;z++){if(A!=z){B.push(j[z])}}w=h.set(B,p).call(this,u[1]);if(w[0].length>0){x[0]=x[0].concat(w[0]);x[1]=w[1]}}if(x[1].length<y[1].length){y=x}if(y[1].length===0){break}}if(y[0].length===0){return y}if(q){try{u=q.call(this,y[1])}catch(C){throw new a.Exception(y[1])}y[1]=u[1]}return y}},forward:function(j,p){return function(q){return j[p].call(this,q)}},replace:function(p,j){return function(q){var t=p.call(this,q);return[j,t[1]]}},process:function(p,j){return function(q){var t=p.call(this,q);return[j.call(this,t[0]),t[1]]}},min:function(j,p){return function(q){var t=p.call(this,q);if(t[0].length<j){throw new a.Exception(q)}return t}}};var o=function(j){return function(){var p=null,t=[];if(arguments.length>1){p=Array.prototype.slice.call(arguments)}else{if(arguments[0] instanceof Array){p=arguments[0]}}if(p){for(var s=0,q=p.shift();s<q.length;s++){p.unshift(q[s]);t.push(j.apply(null,p));p.shift();return t}}else{return j.apply(null,arguments)}}};var n="optional not ignore cache".split(/\s/);for(var k=0;k<n.length;k++){h[n[k]]=o(h[n[k]])}var m=function(j){return function(){if(arguments[0] instanceof Array){return j.apply(null,arguments[0])}else{return j.apply(null,arguments)}}};var l="each any all".split(/\s/);for(var c=0;c<l.length;c++){h[l[c]]=m(h[l[c]])}}());(function(){var l=function(p){var q=[];for(var o=0;o<p.length;o++){if(p[o] instanceof Array){q=q.concat(l(p[o]))}else{if(p[o]){q.push(p[o])}}}return q};Date.Grammar={};Date.Translator={hour:function(o){return function(){this.hour=Number(o)}},minute:function(o){return function(){this.minute=Number(o)}},second:function(o){return function(){this.second=Number(o)}},meridian:function(o){return function(){this.meridian=o.slice(0,1).toLowerCase()}},timezone:function(o){return function(){var p=o.replace(/[^\d\+\-]/g,"");if(p.length){this.timezoneOffset=Number(p)}else{this.timezone=o.toLowerCase()}}},day:function(o){var p=o[0];return function(){this.day=Number(p.match(/\d+/)[0])}},month:function(o){return function(){this.month=((o.length==3)?Date.getMonthNumberFromName(o):(Number(o)-1))}},year:function(o){return function(){var p=Number(o);this.year=((o.length>2)?p:(p+(((p+2000)<Date.CultureInfo.twoDigitYearMax)?2000:1900)))}},rday:function(o){return function(){switch(o){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0;this.now=true;break}}},finishExact:function(o){o=(o instanceof Array)?o:[o];var p=new Date();this.year=p.getFullYear();this.month=p.getMonth();this.day=1;this.hour=0;this.minute=0;this.second=0;for(var q=0;q<o.length;q++){if(o[q]){o[q].call(this)}}this.hour=(this.meridian=="p"&&this.hour<13)?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.")}var s=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone){s.set({timezone:this.timezone})}else{if(this.timezoneOffset){s.set({timezoneOffset:this.timezoneOffset})}}return s},finish:function(o){o=(o instanceof Array)?l(o):[o];if(o.length===0){return null}for(var t=0;t<o.length;t++){if(typeof o[t]=="function"){o[t].call(this)}}if(this.now){return new Date()}var p=Date.today();var y=null;var u=!!(this.days!=null||this.orient||this.operator);if(u){var w,s,q;q=((this.orient=="past"||this.operator=="subtract")?-1:1);if(this.weekday){this.unit="day";w=(Date.getDayNumberFromName(this.weekday)-p.getDay());s=7;this.days=w?((w+(q*s))%s):(q*s)}if(this.month){this.unit="month";w=(this.month-p.getMonth());s=12;this.months=w?((w+(q*s))%s):(q*s);this.month=null}if(!this.unit){this.unit="day"}if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value){this.value=1}if(this.unit=="week"){this.unit="day";this.value=this.value*7}this[this.unit+"s"]=this.value*q}return p.add(this)}else{if(this.meridian&&this.hour){this.hour=(this.hour<13&&this.meridian=="p")?this.hour+12:this.hour}if(this.weekday&&!this.day){this.day=(p.addDays((Date.getDayNumberFromName(this.weekday)-p.getDay()))).getDate()}if(this.month&&!this.day){this.day=1}return p.set(this)}}};var c=Date.Parsing.Operators,k=Date.Grammar,j=Date.Translator,n;k.datePartDelimiter=c.rtoken(/^([\s\-\.\,\/\x27]+)/);k.timePartDelimiter=c.stoken(":");k.whiteSpace=c.rtoken(/^\s*/);k.generalDelimiter=c.rtoken(/^(([\s\,]|at|on)+)/);var a={};k.ctoken=function(t){var s=a[t];if(!s){var u=Date.CultureInfo.regexPatterns;var q=t.split(/\s+/),p=[];for(var o=0;o<q.length;o++){p.push(c.replace(c.rtoken(u[q[o]]),q[o]))}s=a[t]=c.any.apply(null,p)}return s};k.ctoken2=function(o){return c.rtoken(Date.CultureInfo.regexPatterns[o])};k.h=c.cache(c.process(c.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),j.hour));k.hh=c.cache(c.process(c.rtoken(/^(0[0-9]|1[0-2])/),j.hour));k.H=c.cache(c.process(c.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),j.hour));k.HH=c.cache(c.process(c.rtoken(/^([0-1][0-9]|2[0-3])/),j.hour));k.m=c.cache(c.process(c.rtoken(/^([0-5][0-9]|[0-9])/),j.minute));k.mm=c.cache(c.process(c.rtoken(/^[0-5][0-9]/),j.minute));k.s=c.cache(c.process(c.rtoken(/^([0-5][0-9]|[0-9])/),j.second));k.ss=c.cache(c.process(c.rtoken(/^[0-5][0-9]/),j.second));k.hms=c.cache(c.sequence([k.H,k.mm,k.ss],k.timePartDelimiter));k.t=c.cache(c.process(k.ctoken2("shortMeridian"),j.meridian));k.tt=c.cache(c.process(k.ctoken2("longMeridian"),j.meridian));k.z=c.cache(c.process(c.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),j.timezone));k.zz=c.cache(c.process(c.rtoken(/^(\+|\-)\s*\d\d\d\d/),j.timezone));k.zzz=c.cache(c.process(k.ctoken2("timezone"),j.timezone));k.timeSuffix=c.each(c.ignore(k.whiteSpace),c.set([k.tt,k.zzz]));k.time=c.each(c.optional(c.ignore(c.stoken("T"))),k.hms,k.timeSuffix);k.d=c.cache(c.process(c.each(c.rtoken(/^([0-2]\d|3[0-1]|\d)/),c.optional(k.ctoken2("ordinalSuffix"))),j.day));k.dd=c.cache(c.process(c.each(c.rtoken(/^([0-2]\d|3[0-1])/),c.optional(k.ctoken2("ordinalSuffix"))),j.day));k.ddd=k.dddd=c.cache(c.process(k.ctoken("sun mon tue wed thu fri sat"),function(o){return function(){this.weekday=o}}));k.M=c.cache(c.process(c.rtoken(/^(1[0-2]|0\d|\d)/),j.month));k.MM=c.cache(c.process(c.rtoken(/^(1[0-2]|0\d)/),j.month));k.MMM=k.MMMM=c.cache(c.process(k.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),j.month));k.y=c.cache(c.process(c.rtoken(/^(\d\d?)/),j.year));k.yy=c.cache(c.process(c.rtoken(/^(\d\d)/),j.year));k.yyy=c.cache(c.process(c.rtoken(/^(\d\d?\d?\d?)/),j.year));k.yyyy=c.cache(c.process(c.rtoken(/^(\d\d\d\d)/),j.year));n=function(){return c.each(c.any.apply(null,arguments),c.not(k.ctoken2("timeContext")))};k.day=n(k.d,k.dd);k.month=n(k.M,k.MMM);k.year=n(k.yyyy,k.yy);k.orientation=c.process(k.ctoken("past future"),function(o){return function(){this.orient=o}});k.operator=c.process(k.ctoken("add subtract"),function(o){return function(){this.operator=o}});k.rday=c.process(k.ctoken("yesterday tomorrow today now"),j.rday);k.unit=c.process(k.ctoken("minute hour day week month year"),function(o){return function(){this.unit=o}});k.value=c.process(c.rtoken(/^\d\d?(st|nd|rd|th)?/),function(o){return function(){this.value=o.replace(/\D/g,"")}});k.expression=c.set([k.rday,k.operator,k.value,k.unit,k.orientation,k.ddd,k.MMM]);n=function(){return c.set(arguments,k.datePartDelimiter)};k.mdy=n(k.ddd,k.month,k.day,k.year);k.ymd=n(k.ddd,k.year,k.month,k.day);k.dmy=n(k.ddd,k.day,k.month,k.year);k.date=function(o){return((k[Date.CultureInfo.dateElementOrder]||k.mdy).call(this,o))};k.format=c.process(c.many(c.any(c.process(c.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(o){if(k[o]){return k[o]}else{throw Date.Parsing.Exception(o)}}),c.process(c.rtoken(/^[^dMyhHmstz]+/),function(o){return c.ignore(c.stoken(o))}))),function(o){return c.process(c.each.apply(null,o),j.finishExact)});var m={};var h=function(o){return m[o]=(m[o]||k.format(o)[0])};k.formats=function(p){if(p instanceof Array){var q=[];for(var o=0;o<p.length;o++){q.push(h(p[o]))}return c.any.apply(null,q)}else{return h(p)}};k._formats=k.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","d"]);k._start=c.process(c.set([k.date,k.time,k.expression],k.generalDelimiter,k.whiteSpace),j.finish);k.start=function(o){try{var p=k._formats.call({},o);if(p[1].length===0){return p}}catch(q){}return k._start.call({},o)}}());Date._parse=Date.parse;Date.parse=function(a){var c=null;if(!a){return null}try{c=Date.Grammar.start.call({},a)}catch(h){return null}return((c[1].length===0)?c[0]:null)};Date.getParseFunction=function(c){var a=Date.Grammar.formats(c);return function(h){var j=null;try{j=a.call({},h)}catch(k){return null}return((j[1].length===0)?j[0]:null)}};Date.parseExact=function(a,c){return Date.getParseFunction(c)(a)};eval(function(n,h,o,j,m,l){m=function(a){return(a<h?"":m(parseInt(a/h)))+((a=a%h)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(o--){l[m(o)]=j[o]||m(o)}j=[function(a){return l[a]}];m=function(){return"\\w+"};o=1}while(o--){if(j[o]){n=n.replace(new RegExp("\\b"+m(o)+"\\b","g"),j[o])}}return n}("t K={16:'K',1L:G,1M:G,1d:G,2f:y(){u(D.2g!=8&&D.1N&&!D.1N[q.16]){q.1L=M;q.1M=M}17 u(D.2g==8){q.1d=M}},2h:D.2i,1O:[],1b:{},2j:y(){u(q.1L||q.1M){D.1N.2L(q.16,'2M:2N-2O-2P:x')}u(q.1d){D.2Q('<?2R 2S=\"'+q.16+'\" 2T=\"#1P#2k\" ?>')}},2l:y(){t a=D.1k('z');D.2m.1w.1Q(a,D.2m.1w.1w);u(a.12){2n{t b=a.12;b.1x(q.16+'\\\\:*','{1l:2U(#1P#2k)}');q.12=b}2o(2p){}}17{q.12=a}},1x:y(a,b,c){u(1R b=='1S'||b===2V){b=0}u(b.2W.2q().1y('2X')==-1){b=b.2q().2Y(/[^0-9 ]/g,'').1T(' ')}H(t i=0;i<4;i++){b[i]=(!b[i]&&b[i]!==0)?b[C.1e((i-2),0)]:b[i]}u(q.12){u(q.12.1x){t d=a.1T(',');H(t i=0;i<d.1U;i++){q.12.1x(d[i],'1l:2Z(K.1V.2r(q, ['+b.1W(',')+']))')}}17 u(c){t e=b.1W('F ')+'F';q.12.1z(D.2s(a+' {Q-1f:'+e+'; -30-Q-1f:'+e+';}'));q.12.1z(D.2s(a+' {-1A-Q-1m-1n-1f:'+b[0]+'F '+b[0]+'F; -1A-Q-1m-1X-1f:'+b[1]+'F '+b[1]+'F; -1A-Q-1Y-1X-1f:'+b[2]+'F '+b[2]+'F; -1A-Q-1Y-1n-1f:'+b[3]+'F '+b[3]+'F;}'))}}17 u(q.1d){q.1O.31({'2t':a,'2u':b})}},2v:y(a){2w(32.33){I'z.Q':I'z.34':I'z.1B':q.1o(a);13;I'z.2x':q.1Z(a);13;I'z.1p':I'z.2y':I'z.2z':q.1o(a);13;I'z.20':a.18.z.20=(a.z.20=='S')?'S':'35';13;I'z.21':q.22(a);13;I'z.1c':a.18.z.1c=a.z.1c;13}},1o:y(a){a.14.23='';q.2A(a);q.1Z(a);q.1C(a);q.1D(a);q.24(a);q.2B(a);q.22(a)},22:y(a){u(a.W.21.1y('36')!=-1){t b=a.W.21;b=1g(b.37(b.25('=')+1,b.25(')')),10)/2C;H(t v 1h a.x){a.x[v].1i.38=b}}},2A:y(a){u(!a.W){1q}17{t b=a.W}a.14.1p='';a.14.1E='';t c=(b.1p=='2D');t d=M;u(b.1E!='S'||a.1F){u(!a.1F){a.J=b.1E;a.J=a.J.39(5,a.J.25('\")')-5)}17{a.J=a.26}t e=q;u(!e.1b[a.J]){t f=D.1k('3a');f.1r('3b',y(){q.1s=q.3c;q.1t=q.3d;e.1D(a)});f.3e=e.16+'3f';f.14.23='1l:S; 1j:27; 1m:-2E; 1n:-2E; Q:S;';f.26=a.J;f.2F('1s');f.2F('1t');D.2G.1Q(f,D.2G.1w);e.1b[a.J]=f}a.x.Z.1i.26=a.J;d=G}a.x.Z.2H=!d;a.x.Z.1G='S';a.x.1u.2H=!c;a.x.1u.1G=b.1p;a.14.1E='S';a.14.1p='2D'},1Z:y(a){a.x.1H.1G=a.W.2x},1C:y(a){t c=['N','19','1a','O'];a.P={};H(t b=0;b<4;b++){a.P[c[b]]=1g(a.W['Q'+c[b]+'U'],10)||0}},1D:y(c){t e=['O','N','U','V'];H(t d=0;d<4;d++){c.E[e[d]]=c['3g'+e[d]]}t f=y(a,b){a.z.1n=(b?0:c.E.O)+'F';a.z.1m=(b?0:c.E.N)+'F';a.z.1s=c.E.U+'F';a.z.1t=c.E.V+'F'};H(t v 1h c.x){t g=(v=='Z')?1:2;c.x[v].3h=(c.E.U*g)+', '+(c.E.V*g);f(c.x[v],M)}f(c.18,G);u(K.1d){c.x.1H.z.28='-3i';u(1R c.P=='1S'){q.1C(c)}c.x.1u.z.28=(c.P.N-1)+'F '+(c.P.O-1)+'F'}},24:y(j){t k=y(a,w,h,r,b,c,d){t e=a?['m','1I','l','1J','l','1I','l','1J','l']:['1J','l','1I','l','1J','l','1I','l','m'];b*=d;c*=d;w*=d;h*=d;t R=r.2I();H(t i=0;i<4;i++){R[i]*=d;R[i]=C.3j(w/2,h/2,R[i])}t f=[e[0]+C.11(0+b)+','+C.11(R[0]+c),e[1]+C.11(R[0]+b)+','+C.11(0+c),e[2]+C.15(w-R[1]+b)+','+C.11(0+c),e[3]+C.15(w+b)+','+C.11(R[1]+c),e[4]+C.15(w+b)+','+C.15(h-R[2]+c),e[5]+C.15(w-R[2]+b)+','+C.15(h+c),e[6]+C.11(R[3]+b)+','+C.15(h+c),e[7]+C.11(0+b)+','+C.15(h-R[3]+c),e[8]+C.11(0+b)+','+C.11(R[0]+c)];u(!a){f.3k()}t g=f.1W('');1q g};u(1R j.P=='1S'){q.1C(j)}t l=j.P;t m=j.2J.2I();t n=k(M,j.E.U,j.E.V,m,0,0,2);m[0]-=C.1e(l.O,l.N);m[1]-=C.1e(l.N,l.19);m[2]-=C.1e(l.19,l.1a);m[3]-=C.1e(l.1a,l.O);H(t i=0;i<4;i++){m[i]=C.1e(m[i],0)}t o=k(G,j.E.U-l.O-l.19,j.E.V-l.N-l.1a,m,l.O,l.N,2);t p=k(M,j.E.U-l.O-l.19+1,j.E.V-l.N-l.1a+1,m,l.O,l.N,1);j.x.1u.29=o;j.x.Z.29=p;j.x.1H.29=n+o;q.2K(j)},2B:y(a){t s=a.W;t b=['N','O','19','1a'];H(t i=0;i<4;i++){a.14['1B'+b[i]]=(1g(s['1B'+b[i]],10)||0)+(1g(s['Q'+b[i]+'U'],10)||0)+'F'}a.14.Q='S'},2K:y(e){t f=K;u(!e.J||!f.1b[e.J]){1q}t g=e.W;t h={'X':0,'Y':0};t i=y(a,b){t c=M;2w(b){I'1n':I'1m':h[a]=0;13;I'3l':h[a]=0.5;13;I'1X':I'1Y':h[a]=1;13;1P:u(b.1y('%')!=-1){h[a]=1g(b,10)*0.3m}17{c=G}}t d=(a=='X');h[a]=C.15(c?((e.E[d?'U':'V']-(e.P[d?'O':'N']+e.P[d?'19':'1a']))*h[a])-(f.1b[e.J][d?'1s':'1t']*h[a]):1g(b,10));h[a]+=1};H(t b 1h h){i(b,g['2y'+b])}e.x.Z.1i.1j=(h.X/(e.E.U-e.P.O-e.P.19+1))+','+(h.Y/(e.E.V-e.P.N-e.P.1a+1));t j=g.2z;t c={'T':1,'R':e.E.U+1,'B':e.E.V+1,'L':1};t k={'X':{'2a':'L','2b':'R','d':'U'},'Y':{'2a':'T','2b':'B','d':'V'}};u(j!='2c'){c={'T':(h.Y),'R':(h.X+f.1b[e.J].1s),'B':(h.Y+f.1b[e.J].1t),'L':(h.X)};u(j.1y('2c-')!=-1){t v=j.1T('2c-')[1].3n();c[k[v].2a]=1;c[k[v].2b]=e.E[k[v].d]+1}u(c.B>e.E.V){c.B=e.E.V+1}}e.x.Z.z.3o='3p('+c.T+'F '+c.R+'F '+c.B+'F '+c.L+'F)'},1v:y(a){t b=q;2d(y(){b.1o(a)},1)},2e:y(a){q.1D(a);q.24(a)},1V:y(b){q.z.1l='S';u(!q.W){1q}17{t c=q.W}t d={3q:G,3r:G,3s:G,3t:G,3u:G,3v:G,3w:G};u(d[q.1K]===G){1q}t e=q;t f=K;q.2J=b;q.E={};t g={3x:'2e',3y:'2e'};u(q.1K=='A'){t i={3z:'1v',3A:'1v',3B:'1v',3C:'1v'};H(t a 1h i){g[a]=i[a]}}H(t h 1h g){q.1r('3D'+h,y(){f[g[h]](e)})}q.1r('3E',y(){f.2v(e)});t j=y(a){a.z.3F=1;u(a.W.1j=='3G'){a.z.1j='3H'}};j(q.3I);j(q);q.18=D.1k('3J');q.18.14.23='1l:S; 1j:27; 28:0; 1B:0; Q:0; 3K:S;';q.18.z.1c=c.1c;q.x={'1u':M,'Z':M,'1H':M};H(t v 1h q.x){q.x[v]=D.1k(f.16+':3L');q.x[v].1i=D.1k(f.16+':3M');q.x[v].1z(q.x[v].1i);q.x[v].3N=G;q.x[v].z.1j='27';q.x[v].z.1c=c.1c;q.x[v].3O='1,1';q.18.1z(q.x[v])}q.x.Z.1G='S';q.x.Z.1i.3P='3Q';q.3R.1Q(q.18,q);q.1F=G;u(q.1K=='3S'){q.1F=M;q.z.3T='3U'}2d(y(){f.1o(e)},1)}};2n{D.3V(\"3W\",G,M)}2o(2p){}K.2f();K.2j();K.2l();u(K.1d&&D.1r&&K.2h){D.1r('3X',y(){u(D.3Y=='3Z'){t d=K.1O;t e=d.1U;t f=y(a,b,c){2d(y(){K.1V.2r(a,b)},c*2C)};H(t i=0;i<e;i++){t g=D.2i(d[i].2t);t h=g.1U;H(t r=0;r<h;r++){u(g[r].1K!='40'){f(g[r],d[i].2u,r)}}}}})}",62,249,"||||||||||||||||||||||||||this|||var|if|||vml|function|style|||Math|document|dim|px|false|for|case|vmlBg|DD_roundies||true|Top|Left|bW|border||none||Width|Height|currentStyle|||image||floor|styleSheet|break|runtimeStyle|ceil|ns|else|vmlBox|Right|Bottom|imgSize|zIndex|IE8|max|radius|parseInt|in|filler|position|createElement|behavior|top|left|applyVML|backgroundColor|return|attachEvent|width|height|color|pseudoClass|firstChild|addRule|search|appendChild|webkit|padding|vmlStrokeWeight|vmlOffsets|backgroundImage|isImg|fillcolor|stroke|qy|qx|nodeName|IE6|IE7|namespaces|selectorsToProcess|default|insertBefore|typeof|undefined|split|length|roundify|join|right|bottom|vmlStrokeColor|display|filter|vmlOpacity|cssText|vmlPath|lastIndexOf|src|absolute|margin|path|b1|b2|repeat|setTimeout|reposition|IEversion|documentMode|querySelector|querySelectorAll|createVmlNameSpace|VML|createVmlStyleSheet|documentElement|try|catch|err|toString|call|createTextNode|selector|radii|readPropertyChanges|switch|borderColor|backgroundPosition|backgroundRepeat|vmlFill|nixBorder|100|transparent|10000px|removeAttribute|body|filled|slice|DD_radii|clipImage|add|urn|schemas|microsoft|com|writeln|import|namespace|implementation|url|null|constructor|Array|replace|expression|moz|push|event|propertyName|borderWidth|block|lpha|substring|opacity|substr|img|onload|offsetWidth|offsetHeight|className|_sizeFinder|offset|coordsize|1px|min|reverse|center|01|toUpperCase|clip|rect|BODY|TABLE|TR|TD|SELECT|OPTION|TEXTAREA|resize|move|mouseleave|mouseenter|focus|blur|on|onpropertychange|zoom|static|relative|offsetParent|ignore|background|shape|fill|stroked|coordorigin|type|tile|parentNode|IMG|visibility|hidden|execCommand|BackgroundImageCache|onreadystatechange|readyState|complete|INPUT".split("|"),0,{}));(function(h){var a=h.scrollTo=function(j,k,l){h(window).scrollTo(j,k,l)};a.defaults={axis:"xy",duration:parseFloat(h.fn.jquery)>=1.3?0:1};a.window=function(j){return h(window)._scrollable()};h.fn._scrollable=function(){return this.map(function(){var j=this,k=!j.nodeName||h.inArray(j.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!k){return j}var l=(j.contentWindow||j).document||j.ownerDocument||j;return h.browser.safari||l.compatMode=="BackCompat"?l.body:l.documentElement})};h.fn.scrollTo=function(m,l,k){if(typeof l=="object"){k=l;l=0}if(typeof k=="function"){k={onAfter:k}}if(m=="max"){m=9000000000}k=h.extend({},a.defaults,k);l=l||k.speed||k.duration;k.queue=k.queue&&k.axis.length>1;if(k.queue){l/=2}k.offset=c(k.offset);k.over=c(k.over);return this._scrollable().each(function(){var y=this,w=h(y),x=m,o,p={},j=w.is("html,body");switch(typeof x){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(x)){x=c(x);break}x=h(x,this);case"object":if(x.is||x.style){o=(x=h(x)).offset()}}h.each(k.axis.split(""),function(t,u){var A=u=="x"?"Left":"Top",z=A.toLowerCase(),C="scroll"+A,s=y[C],q=a.max(y,u);if(o){p[C]=o[z]+(j?0:s-w.offset()[z]);if(k.margin){p[C]-=parseInt(x.css("margin"+A))||0;p[C]-=parseInt(x.css("border"+A+"Width"))||0}p[C]+=k.offset[z]||0;if(k.over[z]){p[C]+=x[u=="x"?"width":"height"]()*k.over[z]}}else{var B=x[z];p[C]=B.slice&&B.slice(-1)=="%"?parseFloat(B)/100*q:B}if(/^\d+$/.test(p[C])){p[C]=p[C]<=0?0:Math.min(p[C],q)}if(!t&&k.queue){if(s!=p[C]){n(k.onAfterFirst)}delete p[C]}});n(k.onAfter);function n(q){w.animate(p,l,k.easing,q&&function(){q.call(this,m,k)})}}).end()};a.max=function(n,o){var q=o=="x"?"Width":"Height",p="scroll"+q;if(!h(n).is("html,body")){return n[p]-h(n)[q.toLowerCase()]()}var s="client"+q,k=n.ownerDocument.documentElement,j=n.ownerDocument.body;return Math.max(k[p],j[p])-Math.min(k[s],j[s])};function c(j){return typeof j=="object"?j:{top:j,left:j}}})(jQuery);
