Date.CultureInfo={name:"de-DE",englishName:"German (Germany)",nativeName:"Deutsch (Deutschland)",dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],abbreviatedDayNames:["So","Mo","Di","Mi","Do","Fr","Sa"],shortestDayNames:["So","Mo","Di","Mi","Do","Fr","Sa"],firstLetterDayNames:["S","M","D","M","D","F","S"],monthNames:["Januar","Februar","M??rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],abbreviatedMonthNames:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],amDesignator:"",pmDesignator:"",firstDayOfWeek:1,twoDigitYearMax:2029,dateElementOrder:"dmy",formatPatterns:{shortDate:"dd.MM.yyyy",longDate:"dddd, d. MMMM yyyy",shortTime:"HH:mm",longTime:"HH:mm:ss",fullDateTime:"dddd, d. MMMM yyyy HH:mm:ss",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"dd MMMM",yearMonth:"MMMM yyyy"},regexPatterns:{jan:/^jan(uar)?/i,feb:/^feb(ruar)?/i,mar:/^m??rz/i,apr:/^apr(il)?/i,may:/^mai/i,jun:/^jun(i)?/i,jul:/^jul(i)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^okt(ober)?/i,nov:/^nov(ember)?/i,dec:/^dez(ember)?/i,sun:/^sonntag/i,mon:/^montag/i,tue:/^dienstag/i,wed:/^mittwoch/i,thu:/^donnerstag/i,fri:/^freitag/i,sat:/^samstag/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(b){var e=Date.CultureInfo.monthNames,a=Date.CultureInfo.abbreviatedMonthNames,d=b.toLowerCase();for(var c=0;c<e.length;c++){if(e[c].toLowerCase()==d||a[c].toLowerCase()==d){return c;}}return -1;};Date.getDayNumberFromName=function(b){var f=Date.CultureInfo.dayNames,a=Date.CultureInfo.abbreviatedDayNames,e=Date.CultureInfo.shortestDayNames,d=b.toLowerCase();
for(var c=0;c<f.length;c++){if(f[c].toLowerCase()==d||a[c].toLowerCase()==d){return c;}}return -1;};Date.isLeapYear=function(a){return(((a%4===0)&&(a%100!==0))||(a%400===0));};Date.getDaysInMonth=function(a,b){return[31,(Date.isLeapYear(a)?29:28),31,30,31,30,31,31,30,31,30,31][b];};Date.getTimezoneOffset=function(a,b){return(b||false)?Date.CultureInfo.abbreviatedTimeZoneDST[a.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[a.toUpperCase()];
};Date.getTimezoneAbbreviation=function(b,d){var c=(d||false)?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,a;for(a in c){if(c[a]===b){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(c,a){var b=this.getTime();return b>=c.getTime()&&b<=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 b=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+a);this.setDate(Math.min(b,this.getDaysInMonth()));return this;};Date.prototype.addYears=function(a){return this.addMonths(a*12);
};Date.prototype.add=function(b){if(typeof b=="number"){this._orient=b;return this;}var a=b;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(d,c,a,b){if(typeof d!="number"){throw new TypeError(d+" is not a Number.");
}else{if(d<c||d>a){throw new RangeError(d+" is not a valid value for "+b+".");}}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(c,a,b){return Date._validate(c,1,Date.getDaysInMonth(a,b),"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(b){var a=b;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,b){var c=(a-this.getDay()+7*(b||+1))%7;return this.addDays((c===0)?c+=7*(b||+1):c);};Date.prototype.moveToMonth=function(c,a){var b=(c-this.getMonth()+12*(a||+1))%12;
return this.addMonths((b===0)?b+=12*(a||+1):b);};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/86400000);};Date.prototype.getWeekOfYear=function(a){var h=this.getFullYear(),c=this.getMonth(),f=this.getDate();var j=a||Date.CultureInfo.firstDayOfWeek;var e=7+1-new Date(h,0,1).getDay();
if(e==8){e=1;}var b=((Date.UTC(h,c,f,0,0,0)-Date.UTC(h,0,1,0,0,0))/86400000)+1;var i=Math.floor((b-e+7)/7);if(i===j){h--;var g=7+1-new Date(h,0,1).getDay();if(g==2||g==8){i=53;}else{i=52;}}return i;};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(b){var a=this.getTimezoneOffset(),c=Number(b)*-6/10;this.addMinutes(c-a);return this;};Date.prototype.setTimezone=function(a){return this.setTimezoneOffset(Date.getTimezoneOffset(a));
};Date.prototype.getUTCOffset=function(){var b=this.getTimezoneOffset()*-10/6,a;if(b<0){a=(b-10000).toString();return a[0]+a.substr(2);}else{a=(b+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(c){var a=this;var b=function b(d){return(d.toString().length==1)?"0"+d:d;
};return c?c.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(d){switch(d){case"hh":return b(a.getHours()<13?a.getHours():(a.getHours()-12));case"h":return a.getHours()<13?a.getHours():(a.getHours()-12);case"HH":return b(a.getHours());case"H":return a.getHours();case"mm":return b(a.getMinutes());
case"m":return a.getMinutes();case"ss":return b(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 b(a.getDate());case"d":return a.getDate().toString();
case"MMMM":return a.getMonthName();case"MMM":return a.getMonthName(true);case"MM":return b((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 g=Date.prototype,a=Number.prototype;var p=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),o=("january february march april may june july august september october november december").split(/\s/),n=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),m;
var l=function(i){return function(){if(this._is){this._is=false;return this.getDay()==i;}return this.moveToDayOfWeek(i,this._orient);};};for(var f=0;f<p.length;f++){g[p[f]]=g[p[f].substring(0,3)]=l(f);}var h=function(i){return function(){if(this._is){this._is=false;return this.getMonth()===i;}return this.moveToMonth(i,this._orient);
};};for(var d=0;d<o.length;d++){g[o[d]]=g[o[d].substring(0,3)]=h(d);}var e=function(i){return function(){if(i.substring(i.length-1)!="s"){i+="s";}return this["add"+i](this._orient);};};var b=function(i){return function(){this._dateElement=i;return this;};};for(var c=0;c<n.length;c++){m=n[c].toLowerCase();
g[m]=g[m+"s"]=e(n[c]);a[m]=a[m+"s"]=b(m);}}());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(i){this.message="Parse error at '"+i.substring(0,10)+" ...'";}};var a=Date.Parsing;var c=a.Operators={rtoken:function(i){return function(j){var k=j.match(i);if(k){return([k[0],j.substring(k[0].length)]);
}else{throw new a.Exception(j);}};},token:function(i){return function(j){return c.rtoken(new RegExp("^s*"+j+"s*"))(j);};},stoken:function(i){return c.rtoken(new RegExp("^"+i));},until:function(i){return function(j){var k=[],m=null;while(j.length){try{m=i.call(this,j);}catch(l){k.push(m[0]);j=m[1];continue;
}break;}return[k,j];};},many:function(i){return function(j){var m=[],k=null;while(j.length){try{k=i.call(this,j);}catch(l){return[m,j];}m.push(k[0]);j=k[1];}return[m,j];};},optional:function(i){return function(j){var k=null;try{k=i.call(this,j);}catch(l){return[null,j];}return[k[0],k[1]];};},not:function(i){return function(j){try{i.call(this,j);
}catch(k){return[null,j];}throw new a.Exception(j);};},ignore:function(i){return i?function(j){var k=null;k=i.call(this,j);return[null,k[1]];}:null;},product:function(){var k=arguments[0],l=Array.prototype.slice.call(arguments,1),m=[];for(var j=0;j<k.length;j++){m.push(c.each(k[j],l));}return m;},cache:function(k){var i={},j=null;
return function(l){try{j=i[l]=(i[l]||k.call(this,l));}catch(m){j=i[l]=m;}if(j instanceof a.Exception){throw j;}else{return j;}};},any:function(){var i=arguments;return function(k){var l=null;for(var j=0;j<i.length;j++){if(i[j]==null){continue;}try{l=(i[j].call(this,k));}catch(m){l=null;}if(l){return l;
}}throw new a.Exception(k);};},each:function(){var i=arguments;return function(k){var n=[],l=null;for(var j=0;j<i.length;j++){if(i[j]==null){continue;}try{l=(i[j].call(this,k));}catch(m){throw new a.Exception(k);}n.push(l[0]);k=l[1];}return[n,k];};},all:function(){var j=arguments,i=i;return i.each(i.optional(j));
},sequence:function(i,j,k){j=j||c.rtoken(/^\s*/);k=k||null;if(i.length==1){return i[0];}return function(o){var p=null,t=null;var v=[];for(var n=0;n<i.length;n++){try{p=i[n].call(this,o);}catch(u){break;}v.push(p[0]);try{t=j.call(this,p[1]);}catch(m){t=null;break;}o=t[1];}if(!p){throw new a.Exception(o);
}if(t){throw new a.Exception(t[1]);}if(k){try{p=k.call(this,p[1]);}catch(l){throw new a.Exception(p[1]);}}return[v,(p?p[1]:o)];};},between:function(j,k,i){i=i||j;var l=c.each(c.ignore(j),k,c.ignore(i));return function(m){var n=l.call(this,m);return[[n[0][0],r[0][2]],n[1]];};},list:function(i,j,k){j=j||c.rtoken(/^\s*/);
k=k||null;return(i instanceof Array?c.each(c.product(i.slice(0,-1),c.ignore(j)),i.slice(-1),c.ignore(k)):c.each(c.many(c.each(i,c.ignore(j))),px,c.ignore(k)));},set:function(i,j,k){j=j||c.rtoken(/^\s*/);k=k||null;return function(B){var l=null,n=null,m=null,o=null,t=[[],B],A=false;for(var v=0;v<i.length;
v++){m=null;n=null;l=null;A=(i.length==1);try{l=i[v].call(this,B);}catch(y){continue;}o=[[l[0]],l[1]];if(l[1].length>0&&!A){try{m=j.call(this,l[1]);}catch(z){A=true;}}else{A=true;}if(!A&&m[1].length===0){A=true;}if(!A){var w=[];for(var u=0;u<i.length;u++){if(v!=u){w.push(i[u]);}}n=c.set(w,j).call(this,m[1]);
if(n[0].length>0){o[0]=o[0].concat(n[0]);o[1]=n[1];}}if(o[1].length<t[1].length){t=o;}if(t[1].length===0){break;}}if(t[0].length===0){return t;}if(k){try{m=k.call(this,t[1]);}catch(x){throw new a.Exception(t[1]);}t[1]=m[1];}return t;};},forward:function(i,j){return function(k){return i[j].call(this,k);
};},replace:function(j,i){return function(k){var l=j.call(this,k);return[i,l[1]];};},process:function(j,i){return function(k){var l=j.call(this,k);return[i.call(this,l[0]),l[1]];};},min:function(i,j){return function(k){var l=j.call(this,k);if(l[0].length<i){throw new a.Exception(k);}return l;};}};var h=function(i){return function(){var j=null,m=[];
if(arguments.length>1){j=Array.prototype.slice.call(arguments);}else{if(arguments[0] instanceof Array){j=arguments[0];}}if(j){for(var l=0,k=j.shift();l<k.length;l++){j.unshift(k[l]);m.push(i.apply(null,j));j.shift();return m;}}else{return i.apply(null,arguments);}};};var g="optional not ignore cache".split(/\s/);
for(var d=0;d<g.length;d++){c[g[d]]=h(c[g[d]]);}var f=function(i){return function(){if(arguments[0] instanceof Array){return i.apply(null,arguments[0]);}else{return i.apply(null,arguments);}};};var e="each any all".split(/\s/);for(var b=0;b<e.length;b++){c[e[b]]=f(c[e[b]]);}}());(function(){var f=function(j){var k=[];
for(var g=0;g<j.length;g++){if(j[g] instanceof Array){k=k.concat(f(j[g]));}else{if(j[g]){k.push(j[g]);}}}return k;};Date.Grammar={};Date.Translator={hour:function(g){return function(){this.hour=Number(g);};},minute:function(g){return function(){this.minute=Number(g);};},second:function(g){return function(){this.second=Number(g);
};},meridian:function(g){return function(){this.meridian=g.slice(0,1).toLowerCase();};},timezone:function(g){return function(){var j=g.replace(/[^\d\+\-]/g,"");if(j.length){this.timezoneOffset=Number(j);}else{this.timezone=g.toLowerCase();}};},day:function(g){var j=g[0];return function(){this.day=Number(j.match(/\d+/)[0]);
};},month:function(g){return function(){this.month=((g.length==3)?Date.getMonthNumberFromName(g):(Number(g)-1));};},year:function(g){return function(){var j=Number(g);this.year=((g.length>2)?j:(j+(((j+2000)<Date.CultureInfo.twoDigitYearMax)?2000:1900)));};},rday:function(g){return function(){switch(g){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(g){g=(g instanceof Array)?g:[g];var j=new Date();this.year=j.getFullYear();this.month=j.getMonth();this.day=1;this.hour=0;this.minute=0;this.second=0;for(var k=0;k<g.length;
k++){if(g[k]){g[k].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 l=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);
if(this.timezone){l.set({timezone:this.timezone});}else{if(this.timezoneOffset){l.set({timezoneOffset:this.timezoneOffset});}}return l;},finish:function(g){g=(g instanceof Array)?f(g):[g];if(g.length===0){return null;}for(var m=0;m<g.length;m++){if(typeof g[m]=="function"){g[m].call(this);}}if(this.now){return new Date();
}var j=Date.today();var p=null;var n=!!(this.days!=null||this.orient||this.operator);if(n){var o,l,k;k=((this.orient=="past"||this.operator=="subtract")?-1:1);if(this.weekday){this.unit="day";o=(Date.getDayNumberFromName(this.weekday)-j.getDay());l=7;this.days=o?((o+(k*l))%l):(k*l);}if(this.month){this.unit="month";
o=(this.month-j.getMonth());l=12;this.months=o?((o+(k*l))%l):(k*l);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*k;}return j.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=(j.addDays((Date.getDayNumberFromName(this.weekday)-j.getDay()))).getDate();}if(this.month&&!this.day){this.day=1;}return j.set(this);}}};var b=Date.Parsing.Operators,e=Date.Grammar,d=Date.Translator,i;
e.datePartDelimiter=b.rtoken(/^([\s\-\.\,\/\x27]+)/);e.timePartDelimiter=b.stoken(":");e.whiteSpace=b.rtoken(/^\s*/);e.generalDelimiter=b.rtoken(/^(([\s\,]|at|on)+)/);var a={};e.ctoken=function(m){var l=a[m];if(!l){var n=Date.CultureInfo.regexPatterns;var k=m.split(/\s+/),j=[];for(var g=0;g<k.length;
g++){j.push(b.replace(b.rtoken(n[k[g]]),k[g]));}l=a[m]=b.any.apply(null,j);}return l;};e.ctoken2=function(g){return b.rtoken(Date.CultureInfo.regexPatterns[g]);};e.h=b.cache(b.process(b.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),d.hour));e.hh=b.cache(b.process(b.rtoken(/^(0[0-9]|1[0-2])/),d.hour));e.H=b.cache(b.process(b.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),d.hour));
e.HH=b.cache(b.process(b.rtoken(/^([0-1][0-9]|2[0-3])/),d.hour));e.m=b.cache(b.process(b.rtoken(/^([0-5][0-9]|[0-9])/),d.minute));e.mm=b.cache(b.process(b.rtoken(/^[0-5][0-9]/),d.minute));e.s=b.cache(b.process(b.rtoken(/^([0-5][0-9]|[0-9])/),d.second));e.ss=b.cache(b.process(b.rtoken(/^[0-5][0-9]/),d.second));
e.hms=b.cache(b.sequence([e.H,e.mm,e.ss],e.timePartDelimiter));e.t=b.cache(b.process(e.ctoken2("shortMeridian"),d.meridian));e.tt=b.cache(b.process(e.ctoken2("longMeridian"),d.meridian));e.z=b.cache(b.process(b.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),d.timezone));e.zz=b.cache(b.process(b.rtoken(/^(\+|\-)\s*\d\d\d\d/),d.timezone));
e.zzz=b.cache(b.process(e.ctoken2("timezone"),d.timezone));e.timeSuffix=b.each(b.ignore(e.whiteSpace),b.set([e.tt,e.zzz]));e.time=b.each(b.optional(b.ignore(b.stoken("T"))),e.hms,e.timeSuffix);e.d=b.cache(b.process(b.each(b.rtoken(/^([0-2]\d|3[0-1]|\d)/),b.optional(e.ctoken2("ordinalSuffix"))),d.day));
e.dd=b.cache(b.process(b.each(b.rtoken(/^([0-2]\d|3[0-1])/),b.optional(e.ctoken2("ordinalSuffix"))),d.day));e.ddd=e.dddd=b.cache(b.process(e.ctoken("sun mon tue wed thu fri sat"),function(g){return function(){this.weekday=g;};}));e.M=b.cache(b.process(b.rtoken(/^(1[0-2]|0\d|\d)/),d.month));e.MM=b.cache(b.process(b.rtoken(/^(1[0-2]|0\d)/),d.month));
e.MMM=e.MMMM=b.cache(b.process(e.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),d.month));e.y=b.cache(b.process(b.rtoken(/^(\d\d?)/),d.year));e.yy=b.cache(b.process(b.rtoken(/^(\d\d)/),d.year));e.yyy=b.cache(b.process(b.rtoken(/^(\d\d?\d?\d?)/),d.year));e.yyyy=b.cache(b.process(b.rtoken(/^(\d\d\d\d)/),d.year));
i=function(){return b.each(b.any.apply(null,arguments),b.not(e.ctoken2("timeContext")));};e.day=i(e.d,e.dd);e.month=i(e.M,e.MMM);e.year=i(e.yyyy,e.yy);e.orientation=b.process(e.ctoken("past future"),function(g){return function(){this.orient=g;};});e.operator=b.process(e.ctoken("add subtract"),function(g){return function(){this.operator=g;
};});e.rday=b.process(e.ctoken("yesterday tomorrow today now"),d.rday);e.unit=b.process(e.ctoken("minute hour day week month year"),function(g){return function(){this.unit=g;};});e.value=b.process(b.rtoken(/^\d\d?(st|nd|rd|th)?/),function(g){return function(){this.value=g.replace(/\D/g,"");};});e.expression=b.set([e.rday,e.operator,e.value,e.unit,e.orientation,e.ddd,e.MMM]);
i=function(){return b.set(arguments,e.datePartDelimiter);};e.mdy=i(e.ddd,e.month,e.day,e.year);e.ymd=i(e.ddd,e.year,e.month,e.day);e.dmy=i(e.ddd,e.day,e.month,e.year);e.date=function(g){return((e[Date.CultureInfo.dateElementOrder]||e.mdy).call(this,g));};e.format=b.process(b.many(b.any(b.process(b.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(g){if(e[g]){return e[g];
}else{throw Date.Parsing.Exception(g);}}),b.process(b.rtoken(/^[^dMyhHmstz]+/),function(g){return b.ignore(b.stoken(g));}))),function(g){return b.process(b.each.apply(null,g),d.finishExact);});var h={};var c=function(g){return h[g]=(h[g]||e.format(g)[0]);};e.formats=function(j){if(j instanceof Array){var k=[];
for(var g=0;g<j.length;g++){k.push(c(j[g]));}return b.any.apply(null,k);}else{return c(j);}};e._formats=e.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","d"]);e._start=b.process(b.set([e.date,e.time,e.expression],e.generalDelimiter,e.whiteSpace),d.finish);
e.start=function(g){try{var j=e._formats.call({},g);if(j[1].length===0){return j;}}catch(k){}return e._start.call({},g);};}());Date._parse=Date.parse;Date.parse=function(a){var b=null;if(!a){return null;}try{b=Date.Grammar.start.call({},a);}catch(c){return null;}return((b[1].length===0)?b[0]:null);};
Date.getParseFunction=function(b){var a=Date.Grammar.formats(b);return function(c){var d=null;try{d=a.call({},c);}catch(f){return null;}return((d[1].length===0)?d[0]:null);};};Date.parseExact=function(a,b){return Date.getParseFunction(b)(a);};
/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var l=this,g,A=l.jQuery,p=l.$,o=l.jQuery=l.$=function(G,H){return new o.fn.init(G,H);
},F=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(G,J){G=G||document;if(G.nodeType){this[0]=G;this.length=1;this.context=G;return this;}if(typeof G==="string"){var I=F.exec(G);if(I&&(I[1]||!J)){if(I[1]){G=o.clean([I[1]],J);}else{var K=document.getElementById(I[3]);
if(K&&K.id!=I[3]){return o().find(G);}var H=o(K||[]);H.context=document;H.selector=G;return H;}}else{return o(J).find(G);}}else{if(o.isFunction(G)){return o(document).ready(G);}}if(G.selector&&G.context){this.selector=G.selector;this.context=G.context;}return this.setArray(o.isArray(G)?G:o.makeArray(G));
},selector:"",jquery:"1.3.2",size:function(){return this.length;},get:function(G){return G===g?Array.prototype.slice.call(this):this[G];},pushStack:function(H,J,G){var I=o(H);I.prevObject=this;I.context=this.context;if(J==="find"){I.selector=this.selector+(this.selector?" ":"")+G;}else{if(J){I.selector=this.selector+"."+J+"("+G+")";
}}return I;},setArray:function(G){this.length=0;Array.prototype.push.apply(this,G);return this;},each:function(H,G){return o.each(this,H,G);},index:function(G){return o.inArray(G&&G.jquery?G[0]:G,this);},attr:function(H,J,I){var G=H;if(typeof H==="string"){if(J===g){return this[0]&&o[I||"attr"](this[0],H);
}else{G={};G[H]=J;}}return this.each(function(K){for(H in G){o.attr(I?this.style:this,H,o.prop(this,G[H],I,K,H));}});},css:function(G,H){if((G=="width"||G=="height")&&parseFloat(H)<0){H=g;}return this.attr(G,H,"curCSS");},text:function(H){if(typeof H!=="object"&&H!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(H));
}var G="";o.each(H||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){G+=this.nodeType!=1?this.nodeValue:o.fn.text([this]);}});});return G;},wrapAll:function(G){if(this[0]){var H=o(G,this[0].ownerDocument).clone();if(this[0].parentNode){H.insertBefore(this[0]);}H.map(function(){var I=this;
while(I.firstChild){I=I.firstChild;}return I;}).append(this);}return this;},wrapInner:function(G){return this.each(function(){o(this).contents().wrapAll(G);});},wrap:function(G){return this.each(function(){o(this).wrapAll(G);});},append:function(){return this.domManip(arguments,true,function(G){if(this.nodeType==1){this.appendChild(G);
}});},prepend:function(){return this.domManip(arguments,true,function(G){if(this.nodeType==1){this.insertBefore(G,this.firstChild);}});},before:function(){return this.domManip(arguments,false,function(G){this.parentNode.insertBefore(G,this);});},after:function(){return this.domManip(arguments,false,function(G){this.parentNode.insertBefore(G,this.nextSibling);
});},end:function(){return this.prevObject||o([]);},push:[].push,sort:[].sort,splice:[].splice,find:function(G){if(this.length===1){var H=this.pushStack([],"find",G);H.length=0;o.find(G,this[0],H);return H;}else{return this.pushStack(o.unique(o.map(this,function(I){return o.find(G,I);})),"find",G);}},clone:function(I){var G=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var K=this.outerHTML;
if(!K){var L=this.ownerDocument.createElement("div");L.appendChild(this.cloneNode(true));K=L.innerHTML;}return o.clean([K.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];}else{return this.cloneNode(true);}});if(I===true){var J=this.find("*").andSelf(),H=0;G.find("*").andSelf().each(function(){if(this.nodeName!==J[H].nodeName){return;
}var K=o.data(J[H],"events");for(var M in K){for(var L in K[M]){o.event.add(this,M,K[M][L],K[M][L].data);}}H++;});}return G;},filter:function(G){return this.pushStack(o.isFunction(G)&&o.grep(this,function(I,H){return G.call(I,H);})||o.multiFilter(G,o.grep(this,function(H){return H.nodeType===1;})),"filter",G);
},closest:function(G){var I=o.expr.match.POS.test(G)?o(G):null,H=0;return this.map(function(){var J=this;while(J&&J.ownerDocument){if(I?I.index(J)>-1:o(J).is(G)){o.data(J,"closest",H);return J;}J=J.parentNode;H++;}});},not:function(G){if(typeof G==="string"){if(f.test(G)){return this.pushStack(o.multiFilter(G,this,true),"not",G);
}else{G=o.multiFilter(G,this);}}var H=G.length&&G[G.length-1]!==g&&!G.nodeType;return this.filter(function(){return H?o.inArray(this,G)<0:this!=G;});},add:function(G){return this.pushStack(o.unique(o.merge(this.get(),typeof G==="string"?o(G):o.makeArray(G))));},is:function(G){return !!G&&o.multiFilter(G,this).length>0;
},hasClass:function(G){return !!G&&this.is("."+G);},val:function(M){if(M===g){var G=this[0];if(G){if(o.nodeName(G,"option")){return(G.attributes.value||{}).specified?G.value:G.text;}if(o.nodeName(G,"select")){var K=G.selectedIndex,N=[],O=G.options,J=G.type=="select-one";if(K<0){return null;}for(var H=J?K:0,L=J?K+1:O.length;
H<L;H++){var I=O[H];if(I.selected){M=o(I).val();if(J){return M;}N.push(M);}}return N;}return(G.value||"").replace(/\r/g,"");}return g;}if(typeof M==="number"){M+="";}return this.each(function(){if(this.nodeType!=1){return;}if(o.isArray(M)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,M)>=0||o.inArray(this.name,M)>=0);
}else{if(o.nodeName(this,"select")){var P=o.makeArray(M);o("option",this).each(function(){this.selected=(o.inArray(this.value,P)>=0||o.inArray(this.text,P)>=0);});if(!P.length){this.selectedIndex=-1;}}else{this.value=M;}}});},html:function(G){return G===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(G);
},replaceWith:function(G){return this.after(G).remove();},eq:function(G){return this.slice(G,+G+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));},map:function(G){return this.pushStack(o.map(this,function(I,H){return G.call(I,H,I);
}));},andSelf:function(){return this.add(this.prevObject);},domManip:function(L,O,N){if(this[0]){var K=(this[0].ownerDocument||this[0]).createDocumentFragment(),H=o.clean(L,(this[0].ownerDocument||this[0]),K),J=K.firstChild;if(J){for(var I=0,G=this.length;I<G;I++){N.call(M(this[I],J),this.length>1||I>0?K.cloneNode(true):K);
}}if(H){o.each(H,B);}}return this;function M(P,Q){return O&&o.nodeName(P,"table")&&o.nodeName(Q,"tr")?(P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody"))):P;}}};o.fn.init.prototype=o.fn;function B(G,H){if(H.src){o.ajax({url:H.src,async:false,dataType:"script"});
}else{o.globalEval(H.text||H.textContent||H.innerHTML||"");}if(H.parentNode){H.parentNode.removeChild(H);}}function e(){return +new Date;}o.extend=o.fn.extend=function(){var L=arguments[0]||{},J=1,K=arguments.length,G=false,I;if(typeof L==="boolean"){G=L;L=arguments[1]||{};J=2;}if(typeof L!=="object"&&!o.isFunction(L)){L={};
}if(K==J){L=this;--J;}for(;J<K;J++){if((I=arguments[J])!=null){for(var H in I){var M=L[H],N=I[H];if(L===N){continue;}if(G&&N&&typeof N==="object"&&!N.nodeType){L[H]=o.extend(G,M||(N.length!=null?[]:{}),N);}else{if(N!==g){L[H]=N;}}}}}return L;};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},u=Object.prototype.toString;
o.extend({noConflict:function(G){l.$=p;if(G){l.jQuery=A;}return o;},isFunction:function(G){return u.call(G)==="[object Function]";},isArray:function(G){return u.call(G)==="[object Array]";},isXMLDoc:function(G){return G.nodeType===9&&G.documentElement.nodeName!=="HTML"||!!G.ownerDocument&&o.isXMLDoc(G.ownerDocument);
},globalEval:function(I){if(I&&/\S/.test(I)){var H=document.getElementsByTagName("head")[0]||document.documentElement,G=document.createElement("script");G.type="text/javascript";if(o.support.scriptEval){G.appendChild(document.createTextNode(I));}else{G.text=I;}H.insertBefore(G,H.firstChild);H.removeChild(G);
}},nodeName:function(H,G){return H.nodeName&&H.nodeName.toUpperCase()==G.toUpperCase();},each:function(I,M,H){var G,J=0,K=I.length;if(H){if(K===g){for(G in I){if(M.apply(I[G],H)===false){break;}}}else{for(;J<K;){if(M.apply(I[J++],H)===false){break;}}}}else{if(K===g){for(G in I){if(M.call(I[G],G,I[G])===false){break;
}}}else{for(var L=I[0];J<K&&M.call(L,J,L)!==false;L=I[++J]){}}}return I;},prop:function(J,K,I,H,G){if(o.isFunction(K)){K=K.call(J,H);}return typeof K==="number"&&I=="curCSS"&&!b.test(G)?K+"px":K;},className:{add:function(G,H){o.each((H||"").split(/\s+/),function(I,J){if(G.nodeType==1&&!o.className.has(G.className,J)){G.className+=(G.className?" ":"")+J;
}});},remove:function(G,H){if(G.nodeType==1){G.className=H!==g?o.grep(G.className.split(/\s+/),function(I){return !o.className.has(H,I);}).join(" "):"";}},has:function(H,G){return H&&o.inArray(G,(H.className||H).toString().split(/\s+/))>-1;}},swap:function(J,I,K){var G={};for(var H in I){G[H]=J.style[H];
J.style[H]=I[H];}K.call(J);for(var H in I){J.style[H]=G[H];}},css:function(J,H,L,G){if(H=="width"||H=="height"){var N,I={position:"absolute",visibility:"hidden",display:"block"},M=H=="width"?["Left","Right"]:["Top","Bottom"];function K(){N=H=="width"?J.offsetWidth:J.offsetHeight;if(G==="border"){return;
}o.each(M,function(){if(!G){N-=parseFloat(o.curCSS(J,"padding"+this,true))||0;}if(G==="margin"){N+=parseFloat(o.curCSS(J,"margin"+this,true))||0;}else{N-=parseFloat(o.curCSS(J,"border"+this+"Width",true))||0;}});}if(J.offsetWidth!==0){K();}else{o.swap(J,I,K);}return Math.max(0,Math.round(N));}return o.curCSS(J,H,L);
},curCSS:function(K,H,I){var N,G=K.style;if(H=="opacity"&&!o.support.opacity){N=o.attr(G,"opacity");return N==""?"1":N;}if(H.match(/float/i)){H=y;}if(!I&&G&&G[H]){N=G[H];}else{if(q.getComputedStyle){if(H.match(/float/i)){H="float";}H=H.replace(/([A-Z])/g,"-$1").toLowerCase();var O=q.getComputedStyle(K,null);
if(O){N=O.getPropertyValue(H);}if(H=="opacity"&&N==""){N="1";}}else{if(K.currentStyle){var L=H.replace(/\-(\w)/g,function(P,Q){return Q.toUpperCase();});N=K.currentStyle[H]||K.currentStyle[L];if(!/^\d+(px)?$/i.test(N)&&/^\d/.test(N)){var J=G.left,M=K.runtimeStyle.left;K.runtimeStyle.left=K.currentStyle.left;
G.left=N||0;N=G.pixelLeft+"px";G.left=J;K.runtimeStyle.left=M;}}}}return N;},clean:function(H,M,K){M=M||document;if(typeof M.createElement==="undefined"){M=M.ownerDocument||M[0]&&M[0].ownerDocument||document;}if(!K&&H.length===1&&typeof H[0]==="string"){var J=/^<(\w+)\s*\/?>$/.exec(H[0]);if(J){return[M.createElement(J[1])];
}}var I=[],G=[],N=M.createElement("div");o.each(H,function(R,U){if(typeof U==="number"){U+="";}if(!U){return;}if(typeof U==="string"){U=U.replace(/(<(\w+)[^>]*?)\/>/g,function(W,X,V){return V.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?W:X+"></"+V+">";});var Q=U.replace(/^\s+/,"").substring(0,10).toLowerCase();
var S=!Q.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!Q.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||Q.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!Q.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!Q.indexOf("<td")||!Q.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!Q.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
N.innerHTML=S[1]+U+S[2];while(S[0]--){N=N.lastChild;}if(!o.support.tbody){var T=/<tbody/i.test(U),P=!Q.indexOf("<table")&&!T?N.firstChild&&N.firstChild.childNodes:S[1]=="<table>"&&!T?N.childNodes:[];for(var O=P.length-1;O>=0;--O){if(o.nodeName(P[O],"tbody")&&!P[O].childNodes.length){P[O].parentNode.removeChild(P[O]);
}}}if(!o.support.leadingWhitespace&&/^\s/.test(U)){N.insertBefore(M.createTextNode(U.match(/^\s*/)[0]),N.firstChild);}U=o.makeArray(N.childNodes);}if(U.nodeType){I.push(U);}else{I=o.merge(I,U);}});if(K){for(var L=0;I[L];L++){if(o.nodeName(I[L],"script")&&(!I[L].type||I[L].type.toLowerCase()==="text/javascript")){G.push(I[L].parentNode?I[L].parentNode.removeChild(I[L]):I[L]);
}else{if(I[L].nodeType===1){I.splice.apply(I,[L+1,0].concat(o.makeArray(I[L].getElementsByTagName("script"))));}K.appendChild(I[L]);}}return G;}return I;},attr:function(L,I,M){if(!L||L.nodeType==3||L.nodeType==8){return g;}var J=!o.isXMLDoc(L),N=M!==g;I=J&&o.props[I]||I;if(L.tagName){var H=/href|src|style/.test(I);
if(I=="selected"&&L.parentNode){L.parentNode.selectedIndex;}if(I in L&&J&&!H){if(N){if(I=="type"&&o.nodeName(L,"input")&&L.parentNode){throw"type property can't be changed";}L[I]=M;}if(o.nodeName(L,"form")&&L.getAttributeNode(I)){return L.getAttributeNode(I).nodeValue;}if(I=="tabIndex"){var K=L.getAttributeNode("tabIndex");
return K&&K.specified?K.value:L.nodeName.match(/(button|input|object|select|textarea)/i)?0:L.nodeName.match(/^(a|area)$/i)&&L.href?0:g;}return L[I];}if(!o.support.style&&J&&I=="style"){return o.attr(L.style,"cssText",M);}if(N){L.setAttribute(I,""+M);}var G=!o.support.hrefNormalized&&J&&H?L.getAttribute(I,2):L.getAttribute(I);
return G===null?g:G;}if(!o.support.opacity&&I=="opacity"){if(N){L.zoom=1;L.filter=(L.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(M)+""=="NaN"?"":"alpha(opacity="+M*100+")");}return L.filter&&L.filter.indexOf("opacity=")>=0?(parseFloat(L.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";}I=I.replace(/-([a-z])/ig,function(O,P){return P.toUpperCase();
});if(N){L[I]=M;}return L[I];},trim:function(G){return(G||"").replace(/^\s+|\s+$/g,"");},makeArray:function(I){var G=[];if(I!=null){var H=I.length;if(H==null||typeof I==="string"||o.isFunction(I)||I.setInterval){G[0]=I;}else{while(H){G[--H]=I[H];}}}return G;},inArray:function(I,J){for(var G=0,H=J.length;
G<H;G++){if(J[G]===I){return G;}}return -1;},merge:function(J,G){var H=0,I,K=J.length;if(!o.support.getAll){while((I=G[H++])!=null){if(I.nodeType!=8){J[K++]=I;}}}else{while((I=G[H++])!=null){J[K++]=I;}}return J;},unique:function(M){var H=[],G={};try{for(var I=0,J=M.length;I<J;I++){var L=o.data(M[I]);
if(!G[L]){G[L]=true;H.push(M[I]);}}}catch(K){H=M;}return H;},grep:function(H,L,G){var I=[];for(var J=0,K=H.length;J<K;J++){if(!G!=!L(H[J],J)){I.push(H[J]);}}return I;},map:function(G,L){var H=[];for(var I=0,J=G.length;I<J;I++){var K=L(G[I],I);if(K!=null){H[H.length]=K;}}return H.concat.apply([],H);}});
var E=navigator.userAgent.toLowerCase();o.browser={version:(E.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(E),opera:/opera/.test(E),msie:/msie/.test(E)&&!/opera/.test(E),mozilla:/mozilla/.test(E)&&!/(compatible|webkit)/.test(E)};o.each({parent:function(G){return G.parentNode;
},parents:function(G){return o.dir(G,"parentNode");},next:function(G){return o.nth(G,2,"nextSibling");},prev:function(G){return o.nth(G,2,"previousSibling");},nextAll:function(G){return o.dir(G,"nextSibling");},prevAll:function(G){return o.dir(G,"previousSibling");},siblings:function(G){return o.sibling(G.parentNode.firstChild,G);
},children:function(G){return o.sibling(G.firstChild);},contents:function(G){return o.nodeName(G,"iframe")?G.contentDocument||G.contentWindow.document:o.makeArray(G.childNodes);}},function(G,H){o.fn[G]=function(I){var J=o.map(this,H);if(I&&typeof I=="string"){J=o.multiFilter(I,J);}return this.pushStack(o.unique(J),G,I);
};});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(G,H){o.fn[G]=function(I){var L=[],N=o(I);for(var M=0,J=N.length;M<J;M++){var K=(M>0?this.clone(true):this).get();o.fn[H].apply(o(N[M]),K);L=L.concat(K);}return this.pushStack(L,G,I);
};});o.each({removeAttr:function(G){o.attr(this,G,"");if(this.nodeType==1){this.removeAttribute(G);}},addClass:function(G){o.className.add(this,G);},removeClass:function(G){o.className.remove(this,G);},toggleClass:function(H,G){if(typeof G!=="boolean"){G=!o.className.has(this,H);}o.className[G?"add":"remove"](this,H);
},remove:function(G){if(!G||o.filter(G,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this);});if(this.parentNode){this.parentNode.removeChild(this);}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild);}}},function(G,H){o.fn[G]=function(){return this.each(H,arguments);
};});function j(G,H){return G[0]&&parseInt(o.curCSS(G[0],H,true),10)||0;}var h="jQuery"+e(),x=0,C={};o.extend({cache:{},data:function(H,G,I){H=H==l?C:H;var J=H[h];if(!J){J=H[h]=++x;}if(G&&!o.cache[J]){o.cache[J]={};}if(I!==g){o.cache[J][G]=I;}return G?o.cache[J][G]:J;},removeData:function(H,G){H=H==l?C:H;
var J=H[h];if(G){if(o.cache[J]){delete o.cache[J][G];G="";for(G in o.cache[J]){break;}if(!G){o.removeData(H);}}}else{try{delete H[h];}catch(I){if(H.removeAttribute){H.removeAttribute(h);}}delete o.cache[J];}},queue:function(H,G,J){if(H){G=(G||"fx")+"queue";var I=o.data(H,G);if(!I||o.isArray(J)){I=o.data(H,G,o.makeArray(J));
}else{if(J){I.push(J);}}}return I;},dequeue:function(J,I){var G=o.queue(J,I),H=G.shift();if(!I||I==="fx"){H=G[0];}if(H!==g){H.call(J);}}});o.fn.extend({data:function(G,I){var J=G.split(".");J[1]=J[1]?"."+J[1]:"";if(I===g){var H=this.triggerHandler("getData"+J[1]+"!",[J[0]]);if(H===g&&this.length){H=o.data(this[0],G);
}return H===g&&J[1]?this.data(J[0]):H;}else{return this.trigger("setData"+J[1]+"!",[J[0],I]).each(function(){o.data(this,G,I);});}},removeData:function(G){return this.each(function(){o.removeData(this,G);});},queue:function(G,H){if(typeof G!=="string"){H=G;G="fx";}if(H===g){return o.queue(this[0],G);
}return this.each(function(){var I=o.queue(this,G,H);if(G=="fx"&&I.length==1){I[0].call(this);}});},dequeue:function(G){return this.each(function(){o.dequeue(this,G);});}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var T=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,N=0,J=Object.prototype.toString;
var H=function(aa,W,ad,ae){ad=ad||[];W=W||document;if(W.nodeType!==1&&W.nodeType!==9){return[];}if(!aa||typeof aa!=="string"){return ad;}var ab=[],Y,ah,ak,V,af,X,Z=true;T.lastIndex=0;while((Y=T.exec(aa))!==null){ab.push(Y[1]);if(Y[2]){X=RegExp.rightContext;break;}}if(ab.length>1&&O.exec(aa)){if(ab.length===2&&K.relative[ab[0]]){ah=L(ab[0]+ab[1],W);
}else{ah=K.relative[ab[0]]?[W]:H(ab.shift(),W);while(ab.length){aa=ab.shift();if(K.relative[aa]){aa+=ab.shift();}ah=L(aa,ah);}}}else{var ag=ae?{expr:ab.pop(),set:G(ae)}:H.find(ab.pop(),ab.length===1&&W.parentNode?W.parentNode:W,S(W));ah=H.filter(ag.expr,ag.set);if(ab.length>0){ak=G(ah);}else{Z=false;
}while(ab.length){var aj=ab.pop(),ai=aj;if(!K.relative[aj]){aj="";}else{ai=ab.pop();}if(ai==null){ai=W;}K.relative[aj](ak,ai,S(W));}}if(!ak){ak=ah;}if(!ak){throw"Syntax error, unrecognized expression: "+(aj||aa);}if(J.call(ak)==="[object Array]"){if(!Z){ad.push.apply(ad,ak);}else{if(W.nodeType===1){for(var ac=0;
ak[ac]!=null;ac++){if(ak[ac]&&(ak[ac]===true||ak[ac].nodeType===1&&M(W,ak[ac]))){ad.push(ah[ac]);}}}else{for(var ac=0;ak[ac]!=null;ac++){if(ak[ac]&&ak[ac].nodeType===1){ad.push(ah[ac]);}}}}}else{G(ak,ad);}if(X){H(X,W,ad,ae);if(I){hasDuplicate=false;ad.sort(I);if(hasDuplicate){for(var ac=1;ac<ad.length;
ac++){if(ad[ac]===ad[ac-1]){ad.splice(ac--,1);}}}}}return ad;};H.matches=function(V,W){return H(V,null,null,W);};H.find=function(ac,V,ad){var ab,Z;if(!ac){return[];}for(var Y=0,X=K.order.length;Y<X;Y++){var aa=K.order[Y],Z;if((Z=K.match[aa].exec(ac))){var W=RegExp.leftContext;if(W.substr(W.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");
ab=K.find[aa](Z,V,ad);if(ab!=null){ac=ac.replace(K.match[aa],"");break;}}}}if(!ab){ab=V.getElementsByTagName("*");}return{set:ab,expr:ac};};H.filter=function(af,ae,ai,Y){var X=af,ak=[],ac=ae,aa,V,ab=ae&&ae[0]&&S(ae[0]);while(af&&ae.length){for(var ad in K.filter){if((aa=K.match[ad].exec(af))!=null){var W=K.filter[ad],aj,ah;
V=false;if(ac==ak){ak=[];}if(K.preFilter[ad]){aa=K.preFilter[ad](aa,ac,ai,ak,Y,ab);if(!aa){V=aj=true;}else{if(aa===true){continue;}}}if(aa){for(var Z=0;(ah=ac[Z])!=null;Z++){if(ah){aj=W(ah,aa,Z,ac);var ag=Y^!!aj;if(ai&&aj!=null){if(ag){V=true;}else{ac[Z]=false;}}else{if(ag){ak.push(ah);V=true;}}}}}if(aj!==g){if(!ai){ac=ak;
}af=af.replace(K.match[ad],"");if(!V){return[];}break;}}}if(af==X){if(V==null){throw"Syntax error, unrecognized expression: "+af;}else{break;}}X=af;}return ac;};var K=H.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|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(V){return V.getAttribute("href");
}},relative:{"+":function(ac,V,ab){var Z=typeof V==="string",ad=Z&&!/\W/.test(V),aa=Z&&!ad;if(ad&&!ab){V=V.toUpperCase();}for(var Y=0,X=ac.length,W;Y<X;Y++){if((W=ac[Y])){while((W=W.previousSibling)&&W.nodeType!==1){}ac[Y]=aa||W&&W.nodeName===V?W||false:W===V;}}if(aa){H.filter(V,ac,true);}},">":function(ab,W,ac){var Z=typeof W==="string";
if(Z&&!/\W/.test(W)){W=ac?W:W.toUpperCase();for(var X=0,V=ab.length;X<V;X++){var aa=ab[X];if(aa){var Y=aa.parentNode;ab[X]=Y.nodeName===W?Y:false;}}}else{for(var X=0,V=ab.length;X<V;X++){var aa=ab[X];if(aa){ab[X]=Z?aa.parentNode:aa.parentNode===W;}}if(Z){H.filter(W,ab,true);}}},"":function(Y,W,aa){var X=N++,V=U;
if(!W.match(/\W/)){var Z=W=aa?W:W.toUpperCase();V=R;}V("parentNode",W,X,Y,Z,aa);},"~":function(Y,W,aa){var X=N++,V=U;if(typeof W==="string"&&!W.match(/\W/)){var Z=W=aa?W:W.toUpperCase();V=R;}V("previousSibling",W,X,Y,Z,aa);}},find:{ID:function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var V=X.getElementById(W[1]);
return V?[V]:[];}},NAME:function(X,aa,ab){if(typeof aa.getElementsByName!=="undefined"){var W=[],Z=aa.getElementsByName(X[1]);for(var Y=0,V=Z.length;Y<V;Y++){if(Z[Y].getAttribute("name")===X[1]){W.push(Z[Y]);}}return W.length===0?null:W;}},TAG:function(V,W){return W.getElementsByTagName(V[1]);}},preFilter:{CLASS:function(Y,W,X,V,ab,ac){Y=" "+Y[1].replace(/\\/g,"")+" ";
if(ac){return Y;}for(var Z=0,aa;(aa=W[Z])!=null;Z++){if(aa){if(ab^(aa.className&&(" "+aa.className+" ").indexOf(Y)>=0)){if(!X){V.push(aa);}}else{if(X){W[Z]=false;}}}}return false;},ID:function(V){return V[1].replace(/\\/g,"");},TAG:function(W,V){for(var X=0;V[X]===false;X++){}return V[X]&&S(V[X])?W[1]:W[1].toUpperCase();
},CHILD:function(V){if(V[1]=="nth"){var W=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(V[2]=="even"&&"2n"||V[2]=="odd"&&"2n+1"||!/\D/.test(V[2])&&"0n+"+V[2]||V[2]);V[2]=(W[1]+(W[2]||1))-0;V[3]=W[3]-0;}V[0]=N++;return V;},ATTR:function(Z,W,X,V,aa,ab){var Y=Z[1].replace(/\\/g,"");if(!ab&&K.attrMap[Y]){Z[1]=K.attrMap[Y];
}if(Z[2]==="~="){Z[4]=" "+Z[4]+" ";}return Z;},PSEUDO:function(Z,W,X,V,aa){if(Z[1]==="not"){if(Z[3].match(T).length>1||/^\w/.test(Z[3])){Z[3]=H(Z[3],null,null,W);}else{var Y=H.filter(Z[3],W,X,true^aa);if(!X){V.push.apply(V,Y);}return false;}}else{if(K.match.POS.test(Z[0])||K.match.CHILD.test(Z[0])){return true;
}}return Z;},POS:function(V){V.unshift(true);return V;}},filters:{enabled:function(V){return V.disabled===false&&V.type!=="hidden";},disabled:function(V){return V.disabled===true;},checked:function(V){return V.checked===true;},selected:function(V){V.parentNode.selectedIndex;return V.selected===true;},parent:function(V){return !!V.firstChild;
},empty:function(V){return !V.firstChild;},has:function(X,W,V){return !!H(V[3],X).length;},header:function(V){return/h\d/i.test(V.nodeName);},text:function(V){return"text"===V.type;},radio:function(V){return"radio"===V.type;},checkbox:function(V){return"checkbox"===V.type;},file:function(V){return"file"===V.type;
},password:function(V){return"password"===V.type;},submit:function(V){return"submit"===V.type;},image:function(V){return"image"===V.type;},reset:function(V){return"reset"===V.type;},button:function(V){return"button"===V.type||V.nodeName.toUpperCase()==="BUTTON";},input:function(V){return/input|select|textarea|button/i.test(V.nodeName);
}},setFilters:{first:function(W,V){return V===0;},last:function(X,W,V,Y){return W===Y.length-1;},even:function(W,V){return V%2===0;},odd:function(W,V){return V%2===1;},lt:function(X,W,V){return W<V[3]-0;},gt:function(X,W,V){return W>V[3]-0;},nth:function(X,W,V){return V[3]-0==W;},eq:function(X,W,V){return V[3]-0==W;
}},filter:{PSEUDO:function(ab,X,Y,ac){var W=X[1],Z=K.filters[W];if(Z){return Z(ab,Y,X,ac);}else{if(W==="contains"){return(ab.textContent||ab.innerText||"").indexOf(X[3])>=0;}else{if(W==="not"){var aa=X[3];for(var Y=0,V=aa.length;Y<V;Y++){if(aa[Y]===ab){return false;}}return true;}}}},CHILD:function(V,Y){var ab=Y[1],W=V;
switch(ab){case"only":case"first":while(W=W.previousSibling){if(W.nodeType===1){return false;}}if(ab=="first"){return true;}W=V;case"last":while(W=W.nextSibling){if(W.nodeType===1){return false;}}return true;case"nth":var X=Y[2],ae=Y[3];if(X==1&&ae==0){return true;}var aa=Y[0],ad=V.parentNode;if(ad&&(ad.sizcache!==aa||!V.nodeIndex)){var Z=0;
for(W=ad.firstChild;W;W=W.nextSibling){if(W.nodeType===1){W.nodeIndex=++Z;}}ad.sizcache=aa;}var ac=V.nodeIndex-ae;if(X==0){return ac==0;}else{return(ac%X==0&&ac/X>=0);}}},ID:function(W,V){return W.nodeType===1&&W.getAttribute("id")===V;},TAG:function(W,V){return(V==="*"&&W.nodeType===1)||W.nodeName===V;
},CLASS:function(W,V){return(" "+(W.className||W.getAttribute("class"))+" ").indexOf(V)>-1;},ATTR:function(aa,Y){var X=Y[1],V=K.attrHandle[X]?K.attrHandle[X](aa):aa[X]!=null?aa[X]:aa.getAttribute(X),ab=V+"",Z=Y[2],W=Y[4];return V==null?Z==="!=":Z==="="?ab===W:Z==="*="?ab.indexOf(W)>=0:Z==="~="?(" "+ab+" ").indexOf(W)>=0:!W?ab&&V!==false:Z==="!="?ab!=W:Z==="^="?ab.indexOf(W)===0:Z==="$="?ab.substr(ab.length-W.length)===W:Z==="|="?ab===W||ab.substr(0,W.length+1)===W+"-":false;
},POS:function(Z,W,X,aa){var V=W[2],Y=K.setFilters[V];if(Y){return Y(Z,X,W,aa);}}}};var O=K.match.POS;for(var Q in K.match){K.match[Q]=RegExp(K.match[Q].source+/(?![^\[]*\])(?![^\(]*\))/.source);}var G=function(W,V){W=Array.prototype.slice.call(W);if(V){V.push.apply(V,W);return V;}return W;};try{Array.prototype.slice.call(document.documentElement.childNodes);
}catch(P){G=function(Z,Y){var W=Y||[];if(J.call(Z)==="[object Array]"){Array.prototype.push.apply(W,Z);}else{if(typeof Z.length==="number"){for(var X=0,V=Z.length;X<V;X++){W.push(Z[X]);}}else{for(var X=0;Z[X];X++){W.push(Z[X]);}}}return W;};}var I;if(document.documentElement.compareDocumentPosition){I=function(W,V){var X=W.compareDocumentPosition(V)&4?-1:W===V?0:1;
if(X===0){hasDuplicate=true;}return X;};}else{if("sourceIndex" in document.documentElement){I=function(W,V){var X=W.sourceIndex-V.sourceIndex;if(X===0){hasDuplicate=true;}return X;};}else{if(document.createRange){I=function(Y,W){var X=Y.ownerDocument.createRange(),V=W.ownerDocument.createRange();X.selectNode(Y);
X.collapse(true);V.selectNode(W);V.collapse(true);var Z=X.compareBoundaryPoints(Range.START_TO_END,V);if(Z===0){hasDuplicate=true;}return Z;};}}}(function(){var W=document.createElement("form"),X="script"+(new Date).getTime();W.innerHTML="<input name='"+X+"'/>";var V=document.documentElement;V.insertBefore(W,V.firstChild);
if(!!document.getElementById(X)){K.find.ID=function(Z,aa,ab){if(typeof aa.getElementById!=="undefined"&&!ab){var Y=aa.getElementById(Z[1]);return Y?Y.id===Z[1]||typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id").nodeValue===Z[1]?[Y]:g:[];}};K.filter.ID=function(aa,Y){var Z=typeof aa.getAttributeNode!=="undefined"&&aa.getAttributeNode("id");
return aa.nodeType===1&&Z&&Z.nodeValue===Y;};}V.removeChild(W);})();(function(){var V=document.createElement("div");V.appendChild(document.createComment(""));if(V.getElementsByTagName("*").length>0){K.find.TAG=function(W,aa){var Z=aa.getElementsByTagName(W[1]);if(W[1]==="*"){var Y=[];for(var X=0;Z[X];
X++){if(Z[X].nodeType===1){Y.push(Z[X]);}}Z=Y;}return Z;};}V.innerHTML="<a href='#'></a>";if(V.firstChild&&typeof V.firstChild.getAttribute!=="undefined"&&V.firstChild.getAttribute("href")!=="#"){K.attrHandle.href=function(W){return W.getAttribute("href",2);};}})();if(document.querySelectorAll){(function(){var V=H,W=document.createElement("div");
W.innerHTML="<p class='TEST'></p>";if(W.querySelectorAll&&W.querySelectorAll(".TEST").length===0){return;}H=function(aa,Z,X,Y){Z=Z||document;if(!Y&&Z.nodeType===9&&!S(Z)){try{return G(Z.querySelectorAll(aa),X);}catch(ab){}}return V(aa,Z,X,Y);};H.find=V.find;H.filter=V.filter;H.selectors=V.selectors;H.matches=V.matches;
})();}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var V=document.createElement("div");V.innerHTML="<div class='test e'></div><div class='test'></div>";if(V.getElementsByClassName("e").length===0){return;}V.lastChild.className="e";if(V.getElementsByClassName("e").length===1){return;
}K.order.splice(1,0,"CLASS");K.find.CLASS=function(W,X,Y){if(typeof X.getElementsByClassName!=="undefined"&&!Y){return X.getElementsByClassName(W[1]);}};})();}function R(W,ab,aa,af,ac,ae){var ad=W=="previousSibling"&&!ae;for(var Y=0,X=af.length;Y<X;Y++){var V=af[Y];if(V){if(ad&&V.nodeType===1){V.sizcache=aa;
V.sizset=Y;}V=V[W];var Z=false;while(V){if(V.sizcache===aa){Z=af[V.sizset];break;}if(V.nodeType===1&&!ae){V.sizcache=aa;V.sizset=Y;}if(V.nodeName===ab){Z=V;break;}V=V[W];}af[Y]=Z;}}}function U(W,ab,aa,af,ac,ae){var ad=W=="previousSibling"&&!ae;for(var Y=0,X=af.length;Y<X;Y++){var V=af[Y];if(V){if(ad&&V.nodeType===1){V.sizcache=aa;
V.sizset=Y;}V=V[W];var Z=false;while(V){if(V.sizcache===aa){Z=af[V.sizset];break;}if(V.nodeType===1){if(!ae){V.sizcache=aa;V.sizset=Y;}if(typeof ab!=="string"){if(V===ab){Z=true;break;}}else{if(H.filter(ab,[V]).length>0){Z=V;break;}}}V=V[W];}af[Y]=Z;}}}var M=document.compareDocumentPosition?function(W,V){return W.compareDocumentPosition(V)&16;
}:function(W,V){return W!==V&&(W.contains?W.contains(V):true);};var S=function(V){return V.nodeType===9&&V.documentElement.nodeName!=="HTML"||!!V.ownerDocument&&S(V.ownerDocument);};var L=function(V,ac){var Y=[],Z="",aa,X=ac.nodeType?[ac]:ac;while((aa=K.match.PSEUDO.exec(V))){Z+=aa[0];V=V.replace(K.match.PSEUDO,"");
}V=K.relative[V]?V+"*":V;for(var ab=0,W=X.length;ab<W;ab++){H(V,X[ab],Y);}return H.filter(Z,Y);};o.find=H;o.filter=H.filter;o.expr=H.selectors;o.expr[":"]=o.expr.filters;H.selectors.filters.hidden=function(V){return V.offsetWidth===0||V.offsetHeight===0;};H.selectors.filters.visible=function(V){return V.offsetWidth>0||V.offsetHeight>0;
};H.selectors.filters.animated=function(V){return o.grep(o.timers,function(W){return V===W.elem;}).length;};o.multiFilter=function(X,V,W){if(W){X=":not("+X+")";}return H.matches(X,V);};o.dir=function(X,W){var V=[],Y=X[W];while(Y&&Y!=document){if(Y.nodeType==1){V.push(Y);}Y=Y[W];}return V;};o.nth=function(Z,V,X,Y){V=V||1;
var W=0;for(;Z;Z=Z[X]){if(Z.nodeType==1&&++W==V){break;}}return Z;};o.sibling=function(X,W){var V=[];for(;X;X=X.nextSibling){if(X.nodeType==1&&X!=W){V.push(X);}}return V;};return;l.Sizzle=H;})();o.event={add:function(K,H,J,M){if(K.nodeType==3||K.nodeType==8){return;}if(K.setInterval&&K!=l){K=l;}if(!J.guid){J.guid=this.guid++;
}if(M!==g){var I=J;J=this.proxy(I);J.data=M;}var G=o.data(K,"events")||o.data(K,"events",{}),L=o.data(K,"handle")||o.data(K,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g;});L.elem=K;o.each(H.split(/\s+/),function(O,P){var Q=P.split(".");
P=Q.shift();J.type=Q.slice().sort().join(".");var N=G[P];if(o.event.specialAll[P]){o.event.specialAll[P].setup.call(K,M,Q);}if(!N){N=G[P]={};if(!o.event.special[P]||o.event.special[P].setup.call(K,M,Q)===false){if(K.addEventListener){K.addEventListener(P,L,false);}else{if(K.attachEvent){K.attachEvent("on"+P,L);
}}}}N[J.guid]=J;o.event.global[P]=true;});K=null;},guid:1,global:{},remove:function(M,J,L){if(M.nodeType==3||M.nodeType==8){return;}var I=o.data(M,"events"),H,G;if(I){if(J===g||(typeof J==="string"&&J.charAt(0)==".")){for(var K in I){this.remove(M,K+(J||""));}}else{if(J.type){L=J.handler;J=J.type;}o.each(J.split(/\s+/),function(O,Q){var S=Q.split(".");
Q=S.shift();var P=RegExp("(^|\\.)"+S.slice().sort().join(".*\\.")+"(\\.|$)");if(I[Q]){if(L){delete I[Q][L.guid];}else{for(var R in I[Q]){if(P.test(I[Q][R].type)){delete I[Q][R];}}}if(o.event.specialAll[Q]){o.event.specialAll[Q].teardown.call(M,S);}for(H in I[Q]){break;}if(!H){if(!o.event.special[Q]||o.event.special[Q].teardown.call(M,S)===false){if(M.removeEventListener){M.removeEventListener(Q,o.data(M,"handle"),false);
}else{if(M.detachEvent){M.detachEvent("on"+Q,o.data(M,"handle"));}}}H=null;delete I[Q];}}});}for(H in I){break;}if(!H){var N=o.data(M,"handle");if(N){N.elem=null;}o.removeData(M,"events");o.removeData(M,"handle");}}},trigger:function(K,M,J,G){var I=K.type||K;if(!G){K=typeof K==="object"?K[h]?K:o.extend(o.Event(I),K):o.Event(I);
if(I.indexOf("!")>=0){K.type=I=I.slice(0,-1);K.exclusive=true;}if(!J){K.stopPropagation();if(this.global[I]){o.each(o.cache,function(){if(this.events&&this.events[I]){o.event.trigger(K,M,this.handle.elem);}});}}if(!J||J.nodeType==3||J.nodeType==8){return g;}K.result=g;K.target=J;M=o.makeArray(M);M.unshift(K);
}K.currentTarget=J;var L=o.data(J,"handle");if(L){L.apply(J,M);}if((!J[I]||(o.nodeName(J,"a")&&I=="click"))&&J["on"+I]&&J["on"+I].apply(J,M)===false){K.result=false;}if(!G&&J[I]&&!K.isDefaultPrevented()&&!(o.nodeName(J,"a")&&I=="click")){this.triggered=true;try{J[I]();}catch(N){}}this.triggered=false;
if(!K.isPropagationStopped()){var H=J.parentNode||J.ownerDocument;if(H){o.event.trigger(K,M,H,true);}}},handle:function(M){var L,G;M=arguments[0]=o.event.fix(M||l.event);M.currentTarget=this;var N=M.type.split(".");M.type=N.shift();L=!N.length&&!M.exclusive;var K=RegExp("(^|\\.)"+N.slice().sort().join(".*\\.")+"(\\.|$)");
G=(o.data(this,"events")||{})[M.type];for(var I in G){var J=G[I];if(L||K.test(J.type)){M.handler=J;M.data=J.data;var H=J.apply(this,arguments);if(H!==g){M.result=H;if(H===false){M.preventDefault();M.stopPropagation();}}if(M.isImmediatePropagationStopped()){break;}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(J){if(J[h]){return J;
}var H=J;J=o.Event(H);for(var I=this.props.length,L;I;){L=this.props[--I];J[L]=H[L];}if(!J.target){J.target=J.srcElement||document;}if(J.target.nodeType==3){J.target=J.target.parentNode;}if(!J.relatedTarget&&J.fromElement){J.relatedTarget=J.fromElement==J.target?J.toElement:J.fromElement;}if(J.pageX==null&&J.clientX!=null){var K=document.documentElement,G=document.body;
J.pageX=J.clientX+(K&&K.scrollLeft||G&&G.scrollLeft||0)-(K.clientLeft||0);J.pageY=J.clientY+(K&&K.scrollTop||G&&G.scrollTop||0)-(K.clientTop||0);}if(!J.which&&((J.charCode||J.charCode===0)?J.charCode:J.keyCode)){J.which=J.charCode||J.keyCode;}if(!J.metaKey&&J.ctrlKey){J.metaKey=J.ctrlKey;}if(!J.which&&J.button){J.which=(J.button&1?1:(J.button&2?3:(J.button&4?2:0)));
}return J;},proxy:function(H,G){G=G||function(){return H.apply(this,arguments);};G.guid=H.guid=H.guid||G.guid||this.guid++;return G;},special:{ready:{setup:D,teardown:function(){}}},specialAll:{live:{setup:function(G,H){o.event.add(this,H[0],c);},teardown:function(I){if(I.length){var G=0,H=RegExp("(^|\\.)"+I[0]+"(\\.|$)");
o.each((o.data(this,"events").live||{}),function(){if(H.test(this.type)){G++;}});if(G<1){o.event.remove(this,I[0],c);}}}}}};o.Event=function(G){if(!this.preventDefault){return new o.Event(G);}if(G&&G.type){this.originalEvent=G;this.type=G.type;}else{this.type=G;}this.timeStamp=e();this[h]=true;};function k(){return false;
}function w(){return true;}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=w;var G=this.originalEvent;if(!G){return;}if(G.preventDefault){G.preventDefault();}G.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=w;var G=this.originalEvent;if(!G){return;}if(G.stopPropagation){G.stopPropagation();
}G.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=w;this.stopPropagation();},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(H){var G=H.relatedTarget;while(G&&G!=this){try{G=G.parentNode;}catch(I){G=this;}}if(G!=this){H.type=H.data;
o.event.handle.apply(this,arguments);}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(H,G){o.event.special[G]={setup:function(){o.event.add(this,H,a,G);},teardown:function(){o.event.remove(this,H,a);}};});o.fn.extend({bind:function(H,I,G){return H=="unload"?this.one(H,I,G):this.each(function(){o.event.add(this,H,G||I,G&&I);
});},one:function(I,J,H){var G=o.event.proxy(H||J,function(K){o(this).unbind(K,G);return(H||J).apply(this,arguments);});return this.each(function(){o.event.add(this,I,G,H&&J);});},unbind:function(H,G){return this.each(function(){o.event.remove(this,H,G);});},trigger:function(G,H){return this.each(function(){o.event.trigger(G,H,this);
});},triggerHandler:function(G,I){if(this[0]){var H=o.Event(G);H.preventDefault();H.stopPropagation();o.event.trigger(H,I,this[0]);return H.result;}},toggle:function(I){var G=arguments,H=1;while(H<G.length){o.event.proxy(I,G[H++]);}return this.click(o.event.proxy(I,function(J){this.lastToggle=(this.lastToggle||0)%H;
J.preventDefault();return G[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(G,H){return this.mouseenter(G).mouseleave(H);},ready:function(G){D();if(o.isReady){G.call(document,o);}else{o.readyList.push(G);}return this;},live:function(I,H){var G=o.event.proxy(H);G.guid+=this.selector+I;
o(document).bind(i(I,this.selector),this.selector,G);return this;},die:function(H,G){o(document).unbind(i(H,this.selector),G?{guid:G.guid+this.selector+H}:null);return this;}});function c(J){var G=RegExp("(^|\\.)"+J.type+"(\\.|$)"),I=true,H=[];o.each(o.data(this,"events").live||[],function(K,L){if(G.test(L.type)){var M=o(J.target).closest(L.data)[0];
if(M){H.push({elem:M,fn:L});}}});H.sort(function(L,K){return o.data(L.elem,"closest")-o.data(K.elem,"closest");});o.each(H,function(){if(this.fn.call(this.elem,J,this.fn.data)===false){return(I=false);}});return I;}function i(H,G){return["live",H,G.replace(/\./g,"`").replace(/ /g,"|")].join(".");}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;
if(o.readyList){o.each(o.readyList,function(){this.call(document,o);});o.readyList=null;}o(document).triggerHandler("ready");}}});var z=false;function D(){if(z){return;}z=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
o.ready();},false);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready();}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return;}try{document.documentElement.doScroll("left");
}catch(G){setTimeout(arguments.callee,0);return;}o.ready();})();}}}o.event.add(l,"load",o.ready);}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,"+"change,select,submit,keydown,keypress,keyup,error").split(","),function(H,G){o.fn[G]=function(I){return I?this.bind(G,I):this.trigger(G);
};});o(l).bind("unload",function(){for(var G in o.cache){if(G!=1&&o.cache[G].handle){o.event.remove(o.cache[G].handle.elem);}}});(function(){o.support={};var H=document.documentElement,I=document.createElement("script"),M=document.createElement("div"),L="script"+(new Date).getTime();M.style.display="none";
M.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var J=M.getElementsByTagName("*"),G=M.getElementsByTagName("a")[0];if(!J||!J.length||!G){return;}o.support={leadingWhitespace:M.firstChild.nodeType==3,tbody:!M.getElementsByTagName("tbody").length,objectAll:!!M.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!M.getElementsByTagName("link").length,style:/red/.test(G.getAttribute("style")),hrefNormalized:G.getAttribute("href")==="/a",opacity:G.style.opacity==="0.5",cssFloat:!!G.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
I.type="text/javascript";try{I.appendChild(document.createTextNode("window."+L+"=1;"));}catch(K){}H.insertBefore(I,H.firstChild);if(l[L]){o.support.scriptEval=true;delete l[L];}H.removeChild(I);if(M.attachEvent&&M.fireEvent){M.attachEvent("onclick",function(){o.support.noCloneEvent=false;M.detachEvent("onclick",arguments.callee);
});M.cloneNode(true).fireEvent("onclick");}o(function(){var N=document.createElement("div");N.style.width=N.style.paddingLeft="1px";document.body.appendChild(N);o.boxModel=o.support.boxModel=N.offsetWidth===2;document.body.removeChild(N).style.display="none";});})();var y=o.support.cssFloat?"cssFloat":"styleFloat";
o.props={"for":"htmlFor","class":"className","float":y,cssFloat:y,styleFloat:y,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(I,L,M){if(typeof I!=="string"){return this._load(I);}var K=I.indexOf(" ");
if(K>=0){var G=I.slice(K,I.length);I=I.slice(0,K);}var J="GET";if(L){if(o.isFunction(L)){M=L;L=null;}else{if(typeof L==="object"){L=o.param(L);J="POST";}}}var H=this;o.ajax({url:I,type:J,dataType:"html",data:L,complete:function(O,N){if(N=="success"||N=="notmodified"){H.html(G?o("<div/>").append(O.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(G):O.responseText);
}if(M){H.each(M,[O.responseText,N,O]);}}});return this;},serialize:function(){return o.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));
}).map(function(G,H){var I=o(this).val();return I==null?null:o.isArray(I)?o.map(I,function(K,J){return{name:H.name,value:K};}):{name:H.name,value:I};}).get();}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(G,H){o.fn[H]=function(I){return this.bind(H,I);
};});var t=e();o.extend({get:function(G,I,J,H){if(o.isFunction(I)){J=I;I=null;}return o.ajax({type:"GET",url:G,data:I,success:J,dataType:H});},getScript:function(G,H){return o.get(G,null,H,"script");},getJSON:function(G,H,I){return o.get(G,H,I,"json");},post:function(G,I,J,H){if(o.isFunction(I)){J=I;
I={};}return o.ajax({type:"POST",url:G,data:I,success:J,dataType:H});},ajaxSetup:function(G){o.extend(o.ajaxSettings,G);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(O){O=o.extend(true,O,o.extend(true,{},o.ajaxSettings,O));var Y,H=/=\?(&|$)/g,T,X,I=O.type.toUpperCase();
if(O.data&&O.processData&&typeof O.data!=="string"){O.data=o.param(O.data);}if(O.dataType=="jsonp"){if(I=="GET"){if(!O.url.match(H)){O.url+=(O.url.match(/\?/)?"&":"?")+(O.jsonp||"callback")+"=?";}}else{if(!O.data||!O.data.match(H)){O.data=(O.data?O.data+"&":"")+(O.jsonp||"callback")+"=?";}}O.dataType="json";
}if(O.dataType=="json"&&(O.data&&O.data.match(H)||O.url.match(H))){Y="jsonp"+t++;if(O.data){O.data=(O.data+"").replace(H,"="+Y+"$1");}O.url=O.url.replace(H,"="+Y+"$1");O.dataType="script";l[Y]=function(Z){X=Z;K();N();l[Y]=g;try{delete l[Y];}catch(aa){}if(J){J.removeChild(V);}};}if(O.dataType=="script"&&O.cache==null){O.cache=false;
}if(O.cache===false&&I=="GET"){var G=e();var W=O.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+G+"$2");O.url=W+((W==O.url)?(O.url.match(/\?/)?"&":"?")+"_="+G:"");}if(O.data&&I=="GET"){O.url+=(O.url.match(/\?/)?"&":"?")+O.data;O.data=null;}if(O.global&&!o.active++){o.event.trigger("ajaxStart");}var S=/^(\w+:)?\/\/([^\/?#]+)/.exec(O.url);
if(O.dataType=="script"&&I=="GET"&&S&&(S[1]&&S[1]!=location.protocol||S[2]!=location.host)){var J=document.getElementsByTagName("head")[0];var V=document.createElement("script");V.src=O.url;if(O.scriptCharset){V.charset=O.scriptCharset;}if(!Y){var Q=false;V.onload=V.onreadystatechange=function(){if(!Q&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){Q=true;
K();N();V.onload=V.onreadystatechange=null;J.removeChild(V);}};}J.appendChild(V);return g;}var M=false;var L=O.xhr();if(O.username){L.open(I,O.url,O.async,O.username,O.password);}else{L.open(I,O.url,O.async);}try{if(O.data){L.setRequestHeader("Content-Type",O.contentType);}if(O.ifModified){L.setRequestHeader("If-Modified-Since",o.lastModified[O.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}L.setRequestHeader("X-Requested-With","XMLHttpRequest");L.setRequestHeader("Accept",O.dataType&&O.accepts[O.dataType]?O.accepts[O.dataType]+", */*":O.accepts._default);}catch(U){}if(O.beforeSend&&O.beforeSend(L,O)===false){if(O.global&&!--o.active){o.event.trigger("ajaxStop");}L.abort();return false;
}if(O.global){o.event.trigger("ajaxSend",[L,O]);}var P=function(Z){if(L.readyState==0){if(R){clearInterval(R);R=null;if(O.global&&!--o.active){o.event.trigger("ajaxStop");}}}else{if(!M&&L&&(L.readyState==4||Z=="timeout")){M=true;if(R){clearInterval(R);R=null;}T=Z=="timeout"?"timeout":!o.httpSuccess(L)?"error":O.ifModified&&o.httpNotModified(L,O.url)?"notmodified":"success";
if(T=="success"){try{X=o.httpData(L,O.dataType,O);}catch(ab){T="parsererror";}}if(T=="success"){var aa;try{aa=L.getResponseHeader("Last-Modified");}catch(ab){}if(O.ifModified&&aa){o.lastModified[O.url]=aa;}if(!Y){K();}}else{o.handleError(O,L,T);}N();if(Z){L.abort();}if(O.async){L=null;}}}};if(O.async){var R=setInterval(P,13);
if(O.timeout>0){setTimeout(function(){if(L&&!M){P("timeout");}},O.timeout);}}try{L.send(O.data);}catch(U){o.handleError(O,L,null,U);}if(!O.async){P();}function K(){if(O.success){O.success(X,T);}if(O.global){o.event.trigger("ajaxSuccess",[L,O]);}}function N(){if(O.complete){O.complete(L,T);}if(O.global){o.event.trigger("ajaxComplete",[L,O]);
}if(O.global&&!--o.active){o.event.trigger("ajaxStop");}}return L;},handleError:function(H,J,G,I){if(H.error){H.error(J,G,I);}if(H.global){o.event.trigger("ajaxError",[J,H,I]);}},active:0,httpSuccess:function(H){try{return !H.status&&location.protocol=="file:"||(H.status>=200&&H.status<300)||H.status==304||H.status==1223;
}catch(G){}return false;},httpNotModified:function(I,G){try{var J=I.getResponseHeader("Last-Modified");return I.status==304||J==o.lastModified[G];}catch(H){}return false;},httpData:function(L,J,I){var H=L.getResponseHeader("content-type"),G=J=="xml"||!J&&H&&H.indexOf("xml")>=0,K=G?L.responseXML:L.responseText;
if(G&&K.documentElement.tagName=="parsererror"){throw"parsererror";}if(I&&I.dataFilter){K=I.dataFilter(K,J);}if(typeof K==="string"){if(J=="script"){o.globalEval(K);}if(J=="json"){K=l["eval"]("("+K+")");}}return K;},param:function(G){var I=[];function J(K,L){I[I.length]=encodeURIComponent(K)+"="+encodeURIComponent(L);
}if(o.isArray(G)||G.jquery){o.each(G,function(){J(this.name,this.value);});}else{for(var H in G){if(o.isArray(G[H])){o.each(G[H],function(){J(H,this);});}else{J(H,o.isFunction(G[H])?G[H]():G[H]);}}}return I.join("&").replace(/%20/g,"+");}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function v(H,G){var I={};o.each(d.concat.apply([],d.slice(0,G)),function(){I[this]=H;});return I;}o.fn.extend({show:function(L,N){if(L){return this.animate(v("show",3),L,N);}else{for(var J=0,H=this.length;J<H;J++){var G=o.data(this[J],"olddisplay");this[J].style.display=G||"";if(o.css(this[J],"display")==="none"){var I=this[J].tagName,M;
if(m[I]){M=m[I];}else{var K=o("<"+I+" />").appendTo("body");M=K.css("display");if(M==="none"){M="block";}K.remove();m[I]=M;}o.data(this[J],"olddisplay",M);}}for(var J=0,H=this.length;J<H;J++){this[J].style.display=o.data(this[J],"olddisplay")||"";}return this;}},hide:function(J,K){if(J){return this.animate(v("hide",3),J,K);
}else{for(var I=0,H=this.length;I<H;I++){var G=o.data(this[I],"olddisplay");if(!G&&G!=="none"){o.data(this[I],"olddisplay",o.css(this[I],"display"));}}for(var I=0,H=this.length;I<H;I++){this[I].style.display="none";}return this;}},_toggle:o.fn.toggle,toggle:function(I,H){var G=typeof I==="boolean";return o.isFunction(I)&&o.isFunction(H)?this._toggle.apply(this,arguments):I==null||G?this.each(function(){var J=G?I:o(this).is(":hidden");
o(this)[J?"show":"hide"]();}):this.animate(v("toggle",3),I,H);},fadeTo:function(G,I,H){return this.animate({opacity:I},G,H);},animate:function(K,H,J,I){var G=o.speed(H,J,I);return this[G.queue===false?"each":"queue"](function(){var M=o.extend({},G),O,N=this.nodeType==1&&o(this).is(":hidden"),L=this;for(O in K){if(K[O]=="hide"&&N||K[O]=="show"&&!N){return M.complete.call(this);
}if((O=="height"||O=="width")&&this.style){M.display=o.css(this,"display");M.overflow=this.style.overflow;}}if(M.overflow!=null){this.style.overflow="hidden";}M.curAnim=o.extend({},K);o.each(K,function(Q,U){var T=new o.fx(L,M,Q);if(/toggle|show|hide/.test(U)){T[U=="toggle"?N?"show":"hide":U](K);}else{var S=U.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),V=T.cur(true)||0;
if(S){var P=parseFloat(S[2]),R=S[3]||"px";if(R!="px"){L.style[Q]=(P||1)+R;V=((P||1)/T.cur(true))*V;L.style[Q]=V+R;}if(S[1]){P=((S[1]=="-="?-1:1)*P)+V;}T.custom(V,P,R);}else{T.custom(V,U,"");}}});return true;});},stop:function(H,G){var I=o.timers;if(H){this.queue([]);}this.each(function(){for(var J=I.length-1;
J>=0;J--){if(I[J].elem==this){if(G){I[J](true);}I.splice(J,1);}}});if(!G){this.dequeue();}return this;}});o.each({slideDown:v("show",1),slideUp:v("hide",1),slideToggle:v("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(G,H){o.fn[G]=function(I,J){return this.animate(H,I,J);};});o.extend({speed:function(I,J,H){var G=typeof I==="object"?I:{complete:H||!H&&J||o.isFunction(I)&&I,duration:I,easing:H&&J||J&&!o.isFunction(J)&&J};
G.duration=o.fx.off?0:typeof G.duration==="number"?G.duration:o.fx.speeds[G.duration]||o.fx.speeds._default;G.old=G.complete;G.complete=function(){if(G.queue!==false){o(this).dequeue();}if(o.isFunction(G.old)){G.old.call(this);}};return G;},easing:{linear:function(I,J,G,H){return G+H*I;},swing:function(I,J,G,H){return((-Math.cos(I*Math.PI)/2)+0.5)*H+G;
}},timers:[],fx:function(H,G,I){this.options=G;this.elem=H;this.prop=I;if(!G.orig){G.orig={};}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block";
}},cur:function(H){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}var G=parseFloat(o.css(this.elem,this.prop,H));return G&&G>-10000?G:parseFloat(o.curCSS(this.elem,this.prop))||0;},custom:function(K,J,I){this.startTime=e();this.start=K;
this.end=J;this.unit=I||this.unit||"px";this.now=this.start;this.pos=this.state=0;var G=this;function H(L){return G.step(L);}H.elem=this.elem;if(H()&&o.timers.push(H)&&!n){n=setInterval(function(){var M=o.timers;for(var L=0;L<M.length;L++){if(!M[L]()){M.splice(L--,1);}}if(!M.length){clearInterval(n);
n=g;}},13);}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show();},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;
this.custom(this.cur(),0);},step:function(J){var I=e();if(J||I>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var G=true;for(var H in this.options.curAnim){if(this.options.curAnim[H]!==true){G=false;}}if(G){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block";}}if(this.options.hide){o(this.elem).hide();}if(this.options.hide||this.options.show){for(var K in this.options.curAnim){o.attr(this.elem.style,K,this.options.orig[K]);}}this.options.complete.call(this.elem);
}return false;}else{var L=I-this.startTime;this.state=L/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,L,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(G){o.attr(G.elem.style,"opacity",G.now);
},_default:function(G){if(G.elem.style&&G.elem.style[G.prop]!=null){G.elem.style[G.prop]=G.now+G.unit;}else{G.elem[G.prop]=G.now;}}}});if(document.documentElement["getBoundingClientRect"]){o.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0]);
}var I=this[0].getBoundingClientRect(),L=this[0].ownerDocument,H=L.body,G=L.documentElement,N=G.clientTop||H.clientTop||0,M=G.clientLeft||H.clientLeft||0,K=I.top+(self.pageYOffset||o.boxModel&&G.scrollTop||H.scrollTop)-N,J=I.left+(self.pageXOffset||o.boxModel&&G.scrollLeft||H.scrollLeft)-M;return{top:K,left:J};
};}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0]);}o.offset.initialized||o.offset.initialize();var L=this[0],I=L.offsetParent,H=L,Q=L.ownerDocument,O,J=Q.documentElement,M=Q.body,N=Q.defaultView,G=N.getComputedStyle(L,null),P=L.offsetTop,K=L.offsetLeft;
while((L=L.parentNode)&&L!==M&&L!==J){O=N.getComputedStyle(L,null);P-=L.scrollTop,K-=L.scrollLeft;if(L===I){P+=L.offsetTop,K+=L.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.tagName))){P+=parseInt(O.borderTopWidth,10)||0,K+=parseInt(O.borderLeftWidth,10)||0;
}H=I,I=L.offsetParent;}if(o.offset.subtractsBorderForOverflowNotVisible&&O.overflow!=="visible"){P+=parseInt(O.borderTopWidth,10)||0,K+=parseInt(O.borderLeftWidth,10)||0;}G=O;}if(G.position==="relative"||G.position==="static"){P+=M.offsetTop,K+=M.offsetLeft;}if(G.position==="fixed"){P+=Math.max(J.scrollTop,M.scrollTop),K+=Math.max(J.scrollLeft,M.scrollLeft);
}return{top:P,left:K};};}o.offset={initialize:function(){if(this.initialized){return;}var N=document.body,H=document.createElement("div"),J,I,P,K,O,G,L=N.style.marginTop,M='<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>';
O={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(G in O){H.style[G]=O[G];}H.innerHTML=M;N.insertBefore(H,N.firstChild);J=H.firstChild,I=J.firstChild,K=J.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(I.offsetTop!==5);this.doesAddBorderForTableAndCells=(K.offsetTop===5);
J.style.overflow="hidden",J.style.position="relative";this.subtractsBorderForOverflowNotVisible=(I.offsetTop===-5);N.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(N.offsetTop===0);N.style.marginTop=L;N.removeChild(H);this.initialized=true;},bodyOffset:function(G){o.offset.initialized||o.offset.initialize();
var I=G.offsetTop,H=G.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){I+=parseInt(o.curCSS(G,"marginTop",true),10)||0,H+=parseInt(o.curCSS(G,"marginLeft",true),10)||0;}return{top:I,left:H};}};o.fn.extend({position:function(){var K=0,J=0,H;if(this[0]){var I=this.offsetParent(),L=this.offset(),G=/^body|html$/i.test(I[0].tagName)?{top:0,left:0}:I.offset();
L.top-=j(this,"marginTop");L.left-=j(this,"marginLeft");G.top+=j(I,"borderTopWidth");G.left+=j(I,"borderLeftWidth");H={top:L.top-G.top,left:L.left-G.left};}return H;},offsetParent:function(){var G=this[0].offsetParent||document.body;while(G&&(!/^body|html$/i.test(G.tagName)&&o.css(G,"position")=="static")){G=G.offsetParent;
}return o(G);}});o.each(["Left","Top"],function(H,G){var I="scroll"+G;o.fn[I]=function(J){if(!this[0]){return null;}return J!==g?this.each(function(){this==l||this==document?l.scrollTo(!H?J:o(l).scrollLeft(),H?J:o(l).scrollTop()):this[I]=J;}):this[0]==l||this[0]==document?self[H?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[I]||document.body[I]:this[0][I];
};});o.each(["Height","Width"],function(K,I){var G=K?"Left":"Top",J=K?"Right":"Bottom",H=I.toLowerCase();o.fn["inner"+I]=function(){return this[0]?o.css(this[0],H,false,"padding"):null;};o.fn["outer"+I]=function(M){return this[0]?o.css(this[0],H,false,M?"margin":"border"):null;};var L=I.toLowerCase();
o.fn[L]=function(M){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+I]||document.body["client"+I]:this[0]==document?Math.max(document.documentElement["client"+I],document.body["scroll"+I],document.documentElement["scroll"+I],document.body["offset"+I],document.documentElement["offset"+I]):M===g?(this.length?o.css(this[0],L):null):this.css(L,typeof M==="string"?M:M+"px");
};});})();(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(g.state==0){g.start=c(g.elem,e);g.end=b(g.end);}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")";
};});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f;}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])];}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55];
}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)];}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)];}return a[d.trim(f).toLowerCase()];}function c(g,e){var f;
do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break;}e="backgroundColor";}while(g=g.parentNode);return b(f);}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};
})(jQuery);jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]]);}},call:function(j,l,k){var n=j.plugins[l];
if(!n||!j.element[0].parentNode){return;}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k);}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j);},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false;
}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true;}m[j]=1;l=(m[j]>0);m[j]=0;return l;},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l));},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l);},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};
if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)));
};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""));}):e.call(this,j));};}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove");});return i.apply(this,arguments);},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui");
},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1));
}).eq(0);}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1));}).eq(0);}return(/fixed/).test(this.css("position"))||!j.length?c(document):j;}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3]);
},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length;},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable");
}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p);}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"));}return(c.inArray(o,j)!=-1);}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);
if(n&&p.substring(0,1)=="_"){return this;}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined);}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o));});};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;
this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,t){if(q.target==o){return m._setData(p,t);}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p);
}}).bind("remove",function(){return m.destroy();});};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option";};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled"+" "+this.namespace+"-state-disabled").removeAttr("aria-disabled");
},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l);}k={};k[l]=m;}c.each(k,function(n,o){j._setData(n,o);});},_getData:function(j){return this.options[j];},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+this.namespace+"-state-disabled").attr("aria-disabled",k);
}},enable:function(){this._setData("disabled",false);},disable:function(){this._setData("disabled",true);},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];
m[o]=m.originalEvent[o];}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented());}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k);
}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false;}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on");}this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable));},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return;}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);
if(!m||j||!this._mouseCapture(l)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true;},this.options.delay);}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);
if(!this._mouseStarted){l.preventDefault();return true;}}this._mouseMoveDelegate=function(n){return k._mouseMove(n);};this._mouseUpDelegate=function(n){return k._mouseUp(n);};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true;},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j);}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault();}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);
(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j));}return !this._mouseStarted;},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);
this._mouseStop(j);}return false;},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance);},_mouseDelayMet:function(j){return this.mouseDelayMet;},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true;
}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;
this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";
this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};
this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};
$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>');}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments);
}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this;},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue);
}catch(err){inlineSettings[attrName]=attrValue;}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid);}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst);
}else{if(inline){this._inlineDatepicker(target,inst);}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))};
},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return;}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");
input[isRTL?"before":"after"](inst.append);}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker);}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));
input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker();}else{$.datepicker._showDatepicker(target);}return false;});}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value;
}).bind("getData.datepicker",function(event,key){return this._get(inst,key);});$.data(target,PROP_NAME,inst);},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return;}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value;
}).bind("getData.datepicker",function(event,key){return this._get(inst,key);});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst);},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;
if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst);
}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY];}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;
this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv);}$.data(this._dialogInput[0],PROP_NAME,inst);return this;},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return;
}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress);}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty();
}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return;}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false;}).end().filter("img").css({opacity:"1.0",cursor:""});
}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled");}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value);});},_disableDatepicker:function(target){var $target=$(target);
var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return;}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true;}).end().filter("img").css({opacity:"0.5",cursor:"default"});}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);
inline.children().addClass("ui-state-disabled");}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value);});this._disabledInputs[this._disabledInputs.length]=target;},_isDisabledDatepicker:function(target){if(!target){return false;}for(var i=0;i<this._disabledInputs.length;
i++){if(this._disabledInputs[i]==target){return true;}}return false;},_getInst:function(target){try{return $.data(target,PROP_NAME);}catch(err){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null));
}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value;}if(inst){if(this._curInst==inst){this._hideDatepicker(null);}var date=this._getDateDatepicker(target);extendRemove(inst.settings,settings);this._setDateDatepicker(target,date);this._updateDatepicker(inst);}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value);
},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst);}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst);}},_getDateDatepicker:function(target){var inst=this._getInst(target);
if(inst&&!inst.inline){this._setDateFromField(inst);}return(inst?this._getDate(inst):null);},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,"");
break;case 13:var sel=$("td."+$.datepicker._dayOverClass+", td."+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0]);}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));
break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");
break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target);}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target);}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D");
}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D");
}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D");}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");
}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D");}handled=event.ctrlKey||event.metaKey;break;default:handled=false;}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this);}else{handled=false;}}if(handled){event.preventDefault();event.stopPropagation();
}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1);
}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0];}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return;}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");
extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value="";}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight;
}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed;});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop;}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};
$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});
if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4});
}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess);}else{inst.dpDiv[showAnim](duration,postProcess);}if(duration==""){postProcess();}if(inst.input[0].type!="hidden"){inst.input[0].focus();}$.datepicker._curInst=inst;}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};
var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");
if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover");}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover");}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover");}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover");}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();
var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em");}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");
inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus();}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();
var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();
offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;
offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset;},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling;}var position=$(obj).offset();return[position.left,position.top];},_hideDatepicker:function(input,duration){var inst=this._curInst;
if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return;}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");
var postProcess=function(){$.datepicker._tidyDialog(inst);};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess);}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess);
}if(duration==""){this._tidyDialog(inst);}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst]);}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});
if($.blockUI){$.unblockUI();$("body").append(this.dpDiv);}}this._inDialog=false;}this._curInst=null;},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar");},_checkExternalClick:function(event){if(!$.datepicker._curInst){return;}var $target=$(event.target);
if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"");}},_adjustDate:function(id,offset,period){var target=$(id);
var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return;}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst);},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;
inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear;}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();}this._notifyChange(inst);this._adjustDate(target);
},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target);
},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus();}inst._selectingMonthYear=!inst._selectingMonthYear;},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return;
}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null;}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));
if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst);}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;
this._selectDate(target,"");},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr);}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);
}else{if(inst.input){inst.input.trigger("change");}}if(inst.inline){this._updateDatepicker(inst);}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus();}this._lastInput=null;}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");
if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr);});}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""];
},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);
return $.datepicker.iso8601Week(checkDate);}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1;}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1;},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments";
}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null;}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;
var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);
if(matches){iFormat++;}return matches;};var getNumber=function(match){lookAhead(match);var origSize=(match=="@"?14:(match=="y"?4:(match=="o"?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);
size--;}if(size==origSize){throw"Missing number at position "+iValue;}return num;};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length);}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);
for(var i=0;i<names.length;i++){if(name==names[i]){return i+1;}}size--;}throw"Unknown name at position "+iInit;};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue;}iValue++;};var iValue=0;for(var iFormat=0;iFormat<format.length;
iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false;}else{checkLiteral();}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);
break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral();}else{literal=true;}break;default:checkLiteral();}}}if(year==-1){year=new Date().getFullYear();}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100);
}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break;}month++;day-=dim;}while(true);}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date";}return date;},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return"";
}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;
var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++;}return matches;};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num;}}return num;};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value]);
};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false;}else{output+=format.charAt(iFormat);}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;
case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m);}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);
break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'";}else{literal=true;}break;default:output+=format.charAt(iFormat);}}}}return output;},_possibleChars:function(format){var chars="";
var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false;}else{chars+=format.charAt(iFormat);}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;
case"'":if(lookAhead("'")){chars+="'";}else{literal=true;}break;default:chars+=format.charAt(iFormat);}}}return chars;},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name];},_setDateFromField:function(inst){var dateFormat=this._get(inst,"dateFormat");
var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate;}catch(event){this.log(event);date=defaultDate;}inst.selectedDay=date.getDate();
inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst);},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());
var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date;},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);
return date;};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);
break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;}matches=pattern.exec(offset);}return new Date(year,month,day);
};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0);
}return this._daylightSavingAdjust(date);},_daylightSavingAdjust:function(date){if(!date){return null;}date.setHours(date.getHours()>12?date.getHours()+2:0);return date;},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());
inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst);}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst));
}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate;},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));
var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");
var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);
var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--;}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);
while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--;}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));
var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', -"+stepMonths+", 'M');\""+' title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));
var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', +"+stepMonths+", 'M');\""+' title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));
var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");
var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+inst.id+"');\""+">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";
var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");
var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);
var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';
switch(col){case 0:calender+="first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+="last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+="middle";cornerClass="";break;}calender+='">';}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead>'+"<tr>";
var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+">"+'<span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>";}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);
if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));
for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);
tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";
printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate);}calender+=tbody+"</tr>";}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++;}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");
group+=calender;}html+=group;}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html;},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);
var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span> ";
}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" '+"onchange=\"DP_jQuery.datepicker._selectMonthYear('#"+inst.id+"', this, 'M');\" "+"onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\""+">";
for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>";}}monthHtml+="</select>";}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?"&#xa0;":"");
}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>";}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10;}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);
endYear=drawYear+parseInt(years[1],10);}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10);}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" '+"onchange=\"DP_jQuery.datepicker._selectMonthYear('#"+inst.id+"', this, 'Y');\" "+"onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\""+">";
for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>";}html+="</select>";}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?"&#xa0;":"")+monthHtml;}html+="</div>";return html;},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);
var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);
date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst);}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");
if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst]);}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths));},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);
return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date));},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate();},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay();},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);
var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));}return this._isInRange(inst,date);},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));
newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate));},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");
shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")};
},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear;}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));
return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst));}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name];}}return target;}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))));
}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true;}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs));
}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs));}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options);
});};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$;})(jQuery);(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative";
}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit();},destroy:function(){if(!this.element.data("draggable")){return;}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable"+" ui-draggable-dragging"+" ui-draggable-disabled");
this._mouseDestroy();},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")){return false;}this.handle=this._getHandle(b);if(!this.handle){return false;}return true;},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);
this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this;}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};
a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt);
}if(c.containment){this._setContainment();}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b);}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true;},_mouseDrag:function(b,d){this.position=this._generatePosition(b);
this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position;}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px";}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px";
}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b);}return false;},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c);}if(this.dropped){d=this.dropped;this.dropped=false;}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;
a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear();});}else{this._trigger("stop",c);this._clear();}return false;},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true;
}});return c;},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo));}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute");
}return b;},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left;}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top;}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top;
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop();
}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0};}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};}else{return{top:0,left:0};}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)};
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode;}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];
}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return;}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top];
}else{if(e.containment.constructor==Array){this.containment=e.containment;}}},_convertPositionTo:function(f,h){if(!h){h=this.position;}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);
return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))};
},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset();
}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left;}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top;}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left;
}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top;}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;
var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f;}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))};
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove();}this.helper=null;this.cancelHelperRemoval=false;},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b=="drag"){this.positionAbs=this._convertPositionTo("absolute");
}return a.widget.prototype._trigger.call(this,b,c,d);},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs};}}));a.extend(a.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});
a.ui.plugin.add("draggable","connectToSortable",{start:function(c,e){var d=a(this).data("draggable"),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,"sortable");if(g&&!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});
g._refreshItems();g._trigger("activate",c,b);}});},stop:function(c,e){var d=a(this).data("draggable"),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true;
}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"});}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,b);}});},drag:function(c,f){var e=a(this).data("draggable"),b=this;
var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l);};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;
this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;
this.instance.options.helper=function(){return f.helper[0];};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e;}if(this.instance.currentItem){this.instance._mouseDrag(c);}}else{if(this.instance.isOver){this.instance.isOver=0;
this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove();
}e._trigger("fromSortable",c);e.dropped=false;}}});}});a.ui.plugin.add("draggable","cursor",{start:function(c,d){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor")){e._cursor=b.css("cursor");}b.css("cursor",e.cursor);},stop:function(b,c){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor);
}}});a.ui.plugin.add("draggable","iframeFix",{start:function(b,c){var d=a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body");
});},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this);});}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity");}b.css("opacity",e.opacity);
},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity);}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset();
}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed;
}else{if(d.pageY-c.overflowOffset.top<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed;}}}if(!f.axis||f.axis!="y"){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed;
}else{if(d.pageX-c.overflowOffset.left<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed;}}}}else{if(!f.axis||f.axis!="x"){if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed);}else{if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed);
}}}if(!f.axis||f.axis!="y"){if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed);}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed);}}}}if(b!==false&&a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d);
}}});a.ui.plugin.add("draggable","snap",{start:function(c,d){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||":data(draggable)"):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left});
}});},drag:function(v,p){var g=a(this).data("draggable"),q=g.options;var z=q.snapTolerance;var y=p.offset.left,x=y+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var w=g.snapElements.length-1;w>=0;w--){var u=g.snapElements[w].left,n=u+g.snapElements[w].width,m=g.snapElements[w].top,B=m+g.snapElements[w].height;
if(!((u-z<y&&y<n+z&&m-z<f&&f<B+z)||(u-z<y&&y<n+z&&m-z<e&&e<B+z)||(u-z<x&&x<n+z&&m-z<f&&f<B+z)||(u-z<x&&x<n+z&&m-z<e&&e<B+z))){if(g.snapElements[w].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,v,a.extend(g._uiHash(),{snapItem:g.snapElements[w].item})));}g.snapElements[w].snapping=false;
continue;}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=z;var A=Math.abs(B-f)<=z;var j=Math.abs(u-x)<=z;var k=Math.abs(n-y)<=z;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top;}if(A){p.position.top=g._convertPositionTo("relative",{top:B,left:0}).top-g.margins.top;
}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:u-g.helperProportions.width}).left-g.margins.left;}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left;}}var h=(c||A||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=z;var A=Math.abs(B-e)<=z;var j=Math.abs(u-y)<=z;
var k=Math.abs(n-x)<=z;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top;}if(A){p.position.top=g._convertPositionTo("relative",{top:B-g.helperProportions.height,left:0}).top-g.margins.top;}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:u}).left-g.margins.left;
}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left;}}if(!g.snapElements[w].snapping&&(c||A||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,v,a.extend(g._uiHash(),{snapItem:g.snapElements[w].item})));}g.snapElements[w].snapping=(c||A||j||k||h);
}}});a.ui.plugin.add("draggable","stack",{start:function(b,c){var e=a(this).data("draggable").options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),10)||e.stack.min)-(parseInt(a(f).css("zIndex"),10)||e.stack.min);});a(d).each(function(f){this.style.zIndex=e.stack.min+f;
});this[0].style.zIndex=e.stack.min+d.length;}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("zIndex")){e._zIndex=b.css("zIndex");}b.css("zIndex",e.zIndex);},stop:function(b,c){var d=a(this).data("draggable").options;if(d._zIndex){a(c.helper).css("zIndex",d._zIndex);
}}});})(jQuery);(function(c){c.widget("ui.resizable",c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||"ui-resizable-helper":null});
if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&c.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"});}this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));
this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});
this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});
this._proportionallyResize();}this.handles=j.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw";
}var k=this.handles.split(",");this.handles={};for(var f=0;f<k.length;f++){var h=c.trim(k[f]),d="ui-resizable-"+h;var g=c('<div class="ui-resizable-handle '+d+'"></div>');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex});}if("se"==h){g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");}this.handles[h]=".ui-resizable-"+h;
this.element.append(g);}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show();}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;
o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=["padding",/ne|nw|n/.test(m)?"Top":/se|sw|s/.test(m)?"Bottom":/^e$/.test(m)?"Right":"Left"].join("");p.css(l,o);this._proportionallyResize();}if(!c(this.handles[m]).length){continue;}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);}e.axis=i&&i[1]?i[1]:"se";}});if(j.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");
e._handles.show();},function(){if(!e.resizing){c(this).addClass("ui-resizable-autohide");e._handles.hide();}});}this._mouseInit();},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove();
};if(this.elementIsWrapper){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).end().remove();}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement);
},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true;}}return this.options.disabled||!!f;},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};
if(d.is(".ui-draggable")||(/absolute/).test(d.css("position"))){d.css({position:"absolute",top:e.top,left:e.left});}if(c.browser.opera&&(/relative/).test(d.css("position"))){d.css({position:"relative",top:"auto",left:"auto"});}this._renderProxy();var j=b(this.helper.css("left")),g=b(this.helper.css("top"));
if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0;}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};
this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio=="number")?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(".ui-resizable-"+this.axis).css("cursor");
c("body").css("cursor",h=="auto"?this.axis+"-resize":h);d.addClass("ui-resizable-resizing");this._propagate("start",f);return true;},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];
if(!h){return false;}var k=h.apply(this,[d,q,n]),j=c.browser.msie&&c.browser.version<7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d);}k=this._respectSize(k,d);this._propagate("resize",d);g.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});
if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize();}this._updateCache(k);this._trigger("resize",d,this.ui());return false;},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&&(/textarea/i).test(f[0].nodeName),e=d&&c.ui.hasScroll(f[0],"left")?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;
var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}));}l.helper.height(l.size.height);
l.helper.width(l.size.width);if(this._helper&&!h.animate){this._proportionallyResize();}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",g);if(this._helper){this.helper.remove();}return false;},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();
if(a(d.left)){this.position.left=d.left;}if(a(d.top)){this.position.top=d.top;}if(a(d.height)){this.size.height=d.height;}if(a(d.width)){this.size.width=d.width;}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio);}else{if(g.width){g.height=(e.width/this.aspectRatio);
}}if(d=="sw"){g.left=i.left+(e.width-g.width);g.top=null;}if(d=="nw"){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width);}return g;},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,u=a(k.width)&&h.maxWidth&&(h.maxWidth<k.width),l=a(k.height)&&h.maxHeight&&(h.maxHeight<k.height),g=a(k.width)&&h.minWidth&&(h.minWidth>k.width),t=a(k.height)&&h.minHeight&&(h.minHeight>k.height);
if(g){k.width=h.minWidth;}if(t){k.height=h.minHeight;}if(u){k.width=h.maxWidth;}if(l){k.height=h.maxHeight;}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&&j){k.left=e-h.minWidth;}if(u&&j){k.left=e-h.maxWidth;
}if(t&&d){k.top=n-h.minHeight;}if(l&&d){k.top=n-h.maxHeight;}var m=!k.width&&!k.height;if(m&&!k.left&&k.top){k.top=null;}else{if(m&&!k.top&&k.left){k.left=null;}}return k;},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return;}var f=this.helper||this.element;
for(var e=0;e<this._proportionallyResizeElements.length;e++){var g=this._proportionallyResizeElements[e];if(!this.borderDif){var d=[g.css("borderTopWidth"),g.css("borderRightWidth"),g.css("borderBottomWidth"),g.css("borderLeftWidth")],h=[g.css("paddingTop"),g.css("paddingRight"),g.css("paddingBottom"),g.css("paddingLeft")];
this.borderDif=c.map(d,function(k,m){var l=parseInt(k,10)||0,n=parseInt(h[m],10)||0;return l+n;});}if(c.browser.msie&&!(!(c(f).is(":hidden")||c(f).parents(":hidden").length))){continue;}g.css({height:(f.height()-this.borderDif[0]-this.borderDif[2])||0,width:(f.width()-this.borderDif[1]-this.borderDif[3])||0});
}},_renderProxy:function(){var e=this.element,h=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var d=c.browser.msie&&c.browser.version<7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++h.zIndex});
this.helper.appendTo("body").disableSelection();}else{this.helper=this.element;}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e};},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e};},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;
return{top:h.top+d,height:f.height-d};},s:function(f,e,d){return{height:this.originalSize.height+d};},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]));},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]));
},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]));},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]));}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!="resize"&&this._trigger(e,d,this.ui()));
},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition};}}));c.extend(c.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});
c.ui.plugin.add("resizable","alsoResize",{start:function(e,f){var d=c(this).data("resizable"),g=d.options;_store=function(h){c(h).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)});
});};if(typeof(g.alsoResize)=="object"&&!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize);}else{c.each(g.alsoResize,function(h,i){_store(h);});}}else{_store(g.alsoResize);}},resize:function(f,h){var e=c(this).data("resizable"),i=e.options,g=e.originalSize,k=e.originalPosition;
var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data("resizable-alsoresize"),o={},n=m&&m.length?m:["width","height","top","left"];c.each(n||["width","height","top","left"],function(t,v){var u=(q[v]||0)+(j[v]||0);
if(u&&u>=0){o[v]=u||null;}});if(/relative/.test(p.css("position"))&&c.browser.opera){e._revertToRelativePosition=true;p.css({position:"absolute",top:"auto",left:"auto"});}p.css(o);});};if(typeof(i.alsoResize)=="object"&&!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m);});}else{d(i.alsoResize);
}},stop:function(e,f){var d=c(this).data("resizable");if(d._revertToRelativePosition&&c.browser.opera){d._revertToRelativePosition=false;el.css({position:"relative"});}c(this).removeData("resizable-alsoresize-start");}});c.ui.plugin.add("resizable","animate",{stop:function(h,m){var n=c(this).data("resizable"),i=n.options;
var g=n._proportionallyResizeElements,d=g.length&&(/textarea/i).test(g[0].nodeName),e=d&&c.ui.hasScroll(g[0],"left")?0:n.sizeDiff.height,k=d?0:n.sizeDiff.width;var f={width:(n.size.width-k),height:(n.size.height-e)},j=(parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left))||null,l=(parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top))||null;
n.element.animate(c.extend(f,l&&j?{top:l,left:j}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var o={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};if(g&&g.length){c(g[0]).css({width:o.width,height:o.height});
}n._updateCache(o);n._propagate("resize",h);}});}});c.ui.plugin.add("resizable","containment",{start:function(e,q){var u=c(this).data("resizable"),i=u.options,k=u.element;var f=i.containment,j=(f instanceof c)?f.get(0):(/parent/.test(f))?k.parent().get(0):f;if(!j){return;}u.containerElement=c(j);if(/document/.test(f)||f==document){u.containerOffset={left:0,top:0};
u.containerPosition={left:0,top:0};u.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight};}else{var m=c(j),h=[];c(["Top","Right","Left","Bottom"]).each(function(p,o){h[p]=b(m.css("padding"+o));});u.containerOffset=m.offset();
u.containerPosition=m.position();u.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var n=u.containerOffset,d=u.containerSize.height,l=u.containerSize.width,g=(c.ui.hasScroll(j,"left")?j.scrollWidth:l),t=(c.ui.hasScroll(j)?j.scrollHeight:d);u.parentData={element:j,left:n.left,top:n.top,width:g,height:t};
}},resize:function(f,p){var u=c(this).data("resizable"),h=u.options,e=u.containerSize,n=u.containerOffset,l=u.size,m=u.position,q=u._aspectRatio||f.shiftKey,d={top:0,left:0},g=u.containerElement;if(g[0]!=document&&(/static/).test(g.css("position"))){d=n;}if(m.left<(u._helper?n.left:0)){u.size.width=u.size.width+(u._helper?(u.position.left-n.left):(u.position.left-d.left));
if(q){u.size.height=u.size.width/h.aspectRatio;}u.position.left=h.helper?n.left:0;}if(m.top<(u._helper?n.top:0)){u.size.height=u.size.height+(u._helper?(u.position.top-n.top):u.position.top);if(q){u.size.width=u.size.height*h.aspectRatio;}u.position.top=u._helper?n.top:0;}u.offset.left=u.parentData.left+u.position.left;
u.offset.top=u.parentData.top+u.position.top;var k=Math.abs((u._helper?u.offset.left-d.left:(u.offset.left-d.left))+u.sizeDiff.width),t=Math.abs((u._helper?u.offset.top-d.top:(u.offset.top-n.top))+u.sizeDiff.height);var j=u.containerElement.get(0)==u.element.parent().get(0),i=/relative|absolute/.test(u.containerElement.css("position"));
if(j&&i){k-=u.parentData.left;}if(k+u.size.width>=u.parentData.width){u.size.width=u.parentData.width-k;if(q){u.size.height=u.size.width/u.aspectRatio;}}if(t+u.size.height>=u.parentData.height){u.size.height=u.parentData.height-t;if(q){u.size.width=u.size.height*u.aspectRatio;}}},stop:function(e,m){var p=c(this).data("resizable"),f=p.options,k=p.position,l=p.containerOffset,d=p.containerPosition,g=p.containerElement;
var i=c(p.helper),q=i.offset(),n=i.outerWidth()-p.sizeDiff.width,j=i.outerHeight()-p.sizeDiff.height;if(p._helper&&!f.animate&&(/relative/).test(g.css("position"))){c(this).css({left:q.left-d.left-l.left,width:n,height:j});}if(p._helper&&!f.animate&&(/static/).test(g.css("position"))){c(this).css({left:q.left-d.left-l.left,width:n,height:j});
}}});c.ui.plugin.add("resizable","ghost",{start:function(f,g){var d=c(this).data("resizable"),h=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");
d.ghost.appendTo(d.helper);},resize:function(e,f){var d=c(this).data("resizable"),g=d.options;if(d.ghost){d.ghost.css({position:"relative",height:d.size.height,width:d.size.width});}},stop:function(e,f){var d=c(this).data("resizable"),g=d.options;if(d.ghost&&d.helper){d.helper.get(0).removeChild(d.ghost.get(0));
}}});c.ui.plugin.add("resizable","grid",{resize:function(d,l){var n=c(this).data("resizable"),g=n.options,j=n.size,h=n.originalSize,i=n.originalPosition,m=n.axis,k=g._aspectRatio||d.shiftKey;g.grid=typeof g.grid=="number"?[g.grid,g.grid]:g.grid;var f=Math.round((j.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),e=Math.round((j.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);
if(/^(se|s|e)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;}else{if(/^(ne)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e;}else{if(/^(sw)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.left=i.left-f;}else{n.size.width=h.width+f;n.size.height=h.height+e;
n.position.top=i.top-e;n.position.left=i.left-f;}}}}});var b=function(d){return parseInt(d,10)||0;};var a=function(d){return !isNaN(parseInt(d,10));};})(jQuery);(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen;
}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c;}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active");}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix");
}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover");}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover");}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus");
}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus");});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");
this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1");}this.resize();this.element.attr("role","tablist");
this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e);}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0");}else{this.active.attr("aria-expanded","true").attr("tabIndex","0");
}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1");}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this);});}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");
this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();
var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","");}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c;}a.widget.prototype._setData.apply(this,arguments);
},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return;}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;
case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target);}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false;}return true;},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");
this.element.parent().css("overflow","hidden");}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b);}this.headers.each(function(){d-=a(this).outerHeight();});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height());}).height(Math.max(0,d-c)).css("overflow","auto");
}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight());}).height(d);}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c);},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)");
},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false;}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");
var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false;}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false;}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active");}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);
this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false;},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return;}return m._completed.apply(m,arguments);};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();
if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace};}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace};}if(!d.proxied){d.proxied=d.animated;}if(!d.proxiedDuration){d.proxiedDuration=d.duration;}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;
d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700});};}l[h](f);}else{if(d.collapsible&&j){b.toggle();}else{i.hide();b.show();}c(true);}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();
b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus();},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return;}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""});}this._trigger("change",null,this.data);}});a.extend(a.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase();
}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return;}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return;}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;
b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);
d[m]={value:l[1],unit:l[2]||"px"};});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start);}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit;
},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","");}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete();}});},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200});},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700});
}}});})(jQuery);(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog "+"ui-widget "+"ui-widget-content "+"ui-corner-all ";
c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var l=this,m=this.options,j=m.title||this.originalTitle||"&nbsp;",e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c("<div/>")).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:m.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){(m.closeOnEscape&&n.keyCode&&n.keyCode==c.ui.keyCode.ESCAPE&&l.close(n));
}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(n){l.moveToTop(false,n);}),g=this.element.show().removeAttr("title").addClass("ui-dialog-content "+"ui-widget-content").appendTo(k),f=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar "+"ui-widget-header "+"ui-corner-all "+"ui-helper-clearfix").prependTo(k),i=c('<a href="#"/>').addClass("ui-dialog-titlebar-close "+"ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover");
},function(){i.removeClass("ui-state-hover");}).focus(function(){i.addClass("ui-state-focus");}).blur(function(){i.removeClass("ui-state-focus");}).mousedown(function(n){n.stopPropagation();}).click(function(n){l.close(n);return false;}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon "+"ui-icon-closethick").text(m.closeText).appendTo(i),d=c("<span/>").addClass("ui-dialog-title").attr("id",e).html(j).prependTo(f);
f.find("*").add(f).disableSelection();(m.draggable&&c.fn.draggable&&this._makeDraggable());(m.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&&c.fn.bgiframe&&k.bgiframe());(m.autoOpen&&this.open());},destroy:function(){(this.overlay&&this.overlay.destroy());
this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle));},close:function(f){var d=this;if(false===d._trigger("beforeclose",f)){return;
}(d.overlay&&d.overlay.destroy());d.uiDialog.unbind("keypress.ui-dialog");(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f);}):d.uiDialog.hide()&&d._trigger("close",f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(".ui-dialog").each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"));
}});c.ui.dialog.maxZ=e;}},isOpen:function(){return this._isOpen;},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e);}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex;}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));
var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e);},open:function(){if(this._isOpen){return;}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;
(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=c.ui.keyCode.TAB){return;}var g=c(":tabbable",this),i=g.filter(":first")[0],f=g.filter(":last")[0];if(h.target==f&&!h.shiftKey){setTimeout(function(){i.focus();
},1);}else{if(h.target==i&&h.shiftKey){setTimeout(function(){f.focus();},1);}}}));c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true;},_createButtons:function(g){var f=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane "+"ui-widget-content "+"ui-helper-clearfix");
this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&c.each(g,function(){return !(d=true);}));if(d){c.each(g,function(h,i){c('<button type="button"></button>').addClass("ui-state-default "+"ui-corner-all").text(h).click(function(){i.apply(f.element[0],arguments);}).hover(function(){c(this).addClass("ui-state-hover");
},function(){c(this).removeClass("ui-state-hover");}).focus(function(){c(this).addClass("ui-state-focus");}).blur(function(){c(this).removeClass("ui-state-focus");}).appendTo(e);});e.appendTo(this.uiDialog);}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){e=f.height;
c(this).height(c(this).height()).addClass("ui-dialog-dragging");(f.dragStart&&f.dragStart.apply(d.element[0],arguments));},drag:function(){(f.drag&&f.drag.apply(d.element[0],arguments));},stop:function(){c(this).removeClass("ui-dialog-dragging").height(e);(f.dragStop&&f.dragStop.apply(d.element[0],arguments));
c.ui.dialog.overlay.resize();}});},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");
(f.resizeStart&&f.resizeStart.apply(d.element[0],arguments));},resize:function(){(f.resize&&f.resize.apply(d.element[0],arguments));},handles:e,stop:function(){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();(f.resizeStop&&f.resizeStop.apply(d.element[0],arguments));
c.ui.dialog.overlay.resize();}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se");},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,["center","top","right","bottom","left"])>=0){i=[i=="right"||i=="left"?i:"center",i=="top"||i=="bottom"?i:"middle"];
}if(i.constructor!=Array){i=["center","middle"];}if(i[0].constructor==Number){d+=i[0];}else{switch(i[0]){case"left":d+=0;break;case"right":d+=e.width()-this.uiDialog.outerWidth();break;default:case"center":d+=(e.width()-this.uiDialog.outerWidth())/2;}}if(i[1].constructor==Number){g+=i[1];}else{switch(i[1]){case"top":g+=0;
break;case"bottom":g+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":g+=(e.height()-this.uiDialog.outerHeight())/2;}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d});},_setData:function(e,f){(b[e]&&this.uiDialog.data(b[e],f));switch(e){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);
break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");
(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(f||"&nbsp;");break;case"width":this.uiDialog.width(f);break;}c.widget.prototype._setData.apply(this,arguments);},_size:function(){var e=this.options;
this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height=="auto"?"auto":Math.max(e.height-d,0)});}});c.extend(c.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid);
},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d);}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay";}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(".ui-dialog").css("zIndex")||0;
return(g>c.ui.dialog.overlay.maxZ);});}},1);c(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==c.ui.keyCode.ESCAPE&&e.close(f));});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize);}var d=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});
(e.options.bgiframe&&c.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d;},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay");}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"));
});this.maxZ=e;},height:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e<d){return c(window).height()+"px";}else{return e+"px";}}else{return c(document).height()+"px";
}},width:function(){if(c.browser.msie&&c.browser.version<7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d<e){return c(window).width()+"px";}else{return d+"px";}}else{return c(document).width()+"px";
}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this);});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()});}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el);
}});})(jQuery);(function(a){a.browserTest=function(e,g){var f="unknown",d="X",b=function(k,j){for(var c=0;c<j.length;c=c+1){k=k.replace(j[c][0],j[c][1]);}return k;},h=function(l,k,j,n){var m={name:b((k.exec(l)||[f,f])[1],j)};m[m.name]=true;m.version=(n.exec(l)||[d,d,d,d])[3];if(m.name.match(/safari/)&&m.version>400){m.version="2.0";
}if(m.name==="presto"){m.version=(a.browser.version>9.27)?"futhark":"linear_b";}m.versionNumber=parseFloat(m.version,10)||0;m.versionX=(m.version!==d)?(m.version+"").substr(0,1):d;m.className=m.name+m.versionX;return m;};e=(e.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?b(e,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,""],["Chrome Safari","Chrome"],["KHTML","Konqueror"],["Minefield","Firefox"],["Navigator","Netscape"]]):e).toLowerCase();
a.browser=a.extend((!g)?a.browser:{},h(e,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));a.layout=h(e,/(gecko|konqueror|msie|opera|webkit)/,[["konqueror","khtml"],["msie","trident"],["opera","presto"]],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);
a.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[f])[0].replace("sunos","solaris")};if(!g){a("html").addClass([a.os.name,a.browser.name,a.browser.className,a.layout.name,a.layout.className].join(" "));}};a.browserTest(navigator.userAgent);})(jQuery);jQuery.fn.daterangepicker=function(p){var c=jQuery(this);
var d=jQuery.extend({presetRanges:[{text:"Today",dateStart:"today",dateEnd:"today"},{text:"Last 7 days",dateStart:"today-7days",dateEnd:"today"},{text:"Month to date",dateStart:function(){return Date.parse("today").moveToFirstDayOfMonth();},dateEnd:"today"},{text:"Year to date",dateStart:function(){var u=Date.parse("today");
u.setMonth(0);u.setDate(1);return u;},dateEnd:"today"}],presets:{specificDate:"Specific Date",allDatesBefore:"All Dates Before",allDatesAfter:"All Dates After",dateRange:"Date Range"},rangeStartTitle:"Start date",rangeEndTitle:"End date",nextLinkText:"Next",prevLinkText:"Prev",doneButtonText:"Done",earliestDate:Date.parse("-15years"),latestDate:Date.parse("+15years"),rangeSplitter:"-",dateFormat:"m/d/yy",closeOnSelect:true,arrows:false,posX:null,posY:null,appendTo:"body",onClose:function(){},onOpen:function(){},datepickerOptions:null},p);
var f={onSelect:function(){if(i.find(".ui-daterangepicker-specificDate").is(".ui-state-active")){i.find(".range-end").datepicker("setDate",i.find(".range-start").datepicker("getDate"));}var v=a(i.find(".range-start").datepicker("getDate"));var u=a(i.find(".range-end").datepicker("getDate"));if(c.length==2){c.eq(0).val(v);
c.eq(1).val(u);}else{c.val((v!=u)?v+" "+d.rangeSplitter+" "+u:v);}if(d.closeOnSelect){if(!i.find("li.ui-state-active").is(".ui-daterangepicker-dateRange")&&!i.is(":animated")){j();}}},defaultDate:+0};d.datepickerOptions=(p)?jQuery.extend(f,p.datepickerOptions):f;var l,k=Date.parse("today");var n,h;if(c.size()==2){n=Date.parse(c.eq(0).val());
h=Date.parse(c.eq(1).val());if(n==null){n=h;}if(h==null){h=h;}}else{n=Date.parse(c.val().split(d.rangeSplitter)[0]);h=Date.parse(c.val().split(d.rangeSplitter)[1]);if(h==null){h=h;}}if(n!=null){l=n;}if(h!=null){k=h;}var i=jQuery('<div class="ui-daterangepicker ui-widget ui-helper-clearfix ui-widget-content ui-corner-all"></div>');
var t=(function(){var v=jQuery('<ul class="ui-widget-content"></ul>').appendTo(i);jQuery(d.presetRanges).each(function(){jQuery('<li class="ui-daterangepicker-'+this.text.replace(/ /g,"")+' ui-corner-all"><a href="#">'+this.text+"</a></li>").data("dateStart",this.dateStart).data("dateEnd",this.dateEnd).appendTo(v);
});var u=0;jQuery.each(d.presets,function(w,x){jQuery('<li class="ui-daterangepicker-'+w+" preset_"+u+' ui-helper-clearfix ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span><a href="#">'+x+"</a></li>").appendTo(v);u++;});v.find("li").hover(function(){jQuery(this).addClass("ui-state-hover");
},function(){jQuery(this).removeClass("ui-state-hover");}).click(function(){i.find(".ui-state-active").removeClass("ui-state-active");jQuery(this).addClass("ui-state-active").clickActions();return false;});return v;})();function a(w){if(!w.getDate()){return"";}var v=w.getDate();var y=w.getMonth();var x=w.getFullYear();
y++;var u=d.dateFormat;return jQuery.datepicker.formatDate(u,w);}jQuery.fn.restoreDateFromData=function(){if(jQuery(this).data("saveDate")){jQuery(this).datepicker("setDate",jQuery(this).data("saveDate")).removeData("saveDate");}return this;};jQuery.fn.saveDateToData=function(){if(!jQuery(this).data("saveDate")){jQuery(this).data("saveDate",jQuery(this).datepicker("getDate"));
}return this;};function q(){i.fadeIn(300);d.onOpen();}function j(){i.fadeOut(300,function(){d.onClose();});}function b(){if(i.is(":visible")){j();}else{q();}}jQuery.fn.clickActions=function(){if(jQuery(this).is(".ui-daterangepicker-specificDate")){e.hide();m.show();i.find(".title-start").text(d.presets.specificDate);
i.find(".range-start").restoreDateFromData().show(400);i.find(".range-end").restoreDateFromData().hide(400);setTimeout(function(){e.fadeIn();},400);}else{if(jQuery(this).is(".ui-daterangepicker-allDatesBefore")){e.hide();m.show();i.find(".title-end").text(d.presets.allDatesBefore);i.find(".range-start").saveDateToData().datepicker("setDate",d.earliestDate).hide(400);
i.find(".range-end").restoreDateFromData().show(400);setTimeout(function(){e.fadeIn();},400);}else{if(jQuery(this).is(".ui-daterangepicker-allDatesAfter")){e.hide();m.show();i.find(".title-start").text(d.presets.allDatesAfter);i.find(".range-start").restoreDateFromData().show(400);i.find(".range-end").saveDateToData().datepicker("setDate",d.latestDate).hide(400);
setTimeout(function(){e.fadeIn();},400);}else{if(jQuery(this).is(".ui-daterangepicker-dateRange")){e.hide();m.show();i.find(".title-start").text(d.rangeStartTitle);i.find(".title-end").text(d.rangeEndTitle);i.find(".range-start").restoreDateFromData().show(400);i.find(".range-end").restoreDateFromData().show(400);
setTimeout(function(){e.fadeIn();},400);}else{e.hide();i.find(".range-start, .range-end").hide(400,function(){m.hide();});var v=(typeof jQuery(this).data("dateStart")=="string")?Date.parse(jQuery(this).data("dateStart")):jQuery(this).data("dateStart")();var u=(typeof jQuery(this).data("dateEnd")=="string")?Date.parse(jQuery(this).data("dateEnd")):jQuery(this).data("dateEnd")();
i.find(".range-start").datepicker("setDate",v).find(".ui-datepicker-current-day").trigger("click");i.find(".range-end").datepicker("setDate",u).find(".ui-datepicker-current-day").trigger("click");}}}}return false;};var m=jQuery('<div class="ranges ui-widget-header ui-corner-all ui-helper-clearfix"><div class="range-start"><span class="title-start">Start Date</span></div><div class="range-end"><span class="title-end">End Date</span></div></div>').appendTo(i);
m.find(".range-start, .range-end").datepicker(d.datepickerOptions);m.find(".range-start").datepicker("setDate",l);m.find(".range-end").datepicker("setDate",k);var e=jQuery('<button class="btnDone ui-state-default ui-corner-all">'+d.doneButtonText+"</button>").click(function(){i.find(".ui-datepicker-current-day").trigger("click");
j();}).hover(function(){jQuery(this).addClass("ui-state-hover");},function(){jQuery(this).removeClass("ui-state-hover");}).appendTo(m);jQuery(this).click(function(){b();return false;});m.css("display","none").find(".range-start, .range-end, .btnDone").css("display","none");jQuery(d.appendTo).append(i);
i.wrap('<div class="ui-daterangepickercontain"></div>');if(d.posX){i.parent().css("left",d.posX);}if(d.posY){i.parent().css("top",d.posY);}if(d.arrows&&c.size()==1){var g=$('<a href="#" class="ui-daterangepicker-prev ui-corner-all" title="'+d.prevLinkText+'"><span class="ui-icon ui-icon-circle-triangle-w">'+d.prevLinkText+"</span></a>");
var o=$('<a href="#" class="ui-daterangepicker-next ui-corner-all" title="'+d.nextLinkText+'"><span class="ui-icon ui-icon-circle-triangle-e">'+d.nextLinkText+"</span></a>");jQuery(this).addClass("ui-rangepicker-input ui-widget-content").wrap('<div class="ui-daterangepicker-arrows ui-widget ui-widget-header ui-helper-clearfix ui-corner-all"></div>').before(g).before(o).parent().find("a").click(function(){var v=m.find(".range-start").datepicker("getDate");
var u=m.find(".range-end").datepicker("getDate");var w=Math.abs(new TimeSpan(v-u).getTotalMilliseconds())+86400000;if(jQuery(this).is(".ui-daterangepicker-prev")){w=-w;}m.find(".range-start, .range-end ").each(function(){var x=jQuery(this).datepicker("getDate");if(x==null){return false;}jQuery(this).datepicker("setDate",x.add({milliseconds:w})).find(".ui-datepicker-current-day").trigger("click");
});return false;}).hover(function(){jQuery(this).addClass("ui-state-hover");},function(){jQuery(this).removeClass("ui-state-hover");});}jQuery(document).click(function(){if(i.is(":visible")){j();}});i.click(function(){return false;}).hide();return this;};(function(d){var b=location.href.replace(/#.*/,"");
var c=d.localScroll=function(e){d("body").localScroll(e);};c.defaults={duration:1000,axis:"y",event:"click",stop:true};c.hash=function(e){e=d.extend({},c.defaults,e);e.hash=false;if(location.hash){setTimeout(function(){a(0,location,e);},0);}};d.fn.localScroll=function(f){f=d.extend({},c.defaults,f);return(f.persistent||f.lazy)?this.bind(f.event,function(h){var g=d([h.target,h.target.parentNode]).filter(e)[0];
g&&a(h,g,f);}):this.find("a,area").filter(e).bind(f.event,function(g){a(g,this,f);}).end().end();function e(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==b&&(!f.filter||d(this).is(f.filter));}};function a(j,i,g){var k=i.hash.slice(1),h=document.getElementById(k)||document.getElementsByName(k)[0];
if(h){j&&j.preventDefault();var f=d(g.target||d.scrollTo.window());if(g.lock&&f.is(":animated")||g.onBefore&&g.onBefore.call(i,j,h,f)===false){return;}if(g.stop){f.queue("fx",[]).stop();}f.scrollTo(h,g).trigger("notify.serialScroll",[h]);if(g.hash){f.queue(function(){location=i.hash;d(this).dequeue();
});}}}})(jQuery);(function(c){var a=c.scrollTo=function(f,e,d){c(window).scrollTo(f,e,d);};a.defaults={axis:"y",duration:1};a.window=function(d){return c(window).scrollable();};c.fn.scrollable=function(){return this.map(function(){var g=this.parentWindow||this.defaultView,e=this.nodeName=="#document"?g.frameElement||g:this,f=e.contentDocument||(e.contentWindow||e).document,d=e.setInterval;
return e.nodeName=="IFRAME"||d&&c.browser.safari?f.body:d?f.documentElement:this;});};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0;}if(typeof d=="function"){d={onAfter:d};}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2;}d.offset=b(d.offset);
d.over=b(d.over);return this.scrollable().each(function(){var m=this,k=c(m),l=f,j,h={},n=k.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(l)){l=b(l);break;}l=c(l,this);case"object":if(l.is||l.style){j=(l=c(l)).offset();}}c.each(d.axis.split(""),function(t,u){var v=u=="x"?"Left":"Top",x=v.toLowerCase(),q="scroll"+v,o=m[q],p=u=="x"?"Width":"Height",w=p.toLowerCase();
if(j){h[q]=j[x]+(n?0:o-k.offset()[x]);if(d.margin){h[q]-=parseInt(l.css("margin"+v))||0;h[q]-=parseInt(l.css("border"+v+"Width"))||0;}h[q]+=d.offset[x]||0;if(d.over[x]){h[q]+=l[w]()*d.over[x];}}else{h[q]=l[x];}if(/^\d+$/.test(h[q])){h[q]=h[q]<=0?0:Math.min(h[q],g(p));}if(!t&&d.queue){if(o!=h[q]){i(d.onAfterFirst);
}delete h[q];}});i(d.onAfter);function i(o){k.animate(h,e,d.easing,o&&function(){o.call(this,f,d);});}function g(p){var o="scroll"+p,q=m.ownerDocument;return n?Math.max(q.documentElement[o],q.body[o]):m[o];}}).end();};function b(d){return typeof d=="object"?d:{top:d,left:d};}})(jQuery);eval(function(h,b,i,d,g,f){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36));
};if(!"".replace(/^/,String)){while(i--){f[g(i)]=d[i]||g(i);}d=[function(a){return f[a];}];g=function(){return"\\w+";};i=1;}while(i--){if(d[i]){h=h.replace(new RegExp("\\b"+g(i)+"\\b","g"),d[i]);}}return h;}('(7($){$.u.v=7(b){5 c,8,w,r,x,A;5 d=$.W({},$.u.v.H,b);5 e=d.I*J;5 f=d.K.X();5 g=d.L;5 h=d.M;5 j=d.9;5 k=d.N;5 l=d.O;5 m=(f=="Y")?" ":".";5 n=P Q();5 o=0;y(i=0;i<q.p;i++){4(j){$(q[i]).9(j)}4(f=="s")n.R({3:$(q[i]),6:$(q[i]).9()});t n.R({3:$(q[i]),6:$(q[i]).9().Z(m)});4(!g)o=n[i].6.p>o?n[i].6.p:o;t o+=n[i].6.p;$(q[i]).9("")}B();7 B(){c=e/o;8=0;w=r=0;x=(!g)?C(S,c):C(T,c)};7 S(){8++;y(i=0;i<n.p;i++){5 a=n[i];4(a.6.p>=8){4(f=="s"){a.3.9(a.6.U(0,8))}t{a.3.z(a.6[8-1]);4(8<o){a.3.z(m)}}}}4(8>=o){D()}};7 T(){$3=n[w];4(f=="s"){$3.3.9($3.6.U(0,++r))}t{$3.3.z($3.6[r++]);4(r<$3.6.p)$3.3.z(m)}4(r>=$3.6.p){w++;r=0}8++;4(8>=o){D()}};7 D(){E(x);4(f!="s"){}4(k){4(l)A=C(V,l*J);t F()}h()};7 F(){y(i=0;i<n.p;i++){n[i].3.9("")}B()};7 V(){F();E(A)};7 G(){E(x);y(i=0;i<n.p;i++){n[i].3.9(n[i].6)}};q.G=G;10 q};$.u.v.H={I:2,K:"s",L:11,M:7(){},9:"",N:12,O:0};$.u.v.13={14:P Q()}})(15);',62,68,"|||obj|if|var|initialText|function|nIntervalCounter|text||||||||||||||||length|this|nSequentialCounterInternal|letter|else|fn|jTypeWriter|nSequentialCounter|nInterval|for|append|nLoopInterval|init|setInterval|circleEnd|clearInterval|newLoop|endEffect|defaults|duration|1000|type|sequential|onComplete|loop|loopDelay|new|Array|push|typerSimultaneous|typerSequential|substr|loopInterval|extend|toLowerCase|word|split|return|true|false|variables|aObjects|jQuery".split("|"),0,{}));
jQuery.fn.pagination=function(a,b){b=jQuery.extend({items_per_page:10,num_display_entries:10,current_page:0,num_edge_entries:0,link_to:"#",prev_text:"Prev",next_text:"Next",ellipse_text:"...",prev_show_always:true,next_show_always:true,callback:function(){return false;}},b||{});return this.each(function(){function f(){return Math.ceil(a/b.items_per_page);
}function h(){var k=Math.ceil(b.num_display_entries/2);var l=f();var j=l-b.num_display_entries;var m=g>k?Math.max(Math.min(g-k,j),0):0;var i=g>k?Math.min(g+k,l):Math.min(b.num_display_entries,l);return[m,i];}function e(j,i){g=j;c();var k=b.callback(j,d);if(!k){if(i.stopPropagation){i.stopPropagation();
}else{i.cancelBubble=true;}}return k;}function c(){d.empty();var k=h();var o=f();var p=function(i){return function(q){return e(i,q);};};var n=function(i,q){i=i<0?0:(i<o?i:o-1);q=jQuery.extend({text:i+1,classes:""},q||{});if(i==g){var t=jQuery("<span class='current'>"+(q.text)+"</span>");}else{var t=jQuery("<a>"+(q.text)+"</a>").bind("click",p(i)).attr("href",b.link_to.replace(/__id__/,i));
}if(q.classes){t.addClass(q.classes);}d.append(t);};if(b.prev_text&&(g>0||b.prev_show_always)){n(g-1,{text:b.prev_text,classes:"prev"});}if(k[0]>0&&b.num_edge_entries>0){var j=Math.min(b.num_edge_entries,k[0]);for(var l=0;l<j;l++){n(l);}if(b.num_edge_entries<k[0]&&b.ellipse_text){jQuery("<span>"+b.ellipse_text+"</span>").appendTo(d);
}}for(var l=k[0];l<k[1];l++){n(l);}if(k[1]<o&&b.num_edge_entries>0){if(o-b.num_edge_entries>k[1]&&b.ellipse_text){jQuery("<span>"+b.ellipse_text+"</span>").appendTo(d);}var m=Math.max(o-b.num_edge_entries,k[1]);for(var l=m;l<o;l++){n(l);}}if(b.next_text&&(g<o-1||b.next_show_always)){n(g+1,{text:b.next_text,classes:"next"});
}}var g=b.current_page;a=(!a||a<0)?1:a;b.items_per_page=(!b.items_per_page||b.items_per_page<0)?1:b.items_per_page;var d=jQuery(this);this.selectPage=function(i){e(i);};this.prevPage=function(){if(g>0){e(g-1);return true;}else{return false;}};this.nextPage=function(){if(g<f()-1){e(g+1);return true;}else{return false;
}};c();b.callback(g,this);});};jQuery.autocomplete=function(d,w){var p=this;var A=$(d).attr("autocomplete","off");if(w.inputClass){A.addClass(w.inputClass);}var q=document.createElement("div");var h=$(q);h.hide().addClass(w.resultsClass).css("position","absolute");if(w.width>0){h.css("width",w.width);
}$("body").append(q);d.autocompleter=p;var J=null;var z="";var K=-1;var j={};var C=false;var l=false;var a=null;function m(){j={};j.data={};j.length=0;}m();if(w.data!=null){var u="",P={},n=[];if(typeof w.url!="string"){w.cacheLength=1;}for(var N=0;N<w.data.length;N++){n=((typeof w.data[N]=="string")?[w.data[N]]:w.data[N]);
if(n[0].length>0){u=n[0].substring(0,1).toLowerCase();if(!P[u]){P[u]=[];}P[u].push(n);}}for(var M in P){w.cacheLength++;e(M,P[M]);}}A.keydown(function(i){a=i.keyCode;switch(i.keyCode){case 38:i.preventDefault();F(-1);break;case 40:i.preventDefault();F(1);break;case 9:case 13:if(H()){A.get(0).blur();i.preventDefault();
}break;default:K=-1;if(J){clearTimeout(J);}J=setTimeout(function(){v();},w.delay);break;}}).focus(function(){l=true;}).blur(function(){l=false;c();});x();function v(){if(a==46||(a>8&&a<32)){return h.hide();}var i=A.val();if(i==z){return;}z=i;if(i.length>=w.minChars){A.addClass(w.loadingClass);E(i);}else{A.removeClass(w.loadingClass);
h.hide();}}function F(k){var i=$("li",q);if(!i){return;}K+=k;if(K<0){K=0;}else{if(K>=i.size()){K=i.size()-1;}}i.removeClass("ac_over");$(i[K]).addClass("ac_over");}function H(){var i=$("li.ac_over",q)[0];if(!i){var k=$("li",q);if(w.selectOnly){if(k.length==1){i=k[0];}}else{if(w.selectFirst){i=k[0];}}}if(i){t(i);
return true;}else{return false;}}function t(i){if(!i){i=document.createElement("li");i.extra=[];i.selectValue="";}var k=$.trim(i.selectValue?i.selectValue:i.innerHTML);d.lastSelected=k;z=k;h.html("");A.val(k);x();if(w.onItemSelect){setTimeout(function(){w.onItemSelect(i);},1);}}function b(R,k){var Q=A.get(0);
if(Q.createTextRange){var i=Q.createTextRange();i.collapse(true);i.moveStart("character",R);i.moveEnd("character",k);i.select();}else{if(Q.setSelectionRange){Q.setSelectionRange(R,k);}else{if(Q.selectionStart){Q.selectionStart=R;Q.selectionEnd=k;}}}Q.focus();}function y(i){if(a!=8){A.val(A.val()+i.substring(z.length));
b(z.length,i.length);}}function G(){var k=B(d);var i=(w.width>0)?w.width:A.width();h.css({width:parseInt(i)+"px",top:(k.y+d.offsetHeight)+"px",left:k.x+"px"}).show();}function c(){if(J){clearTimeout(J);}J=setTimeout(x,200);}function x(){if(J){clearTimeout(J);}A.removeClass(w.loadingClass);if(h.is(":visible")){h.hide();
}if(w.mustMatch){var i=A.val();if(i!=d.lastSelected){t(null);}}}function g(k,i){if(i){A.removeClass(w.loadingClass);q.innerHTML="";if(!l||i.length==0){return x();}if($.browser.msie){h.append(document.createElement("iframe"));}q.appendChild(L(i));if(w.autoFill&&(A.val().toLowerCase()==k.toLowerCase())){y(i[0][0]);
}G();}else{x();}}function f(S){if(!S){return null;}var k=[];var R=S.split(w.lineSeparator);for(var Q=0;Q<R.length;Q++){var T=$.trim(R[Q]);if(T){k[k.length]=T.split(w.cellSeparator);}}return k;}function L(V){var U=document.createElement("ul");var S=V.length;if((w.maxItemsToShow>0)&&(w.maxItemsToShow<S)){S=w.maxItemsToShow;
}for(var T=0;T<S;T++){var W=V[T];if(!W){continue;}var Q=document.createElement("li");if(w.formatItem){Q.innerHTML=w.formatItem(W,T,S);Q.selectValue=W[0];}else{Q.innerHTML=W[0];Q.selectValue=W[0];}var k=null;if(W.length>1){k=[];for(var R=1;R<W.length;R++){k[k.length]=W[R];}}Q.extra=k;U.appendChild(Q);
$(Q).hover(function(){$("li",U).removeClass("ac_over");$(this).addClass("ac_over");K=$("li",U).indexOf($(this).get(0));},function(){$(this).removeClass("ac_over");}).click(function(i){i.preventDefault();i.stopPropagation();t(this);});}return U;}function E(k){if(!w.matchCase){k=k.toLowerCase();}var i=w.cacheLength?O(k):null;
if(i){g(k,i);}else{if((typeof w.url=="string")&&(w.url.length>0)){$.get(o(k),function(Q){Q=f(Q);e(k,Q);g(k,Q);});}else{A.removeClass(w.loadingClass);}}}function o(R){var k=w.url+"?q="+encodeURI(R);for(var Q in w.extraParams){k+="&"+Q+"="+encodeURI(w.extraParams[Q]);}return k;}function O(V){if(!V){return null;
}if(j.data[V]){return j.data[V];}if(w.matchSubset){for(var T=V.length-1;T>=w.minChars;T--){var Q=V.substr(0,T);var W=j.data[Q];if(W){var U=[];for(var R=0;R<W.length;R++){var k=W[R];var S=k[0];if(D(S,V)){U[U.length]=k;}}return U;}}}return null;}function D(R,Q){if(!w.matchCase){R=R.toLowerCase();}var k=R.indexOf(Q);
if(k==-1){return false;}return k==0||w.matchContains;}this.flushCache=function(){m();};this.setExtraParams=function(i){w.extraParams=i;};this.findValue=function(){var k=A.val();if(!w.matchCase){k=k.toLowerCase();}var i=w.cacheLength?O(k):null;if(i){I(k,i);}else{if((typeof w.url=="string")&&(w.url.length>0)){$.get(o(k),function(Q){Q=f(Q);
e(k,Q);I(k,Q);});}else{I(k,null);}}};function I(V,U){if(U){A.removeClass(w.loadingClass);}var S=(U)?U.length:0;var Q=null;for(var T=0;T<S;T++){var W=U[T];if(W[0].toLowerCase()==V.toLowerCase()){Q=document.createElement("li");if(w.formatItem){Q.innerHTML=w.formatItem(W,T,S);Q.selectValue=W[0];}else{Q.innerHTML=W[0];
Q.selectValue=W[0];}var k=null;if(W.length>1){k=[];for(var R=1;R<W.length;R++){k[k.length]=W[R];}}Q.extra=k;}}if(w.onFindValue){setTimeout(function(){w.onFindValue(Q);},1);}}function e(k,i){if(!i||!k||!w.cacheLength){return;}if(!j.length||j.length>w.cacheLength){m();j.length++;}else{if(!j[k]){j.length++;
}}j.data[k]=i;}function B(k){var Q=k.offsetLeft||0;var i=k.offsetTop||0;while(k=k.offsetParent){Q+=k.offsetLeft;i+=k.offsetTop;}return{x:Q,y:i};}};jQuery.fn.autocomplete=function(b,a,c){a=a||{};a.url=b;a.data=((typeof c=="object")&&(c.constructor==Array))?c:null;a.inputClass=a.inputClass||"ac_input";
a.resultsClass=a.resultsClass||"ac_results";a.lineSeparator=a.lineSeparator||"\n";a.cellSeparator=a.cellSeparator||"|";a.minChars=a.minChars||1;a.delay=a.delay||400;a.matchCase=a.matchCase||0;a.matchSubset=a.matchSubset||1;a.matchContains=a.matchContains||0;a.cacheLength=a.cacheLength||1;a.mustMatch=a.mustMatch||0;
a.extraParams=a.extraParams||{};a.loadingClass=a.loadingClass||"ac_loading";a.selectFirst=a.selectFirst||false;a.selectOnly=a.selectOnly||false;a.maxItemsToShow=a.maxItemsToShow||-1;a.autoFill=a.autoFill||false;a.width=parseInt(a.width,10)||0;this.each(function(){var d=this;new jQuery.autocomplete(d,a);
});return this;};jQuery.fn.autocompleteArray=function(b,a){return this.autocomplete(null,a,b);};jQuery.fn.indexOf=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return a;}}return -1;};var TFT={};TFT.Core={Modules:{oModules:{},addModule:function(b){var a=b.split(" "),c;if(a.length===7){a.shift();
}c=a[0].split(",");this.oModules[c[0]]={iVersion:a[1],sTimestamp:a[2]+" "+a[3],sAuthor:a[4]};},isLoaded:function(a){if(typeof this.oModules[a]==="undefined"){return false;}return true;}}};TFT.Core.Modules.addModule("tft.js 16514 2010-02-23 16:36:42Z bkonetzny $");TFT.Util={Date:{},Form:{},String:{}};
TFT.Ext={};TFT.Core.Modules.addModule("console.js 10700 2009-10-22 12:45:12Z bkonetzny $");TFT.Core.Console={bActive:false,bLoggerReady:false,sLogHandler:"",sKeyHandler:"",aKeyFilters:[],aSeverity:[],aMessageBuffer:[],log:function(e,d,b){d=d||"";b=b||"info";var c=true,a;if(!this.bActive){return false;
}else{if(this.aSeverity.join(" ").indexOf(b)===-1){c=false;}if(c&&this.aKeyFilters.length){if(this.sKeyHandler==="include"){a=$.grep(this.aKeyFilters,function(f,g){var h;if(f.indexOf("*")!==-1){h=f.substr(0,f.length-2);return(h===e.substr(0,h.length));}else{return(f===e);}});if(!a.length){c=false;}}else{if(this.sKeyHandler==="exclude"){a=$.grep(this.aKeyFilters,function(f,g){var h;
if(f.indexOf("*")!==-1){h=f.substr(0,f.length-2);return(h===e.substr(0,h.length));}else{return(f===e);}});if(a.length){c=false;}}}}if(c){this.writeLog(e,d,b);}return true;}},writeLog:function(d,b,a){if(this.bLoggerReady){if(this.aMessageBuffer.length){for(var c=0;c<this.aMessageBuffer.length;c++){this.writeLogHandler(this.aMessageBuffer[c].sKey,this.aMessageBuffer[c].sMessage,this.aMessageBuffer[c].sSeverity);
}this.aMessageBuffer=[];}this.writeLogHandler(d,b,a);}else{this.aMessageBuffer.push({sKey:d,sMessage:b,sSeverity:a});}},writeLogHandler:function(c,b,a){if(this.sLogHandler==="console.debug"){if(a==="info"){console.info("["+c+"] "+b);}else{if(a==="warn"){console.warn("["+c+"] "+b);}else{if(a==="error"){console.error("["+c+"] "+b);
}else{console.debug("["+c+"] "+b);}}}}else{if(this.sLogHandler==="div#tft_core_console"){$("div#tft_core_console textarea").val("["+a+"]["+c+"] "+b+"\n"+$("div#tft_core_console textarea").val());}else{if(this.sLogHandler==="alert"){alert("["+a+"]["+c+"] "+b);}}}},init:function(d,b,e,a,c){b=b||"";e=e||[];
a=a||"include";c=c||["info","warn","error"];if(d){if(b!==""){this.sLogHandler=b;}else{if(typeof console!=="undefined"&&typeof console.debug!=="undefined"){this.sLogHandler="console.debug";}else{this.sLogHandler="div#tft_core_console";}}this.aKeyFilters=e;this.sKeyHandler=a;this.aSeverity=c;if(this.sLogHandler==="div#tft_core_console"){this.createConsoleElement();
}else{this.bLoggerReady=true;}this.bActive=true;this.log("TFT.Core.Console.init","Initialised");}else{this.bActive=false;}},toggleLogger:function(a){a=a||true;if(!a){this.log("TFT.Core.Console.toggleLogger","bLoggerReady: "+a);}TFT.Core.Console.bLoggerReady=a;if(a){this.log("TFT.Core.Console.toggleLogger","bLoggerReady: "+a);
}},createConsoleElement:function(){$(document).ready(function(){TFT.Core.Console.log("TFT.Core.Console.createConsoleElement","#tft_core_console");var a="";a+='<div id="tft_core_console" style="z-index: 999; border: 1px solid #000; width: 510px; position: fixed; right: 0px; bottom: 0px; background-color: #ccc; padding: 5px; font-family: Arial; font-size: 10px; color: #000;">';
a+='<label for="tft_core_console_log" style="float: left; display: block; font-family: Arial; font-size: 12px; font-weight: bold; color: #000;">TFT.Core.Console:</label>';a+='<a href="#" style="float: right; font-family: Arial; font-size: 10px; padding-left: 10px; font-weight: normal; color: #000;" onclick="$(\'#tft_core_console\').hide(); return false;">[ close ]</a>';
a+="<a href=\"#\" style=\"float: right; font-family: Arial; font-size: 10px; padding-left: 10px; font-weight: normal; color: #000;\" onclick=\"$('#tft_core_console div').toggle(); if($(this).html() == '[ hide ]') { $(this).html('[ show ]'); } else { $(this).html('[ hide ]'); } return false;\">[ hide ]</a>";
a+='<a href="#" style="float: right; font-family: Arial; font-size: 10px; padding-left: 10px; font-weight: normal; color: #000;" onclick="$(\'#tft_core_console textarea\').val(\'\'); return false;">[ clear ]</a>';a+="<a href=\"#\" style=\"float: right; font-family: Arial; font-size: 10px; padding-left: 10px; font-weight: normal; color: #000;\" onclick=\" if($(this).html() == '[ pause ]') { TFT.Core.Console.toggleLogger(false); $(this).html('[ resume ]'); } else { TFT.Core.Console.toggleLogger(true); $(this).html('[ pause ]'); } return false;\">[ pause ]</a>";
a+="<div>";a+='<textarea id="tft_core_console_log" style="clear: both; display: block; width: 500px; height: 100px; font-size: 11px; color: #000;"></textarea>';a+="Mode: "+TFT.Core.Console.sKeyHandler+" | Filter: "+TFT.Core.Console.aKeyFilters;a+="</div>";a+="</div>";$("body").append(a);TFT.Core.Console.bLoggerReady=true;
});}};TFT.Core.Modules.addModule("ads.js 14065 2009-12-08 11:39:18Z bkonetzny $");TFT.Core.Ads={Handler:{},bInitialised:false,aActiveHandler:[],oProperties:{},bDomReady:false,oAreas:{},sAdClass:"",init:function(b,a){a=a||"tft_ads";TFT.Core.Console.log("TFT.Core.Ads.init","aActiveHandler: "+b+" | sAdClass: "+a);
var c=this;this.bInitialised=true;this.aActiveHandler=b;this.sAdClass=a;$.each(this.aActiveHandler,function(d,e){if(typeof c.Handler[e]!=="undefined"){if(typeof c.Handler[e].init!=="undefined"){c.Handler[e].init();}}else{TFT.Core.Console.log("TFT.Core.Ads.init",'Handler "'+e+'" could not be initialized. Please make sure this handler is loaded.',"error");
}});$(document).ready(function(){$("body").append('<div class="advertisement" style="float: left; width: 1px; height: 1px; overflow: hidden;"></div>');TFT.Core.Ads.bDomReady=true;});},setProperties:function(c,b){if(this.bInitialised){TFT.Core.Console.log("TFT.Core.Ads.setProperties","sKey: "+c);var a=this;
this.oProperties[c]=b;$.each(this.aActiveHandler,function(d,e){if(e===c&&typeof a.Handler[c].set!=="undefined"){a.Handler[e].set(a.oProperties[c]);}});}},initArea:function(a,b,d){d=d||{};if(this.bInitialised){TFT.Core.Console.log("TFT.Core.Ads.initArea","sArea: "+a);var c=this;this.oAreas[a]={sHandler:b,oProperties:d,bDisplayed:false};
$.each(this.aActiveHandler,function(e,f){if(f===c.oAreas[a].sHandler&&typeof c.Handler[c.oAreas[a].sHandler].initArea!=="undefined"){c.Handler[c.oAreas[a].sHandler].initArea(a,d,c.oProperties[c.oAreas[a].sHandler]);}});}},displayArea:function(a){TFT.Core.Console.log("TFT.Core.Ads.displayArea","sArea: "+a);
var b=this;$.each(this.aActiveHandler,function(c,d){if(typeof b.oAreas[a]!=="undefined"&&!b.oAreas[a].bDisplayed&&d===b.oAreas[a].sHandler&&typeof b.Handler[b.oAreas[a].sHandler].displayArea!=="undefined"){b.Handler[b.oAreas[a].sHandler].displayArea(a,b.oAreas[a].oProperties,b.oProperties[b.oAreas[a].sHandler]);
b.oAreas[a].bDisplayed=true;}});},refreshAreas:function(a){a=a||"";TFT.Core.Console.log("TFT.Core.Ads.refreshAreas","aAreas: "+a);var b=this;if(a===""){a=[];$.each(this.oAreas,function(c,d){a.push(c);});}$.each(a,function(){TFT.Core.Console.log("TFT.Core.Ads.refreshAreas","sArea: "+this);var c=$("."+b.sAdClass+"_area_"+this),e=c.attr("id"),d=c.html();
if(typeof e==="undefined"||e===""){e=b.sAdClass+"_"+Math.random().toString().substr(2);c.attr("id",e);}document.getElementById(e).innerHTML=d;});},showAreas:function(){TFT.Core.Console.log("TFT.Core.Ads.showAreas","sAdClass: "+this.sAdClass);if(this.sAdClass!==""){$("."+this.sAdClass).fadeTo("fast",1,function(){$(this).css("display","block");
});}},hideAreas:function(){TFT.Core.Console.log("TFT.Core.Ads.hideAreas","sAdClass: "+this.sAdClass);if(this.sAdClass!==""){$("."+this.sAdClass).fadeTo("fast",0.1,function(){$(this).css("display","none");});}},hasAdBlocker:function(){TFT.Core.Console.log("TFT.Core.Ads.hasAdBlocker");if(TFT.Core.Ads.bDomReady){var a=$("div.advertisement").css("-moz-binding");
if(a!=="none"){return true;}}return false;}};TFT.Core.Modules.addModule("adsc.js 14369 2009-12-10 14:50:50Z bkonetzny $");TFT.Core.Ads.Handler.Adsc={set:function(a){TFT.Core.Console.log("TFT.Core.Ads.Handler.Adsc.set");$.each(a.oSettings,function(b,c){window["adsc_"+b]=c;});document.write('<script type="text/javascript" src="'+a.sUrl+'"><\/script>');
},initArea:function(a,c,b){c.sType=c.sType||"ads_gettag";TFT.Core.Console.log("TFT.Core.Ads.Handler.Adsc.initArea","sArea: "+a+" | sType: "+c.sType);if(c.sType==="ads_gettag"){if(typeof c.oSettings==="object"){$.each(c.oSettings,function(d,e){window["adsc_"+a+d]=e;});}else{TFT.Core.Console.log("TFT.Core.Ads.Handler.Adsc.initArea","sArea: "+a+" | No oAreaProperties.oSettings defined","warn");
}}},displayArea:function(a,c,b){c.sType=c.sType||"ads_gettag";TFT.Core.Console.log("TFT.Core.Ads.Handler.Adsc.displayArea","sArea: "+a+" | sType: "+c.sType);if(c.sType==="ads_gettag"){if(typeof window.ads_gettag!=="undefined"){document.write(window.ads_gettag(c.sAdsTag,c.oSettings.width,c.oSettings.height,100));
}else{TFT.Core.Console.log("TFT.Core.Ads.Handler.Adsc.displayArea","Required function window.ads_gettag() is undefined. Check if TFT.Core.Ads.Handler.Adsc.set() has loaded the external script ("+b.sUrl+") properly.","error");}}else{if(c.sType==="adsdf"){document.write('<div id="adsdf_'+c.oSettings.width+"_"+c.oSettings.height+"_"+c.oSettings.percent+"_"+c.oSettings.layout+'" style="width: '+c.oSettings.width+'px; height: 1px; display: none; margin-top: 12px;"></div>');
}}},defaultGoogleTemplate:function(b){TFT.Core.Console.log("TFT.Core.Ads.Handler.Adsc.defaultGoogleTemplate","aResults.length: "+b.length);if(b.length===0){return;}window.google_info=window.google_info||{};window.google_info.feedback_url=window.google_info.feedback_url||"http://services.google.com/feedback/online_hws_feedback";
window.dc_skip=window.dc_skip||0;window.dc_skip=window.dc_skip+b.length;var a='<div class="Adsc"><div><a href="'+window.google_info.feedback_url+'" target="_blank">Google-Anzeigen</a></div><ul>';$.each(b,function(d,c){c.url=c.url||"";c.line1=c.line1||"";c.line2=c.line2||"";c.line3=c.line3||"";c.url=c.url||"";
c.visible_url=c.visible_url||"";a+='<li><strong><a href="'+c.url+'" target="_blank">'+c.line1+"</a></strong>";a+="<span>"+c.line2+" "+c.line3+"</span>";a+='<a href="'+c.url+'" target="_blank">'+c.visible_url+"</a>";a+="</li>";});a+="</ul></div>";document.write(a);}};TFT.Core.Modules.addModule("google_adsense_search.js 19468 2010-05-26 13:00:08Z fgrassold-ci $");
TFT.Core.Ads.Handler.GoogleAdsenseSearch={oAreaMappings:{},set:function(b){b.oSettings=b.oSettings||{};b.oSettings.gl=b.oSettings.gl||"de";b.oSettings.hl=b.oSettings.hl||"de";b.oSettings.adsafe=b.oSettings.adsafe||"high";b.oSettings.adtest=b.oSettings.adtest||"off";b.oSettings.ie=b.oSettings.ie||"utf8";
b.oSettings.oe=b.oSettings.oe||"utf8";TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseSearch.set");var a=this;$.each(b.oSettings,function(c,d){window["google_afs_"+c]=d;});window.google_afs_request_done=function(c){a.requestCallback(c,b);};document.write('<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_ads.js"><\/script>');
},displayArea:function(a,d,c){TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseSearch.displayArea","sArea: "+a);var b=this;document.write('<div id="GoogleAdsenseSearchArea_'+a+'"></div>');$.each(d.aResults,function(){b.oAreaMappings[this]=a;});},requestCallback:function(c,b){var a=TFT.Core.Ads.Handler.GoogleAdsenseSearch;
$(document).ready(function(){TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseSearch.requestCallback","aResults.length: "+c.length);$.each(c,function(){if(typeof a.oAreaMappings[this.n]!=="undefined"){var d=a.oAreaMappings[this.n],f="#GoogleAdsenseSearchArea_"+d,e=a.defaultTemplate;if(typeof TFT.Core.Ads.oAreas[d].oProperties.sTemplateFunction!=="undefined"){e=TFT.Core.Ads.oAreas[d].oProperties.sTemplateFunction;
TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseSearch.requestCallback","Using sTemplateFunction of area.","debug");}else{if(typeof TFT.Core.Ads.oProperties.GoogleAdsenseSearch.sTemplateFunction!=="undefined"){e=TFT.Core.Ads.oProperties.GoogleAdsenseSearch.sTemplateFunction;TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseSearch.requestCallback","Using sTemplateFunction of handler.","debug");
}}if(typeof e==="function"){e(d,this,f);}else{TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseSearch.requestCallback","sTemplateFunction not found, so Ads won't be rendered.","error");}}});});},defaultTemplate:function(a,b,d){TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseSearch.defaultTemplate","sArea: "+a);
b.url=b.url||"";b.line1=b.line1||"";b.line2=b.line2||"";b.line3=b.line3||"";b.url=b.url||"";b.visible_url=b.visible_url||"";if($(d).html()===""){window.google_info=window.google_info||{};window.google_info.feedback_url=window.google_info.feedback_url||"http://services.google.com/feedback/online_hws_feedback";
$(d).append('<div class="GoogleAdsenseSearch"><div><a href="'+window.google_info.feedback_url+'" target="_blank">Google-Anzeigen</a></div><ul></ul></div>');}var c='<li><strong><a href="'+b.url+'" target="_blank">'+b.line1+"</a></strong>";c+="<span>"+b.line2+" "+b.line3+"</span>";c+='<a href="'+b.url+'" target="_blank">'+b.visible_url+"</a>";
c+="</li>";$(d+" ul").append(c);}};TFT.Core.Modules.addModule("google_adsense_content.js 14369 2009-12-10 14:50:50Z bkonetzny $");TFT.Core.Ads.Handler.GoogleAdsenseContent={oGoogle:{skip:0,adnum:0},sActiveArea:"",set:function(a){a.oSettings.ad_channel=a.oSettings.ad_channel||"";a.oSettings.ad_type=a.oSettings.ad_type||"text";
a.oSettings.image_size=a.oSettings.image_size||"468x60";a.oSettings.adtest=a.oSettings.adtest||"off";a.oSettings.feedback=a.oSettings.feedback||"on";a.oSettings.ad_output=a.oSettings.ad_output||"js";a.oSettings.encoding=a.oSettings.encoding||"utf8";a.oSettings.language=a.oSettings.language||"de";a.oSettings.max_num_ads=a.oSettings.max_num_ads||3;
TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseContent.set","ad_client: "+a.oSettings.ad_client);},displayArea:function(a,d,c){d.ad_section=d.ad_section||"";TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseContent.displayArea","sArea: "+a);var b=this;$.each(b.oGoogle,function(e,f){window["google_"+e]=f;
});$.each(c.oSettings,function(e,f){window["google_"+e]=f;});$.each(d,function(e,f){window["google_"+e]=f;});b.sActiveArea=a;window.google_ad_request_done=function(e){if(e.length&&e[0].bidtype==="CPC"){b.oGoogle.adnum=b.oGoogle.adnum+e.length;b.oGoogle.skip=b.oGoogle.adnum;window.dc_skip=window.dc_skip||0;
window.dc_skip=window.dc_skip+e.length;}b.requestCallback(e);};document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/script>');document.write('<div id="GoogleAdsenseContentArea_'+a+'"></div>');},requestCallback:function(e,c){var b=TFT.Core.Ads.Handler.GoogleAdsenseContent,a=b.sActiveArea,d="#GoogleAdsenseContentArea_"+a;
$(document).ready(function(){TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseContent.requestCallback","aResults.length: "+e.length);$.each(e,function(){var f=b.defaultTemplate;if(typeof TFT.Core.Ads.oAreas[a].oProperties.sTemplateFunction!=="undefined"){f=TFT.Core.Ads.oAreas[a].oProperties.sTemplateFunction;
TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseContent.requestCallback","Using sTemplateFunction of area.","debug");}else{if(typeof TFT.Core.Ads.oProperties.GoogleAdsenseContent.sTemplateFunction!=="undefined"){f=TFT.Core.Ads.oProperties.GoogleAdsenseContent.sTemplateFunction;TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseContent.requestCallback","Using sTemplateFunction of handler.","debug");
}}if(typeof f==="function"){f(a,this,d);}else{TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseContent.requestCallback","sTemplateFunction not found, so Ads won't be rendered.","error");}});});},defaultTemplate:function(a,b,d){TFT.Core.Console.log("TFT.Core.Ads.Handler.GoogleAdsenseContent.defaultTemplate","sArea: "+a);
b.url=b.url||"";b.line1=b.line1||"";b.line2=b.line2||"";b.line3=b.line3||"";b.url=b.url||"";b.visible_url=b.visible_url||"";if($(d).html()===""){window.google_info=window.google_info||{};window.google_info.feedback_url=window.google_info.feedback_url||"http://services.google.com/feedback/online_hws_feedback";
$(d).append('<div class="GoogleAdsenseContent"><div><a href="'+window.google_info.feedback_url+'" target="_blank">Google-Anzeigen</a></div><ul></ul></div>');}var c='<li><strong><a href="'+b.url+'" target="_blank">'+b.line1+"</a></strong>";c+="<span>"+b.line2+" "+b.line3+"</span>";c+='<a href="'+b.url+'" target="_blank">'+b.visible_url+"</a>";
c+="</li>";$(d+" ul").append(c);}};TFT.Core.Modules.addModule("statistics.js 18600 2010-04-26 11:42:22Z bkonetzny $");TFT.Core.Statistics={Handler:{},bInitialised:false,aActiveHandler:[],oProperties:{},oPropertiesDefaults:{},oPropertiesProvided:{},init:function(a){TFT.Core.Console.log("TFT.Core.Statistics.init","aActiveHandler: "+a);
var b=this;$.each(a,function(c,d){if(typeof b.Handler[d]!=="undefined"){if(typeof b.Handler[d].count!=="undefined"){if(typeof b.Handler[d].init!=="undefined"){b.Handler[d].init();}b.Handler[d].iCount=0;b.aActiveHandler.push(d);}else{TFT.Core.Console.log("TFT.Core.Statistics.init",'Function count() not implemented by handler "'+d+'". Handler will be disabled.',"error");
}}else{TFT.Core.Console.log("TFT.Core.Statistics.init",'Handler "'+d+'" could not be initialized. Please make sure this handler is loaded. Handler will be disabled.',"error");}});this.bInitialised=true;},count:function(a){if(this.bInitialised){a=a||this.aActiveHandler;var b=this;TFT.Core.Console.log("TFT.Core.Statistics.count","aHandlers: "+a);
this.prepareProperties(a);$.each(a,function(c,d){b.Handler[d].count(b.oProperties[d]);b.Handler[d].iCount++;});this.reset(a);}},set:function(a,b){if(this.bInitialised){TFT.Core.Console.log("TFT.Core.Statistics.set","sHandler: "+a);this.reset([a]);this.oPropertiesProvided[a]=b;}},get:function(a,d,f,c){if(this.bInitialised){d=d||"";
f=f||"object";c=c||false;TFT.Core.Console.log("TFT.Core.Statistics.get","sHandler: "+a+" | sProperty: "+d+" | sType: "+f+" | bUseHandler: "+c);var b={},e;if(!c){$.extend(b,this.oPropertiesDefaults[a]);$.extend(b,this.oPropertiesProvided[a]);if(d===""){if(f==="array"){e=[];$.each(b,function(g,h){e.push([g,h]);
});}else{e=b;}}else{e="";if(typeof b[d]!=="undefined"){e=b[d];}}}else{if(typeof this.Handler[a].get!=="undefined"){b=this.Handler[a].get(d);if(f==="array"){e=[];$.each(b,function(g,h){e.push([g,h]);});}else{e=b;}}else{TFT.Core.Console.log("TFT.Core.Statistics.get",'Function get() not implemented by handler "'+a+'".',"error");
}}return e;}},setDefaults:function(a,b){if(this.bInitialised){TFT.Core.Console.log("TFT.Core.Statistics.setDefaults","sHandler: "+a);this.oPropertiesDefaults[a]=b;}},getDefaults:function(a){if(this.bInitialised){TFT.Core.Console.log("TFT.Core.Statistics.getDefaults","sHandler: "+a);return this.oPropertiesDefaults[a];
}else{return{};}},reset:function(a){if(this.bInitialised){a=a||this.aActiveHandler;TFT.Core.Console.log("TFT.Core.Statistics.reset","aHandlers: "+a);var b=this;$.each(a,function(c,d){if(typeof b.Handler[d].reset!=="undefined"){b.Handler[d].reset(b.oProperties[d]);}b.oPropertiesProvided[d]={};b.oProperties[d]={};
});}},prepareProperties:function(a){if(this.bInitialised){a=a||this.aActiveHandler;var b=this;$.each(this.oPropertiesDefaults,function(c,d){if(typeof b.oProperties[c]==="undefined"){b.oProperties[c]={};}$.extend(b.oProperties[c],d);});$.each(this.oPropertiesProvided,function(c,d){if(typeof b.oProperties[c]==="undefined"){b.oProperties[c]={};
}$.extend(b.oProperties[c],d);});$.each(a,function(c,d){if(typeof b.Handler[d].set!=="undefined"){b.Handler[d].set(b.oProperties[d]);}});}}};TFT.Core.Modules.addModule("ivwagof.js 9442 2009-09-28 11:15:53Z bkonetzny $");TFT.Core.Statistics.Handler.IvwAgof={count:function(b){b.sSelector=b.sSelector||"#ivwbox";
b.type=b.type||"CP";b.comment=b.comment||"";TFT.Core.Console.log("TFT.Core.Statistics.Handler.IvwAgof.count","account: "+b.account+" | agof: "+b.agof+" | type: "+b.type);var a=new Date().getTime(),c="";if(document.referrer){c=document.referrer;c=c.replace(/["'<>]/g,"");c=encodeURI(c);c=c.replace(/\//g,"%2F");
}$(b.sSelector).attr("src","http://"+b.account+".ivwbox.de/cgi-bin/ivw/"+b.type+"/"+b.agof+";"+b.comment+"?r="+c+"&d="+a);}};TFT.Core.Modules.addModule("omniture.js 15761 2010-02-04 08:52:58Z bkonetzny $");TFT.Core.Statistics.Handler.Omniture={count:function(a){TFT.Core.Console.log("TFT.Core.Statistics.Handler.Omniture.count");
if(this.checkOmnitureExistence()){window.s_code=window.s.t();$("body").append(window.s_code);}},set:function(a){TFT.Core.Console.log("TFT.Core.Statistics.Handler.Omniture.set");if(this.checkOmnitureExistence()){$.each(a,function(b,c){window.s[b]=c;});}},get:function(a){TFT.Core.Console.log("TFT.Core.Statistics.Handler.Omniture.get");
var b={};if(this.checkOmnitureExistence()){if(a===""){if(typeof window.s_account!=="undefined"){b.account=window.s_account;}$.each(window.s,function(c,d){if(typeof d!=="function"&&typeof d!=="object"){b[c]=d;}});}else{b="";if(typeof window.s[a]!=="undefined"){b=window.s[a];}}}return b;},reset:function(b){TFT.Core.Console.log("TFT.Core.Statistics.Handler.Omniture.reset");
if(this.checkOmnitureExistence()&&typeof b!=="undefined"){$.each(b,function(c){delete window.s[c];});var a=TFT.Core.Statistics.getDefaults("Omniture");$.each(a,function(c,d){window.s[c]=d;});}},checkOmnitureExistence:function(){if(typeof window.s!=="undefined"){return true;}else{TFT.Core.Console.log("TFT.Core.Statistics.Handler.Omniture.checkOmnitureExistence",'"window.s" is undefined. Please make sure Omniture is included after the opening <body>-tag.',"error");
return false;}}};TFT.Core.Modules.addModule("omniture_event.js 4024 2009-03-27 12:23:27Z bkonetzny $");TFT.Core.Statistics.Handler.OmnitureEvent={count:function(d){d.sLinkType=d.sLinkType||"e";TFT.Core.Console.log("TFT.Core.Statistics.Handler.OmnitureEvent.count","");if(this.checkOmnitureExistence()){var a=window.s_gi(window.s_account),e={},b=[],c=[];
if(typeof d.sLinkTrackVars!=="undefined"){c=d.sLinkTrackVars.split(",");}$.each(c,function(){var f=$.trim(this);if(typeof window.s[f]!=="undefined"){e[f]=window.s[f];}else{b.push(f);}});if(typeof d.sLinkTrackEvents!=="undefined"&&d.sLinkTrackEvents!==""){a.linkTrackVars=d.sLinkTrackVars;a.linkTrackEvents=d.sLinkTrackEvents;
a.events=d.sLinkTrackEvents;$.each(c,function(){var f=$.trim(this);a[f]=d[f];});}else{a.linkTrackVars="None";a.linkTrackEvents="None";}a.tl(d.oElement,d.sLinkType,d.sLinkUrl);delete a.linkTrackVars;delete a.linkTrackEvents;$.each(e,function(f,g){window.s[f]=g;});$.each(b,function(){delete window.s[this];
});}},checkOmnitureExistence:function(){if(typeof window.s!=="undefined"){return true;}else{TFT.Core.Console.log("TFT.Core.Statistics.Handler.OmnitureEvent.checkOmnitureExistence",'"window.s" is undefined - request will not be tracked.');return false;}}};TFT.Core.Modules.addModule("clock.js 3857 2009-03-24 11:45:29Z bkonetzny $");
TFT.Util.Date.Clock={oConfig:{sFormat:"dd.MM.yyyy | HH:mm",iWait:30000},sSelector:"#header div.date span.date",oDate:{oNow:"",sFormatted:""},bActive:false};TFT.Util.Date.Clock.start=function(b){this.sSelector=b;TFT.Core.Console.log("TFT.Util.Date.Clock.start","sSelector: "+b);var a=this;this.update();
this.bActive=setInterval(function(){a.update();},this.oConfig.iWait);};TFT.Util.Date.Clock.stop=function(){TFT.Core.Console.log("TFT.Util.Date.Clock.stop","");this.update();window.clearInterval(this.bActive);};TFT.Util.Date.Clock.update=function(){this.oDate.oNow=Date.now();var a=this.oDate.oNow.toString(this.oConfig.sFormat);
TFT.Core.Console.log("TFT.Util.Date.Clock.update","this.oDate.oNow: "+this.oDate.oNow+" | sFormatted: "+a);$(this.sSelector).html(a);};TFT.Core.Modules.addModule("limitinput.js 3317 2009-03-13 10:24:30Z bkonetzny $");TFT.Util.Form.limitInput=function(b){TFT.Core.Console.log("TFT.Util.Form.limitInput","oInput.input: "+b.input+" | oInput.limit: "+b.limit);
var c=$(b.input).val(),a=c.length;if(a>=b.limit){$(b.input).val(c.substring(0,b.limit));if(typeof b.label!=="undefined"){$(b.label).html("0");}}else{if(typeof b.label!=="undefined"){$(b.label).html(b.limit-a);}}};TFT.Core.Modules.addModule("tokenfilter.js 3322 2009-03-13 10:27:36Z bkonetzny $");TFT.Util.String.tokenFilter=function(c,e,d){d=d||" ";
var b="",a=c.split(d);$.grep(a,function(f,g){if(b===""){if(f.indexOf(e)!==-1){b=f.substring(e.length);}}});TFT.Core.Console.log("TFT.Util.String.tokenFilter","sString: "+c+" | sSubstring: "+e+' | sDelimiter: "'+d+'" | sToken: '+b);return b;};TFT.Core.Modules.addModule("clonelink.js 6013 2009-07-14 12:57:23Z pgoetz-ci $");
TFT.Util.cloneLink=function(c,a,b){TFT.Core.Console.log("TFT.Util.cloneLink","sContainer: "+c+" | sParentClass: "+a+" | sChildClass: "+b);$(c).each(function(){var d={sHref:$(this).find("."+a).attr("href"),sTitle:$(this).find("."+a).attr("title"),sTarget:$(this).find("."+a).attr("target")};$(this).find("."+b).each(function(){$(this).wrap('<a href="'+d.sHref+'" title="'+d.sTitle+'" target="'+d.sTarget+'"></a>');
});});};TFT.Core.Modules.addModule("loadingindicator.js 17225 2010-03-10 14:44:28Z rlill $");TFT.Util.LoadingIndicator={oConfig:{sClass:"loadingIndicator",sText:"Bitte warten",iOpacity:0.9,oShow:{sEffect:"fadeIn",iSpeed:300},oHide:{sEffect:"fadeOut",iSpeed:300}}};TFT.Util.LoadingIndicator.show=function(a){TFT.Core.Console.log("TFT.Util.LoadingIndicator.show","sSelector: "+a);
$(a).css("position","relative");if($(a).find("div."+this.oConfig.sClass).length===0){$(a).append('<div class="'+this.oConfig.sClass+'" title="'+this.oConfig.sText+'"></div>');$(a+" div."+this.oConfig.sClass).css({opacity:this.oConfig.iOpacity,width:$(a).width(),height:$(a).height()});}switch(this.oConfig.oShow.sEffect){case"fadeIn":$(a+" div."+this.oConfig.sClass).fadeIn(this.oConfig.oShow.iSpeed);
break;case"slideDown":$(a+" div."+this.oConfig.sClass).slideDown(this.oConfig.oShow.iSpeed);break;default:$(a+" div."+this.oConfig.sClass).show();break;}};TFT.Util.LoadingIndicator.hide=function(b){var a;TFT.Core.Console.log("TFT.Util.LoadingIndicator.hide","sSelector: "+b);switch(this.oConfig.oHide.sEffect){case"fadeOut":a=this;
$(b+" div."+this.oConfig.sClass).fadeOut(this.oConfig.oHide.iSpeed,function(){$(b).find("div."+a.oConfig.sClass).remove();});break;case"slideUp":a=this;$(b+" div."+this.oConfig.sClass).fadeOut(this.oConfig.oHide.iSpeed,function(){$(b).find("div."+a.oConfig.sClass).remove();});break;default:$(b+" div."+this.oConfig.sClass).hide();
$(b).find("div."+a.oConfig.sClass).remove();break;}};TFT.Util.imageBlind=function(h){var a,l,f,e,c,m=$(h.selector+" img").attr("width"),n=$(h.selector+" img").attr("height"),j="banderole",i="text",k='<div class="'+j+'"></div>',g='<div class="'+i+'"></div>',d=h.textSML,b=h.textLRG;a=TFT.Util.String.tokenFilter($(h.selector).attr("class"),"clip-").split("-");
l=a[0];f=a[1];e=a[2];c=a[3];$(h.selector+" img").css({position:"absolute",top:0-c,left:0-e});$(h.selector).addClass("sml").css({position:"relative",overflow:"hidden",cursor:"pointer"}).hover(function(){if($(h.selector+" div."+j).length===0){$(h.selector).append(k).append(g);}if($(this).hasClass("sml")===true){$(h.selector).find("div.text").html(d);
}else{$(h.selector).find("div.text").html(b);}},function(){$(h.selector).find("div.text").remove();$(h.selector).find("div.banderole").remove();}).click(function(){if($(this).hasClass("sml")===true){$(h.selector).removeClass("sml").addClass("lrg");$(h.selector+" img").animate({top:0,left:0},{queue:false,duration:"fast"});
$(h.selector).animate({height:n},{queue:false,duration:"fast"}).find("div.text").html(b);}else{$(h.selector).removeClass("lrg").addClass("sml");$(h.selector+" img").animate({top:0-c,left:0-e},{queue:false,duration:"fast"});$(h.selector).animate({height:f},{queue:false,duration:"fast"}).find("div.text").html(d);
}return false;});};jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1;}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000));}else{f=m.expires;
}e="; expires="+f.toUTCString();}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("");}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;
h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break;}}}return d;}};TFT.Ext.NDE={Settings:{Form:{},Box:{}},Form:{},Box:{},userCTF:{}};TFT.Ext.NDE.Settings.spacerWidth=7;TFT.Ext.NDE.Settings.oColor={};TFT.Ext.NDE.Settings.oColors={formFieldDefault:"#ffffff",formFieldHover:"#f4f7fa",formBorderDefault:"#666E7A #9CA2AA #CED1D6 #9BA1AA",formBorderHighlight:"#cc0000",formBorderError:"#990000",formTextDefault:"#818181",formTextError:"#990000",textDefault:"#333333"};
TFT.Ext.NDE.Settings.sImagePath="";TFT.Ext.NDE.Settings.sContextPath="";TFT.Ext.NDE.Settings.bLive=false;TFT.Ext.NDE.Settings.oColor.sErrorMsg="#990000";TFT.Ext.NDE.Settings.oColor.sErrorBdr="1px solid #990000";TFT.Ext.NDE.Settings.sContextPath="hostname:port/contextpfad";TFT.Ext.NDE.Settings.iTimestamp=new Date().getTime();
TFT.Ext.NDE.Settings.sToday=Date.today().toString("dd.MM.yyyy");TFT.Ext.NDE.Settings.sWeek=(6).days().ago().toString("dd.MM.yyyy");TFT.Ext.NDE.Settings.sMonth=(30).days().ago().toString("dd.MM.yyyy");TFT.Ext.NDE.Settings.sYear=(364).days().ago().toString("dd.MM.yyyy");TFT.Ext.NDE.init=function(){TFT.Core.Console.log("TFT.Ext.NDE","Initialised");
if(TFT.Ext.NDE.Settings.bLive===true){TFT.Ext.NDE.Settings.Form.CommentSnippetPath="/ajax/commentform/";TFT.Ext.NDE.Settings.Form.CommentScriptPath="/ajax/comment/";TFT.Ext.NDE.Settings.Form.FeedbackSnippetPath="/ajax/feedbackform/";TFT.Ext.NDE.Settings.Form.FeedbackScriptPath="/ajax/feedback/";TFT.Ext.NDE.Settings.Form.PublisherSnippetPath="/ajax/publisherform/";
TFT.Ext.NDE.Settings.Form.PublisherScriptPath="/ajax/publisher/";TFT.Ext.NDE.Settings.Box.TickerScriptPath="/ajax/ticker/";TFT.Ext.NDE.Settings.Box.NetiquetteSnippetPath="/ajax/netiquette/";TFT.Ext.NDE.Settings.Box.TopicsSnippetPath="/ajax/topics/";TFT.Ext.NDE.Settings.Box.TopicCombinationsSnippetPath="/ajax/topiccombination/";
TFT.Ext.NDE.Settings.Box.PeopleSnippetPath="/ajax/people/";if($.browser.msie&&$.browser.version.substr(0,3)==="6.0"){TFT.Ext.NDE.Settings.bFeedback=false;}else{TFT.Ext.NDE.Settings.bFeedback=true;}TFT.Ext.NDE.userCTF.loggedIn=($.cookie("ctf_status")==="1")?true:false;TFT.Ext.NDE.userCTF.nickName=($.cookie("ctf_nickname")!==""&&$.cookie("ctf_nickname")!=="0"&&$.cookie("ctf_nickname")!==null)?$.cookie("ctf_nickname"):"";
TFT.Ext.NDE.userCTF.eMail="";TFT.Ext.NDE.userCTF.registerURL="http://member.nachrichten.de/register/1.html?ref="+(location.hostname+location.pathname);TFT.Ext.NDE.userCTF.loginURL="http://member.nachrichten.de/login/1.html?ref="+(location.hostname+location.pathname);TFT.Ext.NDE.userCTF.logoutURL="http://member.nachrichten.de/logout/1.html?ref="+(location.hostname+location.pathname);
TFT.Ext.NDE.userCTF.profileURL="http://member.nachrichten.de/register/1.html?ref="+(location.hostname+location.pathname);TFT.Ext.NDE.userCTF.ctfID="0";}else{TFT.Ext.NDE.Settings.Form.CommentSnippetPath="scripts/ajax/form.Comment.html";TFT.Ext.NDE.Settings.Form.CommentScriptPath="/ajax/comment/";TFT.Ext.NDE.Settings.Form.FeedbackSnippetPath="script/ajax/form.Feedback.html";
TFT.Ext.NDE.Settings.Form.FeedbackScriptPath="/ajax/feedback/";TFT.Ext.NDE.Settings.Form.PublisherSnippetPath="scripts/ajax/form.Publisher.html";TFT.Ext.NDE.Settings.Form.PublisherScriptPath="/ajax/publisher/";TFT.Ext.NDE.Settings.Box.TickerScriptPath="/ajax/ticker/";TFT.Ext.NDE.Settings.Box.NetiquetteSnippetPath="scripts/ajax/box.Netiquette.html";
TFT.Ext.NDE.Settings.Box.TopicsSnippetPath="scripts/ajax/box.Topics.html";TFT.Ext.NDE.Settings.Box.TopicCombinationsSnippetPath="scripts/ajax/box.TopicCombinations.html";TFT.Ext.NDE.Settings.Box.PeopleSnippetPath="scripts/ajax/box.People.html";TFT.Core.Console.init(true);TFT.Ext.NDE.Settings.bFeedback=false;
TFT.Ext.NDE.userCTF.loggedIn=true;TFT.Ext.NDE.userCTF.nickName="TFT-Template";TFT.Ext.NDE.userCTF.eMail="testuser@test.test";TFT.Ext.NDE.userCTF.registerURL="/register";TFT.Ext.NDE.userCTF.loginURL="/login";TFT.Ext.NDE.userCTF.logoutURL="/logout";TFT.Ext.NDE.userCTF.profileURL="/profile";TFT.Ext.NDE.userCTF.ctfID="0";
}if(TFT.Ext.NDE.userCTF.loggedIn===true){$("#header div.generic ul li.logout a, #header div.generic ul li.login a").attr("href",TFT.Ext.NDE.userCTF.logoutURL).html("Logout");$("#header div.generic ul li.register").hide();}else{$("#header div.generic ul li.logout a, #header div.generic ul li.login a").attr("href",TFT.Ext.NDE.userCTF.loginURL).html("Login");
}$("a").bind("click",function(){$(this).blur();});$("body.cluster #sidebar > div:first").addClass("spacerTop");$("body.topic #sidebar > div:first").addClass("spacerTop");$("#header div.boxTabs ul li:last").css("border-right","none");$("div.topicHeader div.topicPicture:eq(1)").css("margin","0 20px 10px -10px");
$("#footer div.generic ul:eq(0)").css("left",(Math.ceil($("#footer").width()-$("#footer div.generic ul:eq(0)").width())/2));$("#footer div.generic ul:eq(1)").css("left",(Math.ceil($("#footer").width()-$("#footer div.generic ul:eq(1)").width())/2));$("#footer div.generic ul:eq(2)").css("left",(Math.ceil($("#footer").width()-$("#footer div.generic ul:eq(2)").width())/2));
if($("#faq").length===1){$("#faq p").hide();$("#faq h4").css("cursor","pointer").click(function(){$(this).next("p").toggle();return false;});}$("body.home div.latestNews p.meta, body.department div.latestNews p.meta").after('<div class="clear"></div>');if($("div.boxCalendar").length>0){var b=(location.pathname).split("/"),e=parseInt(b[3],10)-1,d=parseInt(b[2],1000),a=[],c;
$("div.boxCalendar dt.yearSelection a").each(function(f){a[f]=$(this).html();});c=$.inArray(d,a);if(b.length<4){e=new Date().getMonth();d=new Date().getYear();}$("div.boxCalendar dl.yearSelection").accordion({header:"dt.yearSelection",active:c,autoHeight:false,clearStyle:true});e=parseInt(e,10)-1;$("div.boxCalendar dl.monthSelection").each(function(f){if(f===c){$(this).accordion({header:"dt.monthSelection",active:e,autoHeight:false,clearStyle:true});
}else{$(this).accordion({header:"dt.monthSelection",active:0,autoHeight:false,clearStyle:true});}});}if($("#publisherArea").length===1){$("#publisherArea p").hide();$("#publisherArea h4").css("cursor","pointer").click(function(){$(this).next().toggle();return false;});TFT.Ext.NDE.publisherArea.init();
}if($("#header").length===1){TFT.Ext.NDE.Form.Search.init($("#header"));TFT.Util.Date.Clock.start("#header div.date span.date");}if($("#boxTicker").length===1){TFT.Ext.NDE.BoxTicker.init();}if($("#boxPictures").length===1){TFT.Ext.NDE.BoxPictures.init();}if($("#boxTopiclink").length===1){TFT.Ext.NDE.Box.Topiclink.init();
}if($("#boxMostPopular").length>0){$("#boxMostPopular").accordion({header:"dt.section",active:0});}if($("#boxTopics").length>0){TFT.Util.cloneLink("#boxTopics ul li","linkParent","linkChild");}if($("#boxPeople").length>0){TFT.Util.cloneLink("#boxPeople ul li","linkParent","linkChild");}if($("div.boxCluster").length>0){TFT.Util.cloneLink("div.boxCluster dl dd","linkParent","linkChild");
}if($("div.boxFacebook").length>0){TFT.Ext.NDE.Facebook.init();}if($("div.clusterPictures").length>0){TFT.Ext.NDE.LargeImage("ul.images a");}if($("div.boxCategory ").length>0){TFT.Ext.NDE.BoxCategory.init();}if($("div.topicSlider").length>0){TFT.Ext.NDE.Topic.init();}if($("div.regionHeader").length>0){TFT.Ext.NDE.Region.init();
}if($("#boxComments").length>0){TFT.Ext.NDE.Box.Comment.init();if($("#boxComments").find("form.Comment").length===1){TFT.Ext.NDE.Form.Comment.init($("#boxComments"));}}if($("div.topicPictures").length>0){TFT.Ext.NDE.Topic.initPictures();}if($("div.searchPictures").length>0){TFT.Ext.NDE.Search.initPictures();
}if($("div.regionPictures").length>0){TFT.Ext.NDE.Region.initPictures();}if($("div.searchTopics").length>0){TFT.Util.cloneLink("div.searchTopics dd","linkParent","linkChild");}if($("div.searchHeader").length>0){TFT.Ext.NDE.Search.init();}if($("div.imageBlind").length>0){TFT.Util.imageBlind({selector:"div.imageBlind",textSML:'<div class="buttonLensePlus"></div>',textLRG:'<div class="buttonLenseMinus"></div>'});
}$("a[target=_blank]").live("click",function(){TFT.Core.Statistics.set("OmnitureEvent",{oElement:this,sLinkUrl:this.href,sLinkTrackVars:"prop25,prop26",sLinkTrackEvents:"event1",prop25:$(this).attr("title"),prop26:$(this).parent().parent().find("p.meta:first span.source a").attr("title")});TFT.Core.Statistics.count(["OmnitureEvent"]);
});$("#header div.generic ul li a[title=Registrieren]").click(function(){TFT.Core.Statistics.set("Omniture",{events:s.events+",event2"});TFT.Core.Statistics.count(["Omniture"]);});$("#header div.generic ul li a[title=Login]").click(function(){TFT.Core.Statistics.set("Omniture",{eVar3:"login"});TFT.Core.Statistics.count(["Omniture"]);
});$("#header div.generic ul li a[title=Logout]").click(function(){TFT.Core.Statistics.set("Omniture",{eVar3:"logout"});TFT.Core.Statistics.count(["Omniture"]);});if($("#boxFeedback").length===0&&TFT.Ext.NDE.Settings.bFeedback===true){TFT.Ext.NDE.BoxFeedback.init();}if($("div.boxCluster").length>0){TFT.Ext.NDE.duplicates($("div.buttonDuplicates a"));
}};TFT.Ext.NDE.duplicates=function(a){$(a).click(function(){$(this).toggleClass("active");if($(this).parent().next("div.duplicates:visible").length>0){$(this).parent().next("div.duplicates:visible").fadeOut("fast");$(this).find("dl dd, dl dt").hide();return false;}else{$(this).parent().next("div.duplicates").fadeIn("fast",function(){$(this).find("dl dd:lt(7), dl dt:lt(7)").show();
var d=this,b=$(this).find("dl dd").length,e,f=$(this).find("dl dd:hidden").length,c;if(f<1){$(this).find("div.buttonMoreText").hide();}$(this).find("div.buttonMoreText a").click(function(){c=this;$(d).find("dl dd, dl dt").fadeIn(function(){$(c).hide();});return false;});});return false;}});};TFT.Ext.NDE.resizePage=function(a){var b=$("#pageContainer").width();
$("#pageContainer").css("width",b+a+TFT.Ext.NDE.Settings.spacerWidth);$("#page").css("padding-left",a+TFT.Ext.NDE.Settings.spacerWidth);};TFT.Ext.NDE.adsTemplate=function(a,b,d){if($(d).html()===""){$(d).append('<div class="dc_headline"><div class="dc_txt">Google-Anzeige</div></div><ul></ul><div class="clear"></div>');
}var c="";if(b.type==="text/wide"){c+='<li><strong><a href="'+b.url+'" target="_blank">'+b.line1+"</a></strong> ";c+=b.line2+" ";c+='<a href="'+b.url+'" target="_blank">'+b.visible_url+"</a>";c+="</li>";}$(d+" ul").append(c);c="";return c;};TFT.Util.LoadingIndicator.oConfig.sStyle="position:absolute; top:0px; left:0px; display:none; background: #fff url('images/ajax-loader.gif') center center no-repeat; z-index:299; cursor:wait; width:100%; height:100%";
TFT.Util.LoadingIndicator.oConfig.sText="Bitte warten";TFT.Util.LoadingIndicator.oConfig.oShow.sEffect="fadeIn";TFT.Util.LoadingIndicator.oConfig.oShow.iSpeed=300;TFT.Util.LoadingIndicator.oConfig.oHide.sEffect="fadeOut";TFT.Util.LoadingIndicator.oConfig.oHide.iSpeed=300;TFT.Util.Date.Clock.oConfig.sFormat="dd.MM.yyyy | HH:mm";
TFT.Util.Date.Clock.oConfig.sSelector="#header div.date span.date";TFT.Util.Date.Clock.oConfig.iWait=60000;TFT.Core.Console.init(false,"",[],"include");TFT.Ext.NDE.Header={};TFT.Ext.NDE.Header.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.Header.init","");};TFT.Ext.NDE.Topic={searchString:"",searchPeriodKey:"",searchPeriodStart:"",searchPeriodEnd:"",bSubmit:false,oConfig:{iDuration:200,iSubmitTimer:2000,sSubmitURL:""},oSelector:{sPictureContainer:"div.topicPictures",sPictureList:"div.topicPictures ul.images"},oPicture:{sFlyoutID:"picturesFlyout",sShow:"fadeIn",sHide:"fadeOut",sToggle:"fade",duration:"fast",oStyle:{}}};
TFT.Ext.NDE.Topic.detailToggle=function(){TFT.Core.Console.log("TFT.Ext.NDE.Topic.detailToggle","");if($("div#topicInfoShort").css("display")==="none"){var a=$("div#topicInfoContent").height();$("div.topicInfoBox").css("height",a+"px");$("div#topicInfoLong").css("display","none");$("div#topicInfoShort").css("display","block");
a=$("div#topicInfoContent").height();$("div.topicInfoBox").animate({height:a+"px"},500);$("div.topicInfoBox").css("height","auto");}else{var a=$("div#topicInfoContent").height();$("div.topicInfoBox").css("height",a+"px");$("div#topicInfoShort").css("display","none");$("div#topicInfoLong").css("display","block");
a=$("div#topicInfoContent").height();$("div.topicInfoBox").animate({height:a+"px"},500);$("div.topicInfoBox").css("height","auto");}return false;};TFT.Ext.NDE.Topic.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.Topic.init","");var a=this;$("div.topicHeader div.boxTabs ul li a").bind("click",function(){var b=this;
TFT.Ext.NDE.Topic.submit({sType:"reload",sUrl:$(b).attr("href")});return false;});TFT.Ext.NDE.TimeSlider.init({selector:"div.topicSlider",type:"topic"});this.searchPeriodStart=$("input[name=searchPeriodStart]").val();this.searchPeriodEnd=$("input[name=searchPeriodEnd]").val();if(this.searchPeriodStart===""||this.searchPeriodEnd===""){this.searchPeriodStart=TFT.Ext.NDE.Settings.sWeek;
$("input[name=searchPeriodStart]").val(TFT.Ext.NDE.Settings.sWeek);this.searchPeriodEnd=TFT.Ext.NDE.Settings.sToday;$("input[name=searchPeriodEnd]").val(TFT.Ext.NDE.Settings.sToday);$("div.topicSlider form p.searchPeriod").html("vor einer Woche");}TFT.Ext.NDE.TimeSlider.set({sStart:this.searchPeriodStart,sEnd:this.searchPeriodEnd});
$("li.searchPeriod div.buttonArrowDown a,li.searchPeriod input").daterangepicker({nextLinkText:"weiter",prevLinkText:"zur&uuml;ck",rangeStartTitle:"Startdatum",arrows:true,appendTo:"body",rangeEndTitle:"Enddatum",closeOnSelect:true,earliestDate:Date.parse("-1year"),latestDate:Date.parse("today"),doneButtonText:"Suchen",posX:$("li.searchPeriod div.buttonArrowDown a").offset().left,posY:$("li.searchPeriod div.buttonArrowDown a").offset().top+25,onClose:function(){$("li.searchPeriod div.buttonArrowDown a").removeClass("active");
$(".ui-daterangepickercontain").css("border","none");TFT.Ext.NDE.TimeSlider.set({sStart:a.searchPeriodStart,sEnd:a.searchPeriodEnd});TFT.Ext.NDE.Topic.submit({sType:"refresh",sUrl:""});return false;},onOpen:function(){$("li div.buttonArrowDown a").removeClass("active");$("li.searchPeriod div.buttonArrowDown a").addClass("active");
$(".ui-daterangepicker-Heute").click(function(){a.searchPeriodKey="heute";});$(".ui-daterangepicker-VoreinerWoche").click(function(){a.searchPeriodKey="woche";});$(".ui-daterangepicker-VoreinemMonat").click(function(){a.searchPeriodKey="monat";});$(".ui-daterangepicker-VoreinemJahr").click(function(){a.searchPeriodKey="jahr";
});$(".ui-daterangepicker-dateRange").click(function(){a.searchPeriodKey="frei";});},presetRanges:[{text:"Heute",dateStart:"today",dateEnd:"today"},{text:"Vor einer Woche",dateStart:"-6days",dateEnd:"today"},{text:"Vor einem Monat",dateStart:"-30days",dateEnd:"today"},{text:"Vor einem Jahr",dateStart:"-12months",dateEnd:"today"}],presets:{dateRange:"Zeitraum"},datepickerOptions:{firstDay:1,dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","M&auml;rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M&auml;r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dateFormat:"dd.mm.yy",onSelect:function(){var c,b;
c=$.datepicker.formatDate("@",$(".range-start").datepicker("getDate"));b=$.datepicker.formatDate("@",$(".range-end").datepicker("getDate"));if(c>=b||b<=c){$(".range-end").datepicker("setDate",$(".range-start").datepicker("getDate"));}a.searchPeriodStart=$.datepicker.formatDate("dd.mm.yy",$(".range-start").datepicker("getDate"));
a.searchPeriodEnd=$.datepicker.formatDate("dd.mm.yy",$(".range-end").datepicker("getDate"));},minDate:Date.parse("-365days"),maxDate:Date.parse("today")}});$("div.topicInfo a").bind("click",TFT.Ext.NDE.Topic.detailToggle);};TFT.Ext.NDE.Topic.reinit=function(b){var a=this;TFT.Ext.NDE.Pagination.bFirstRun=true;
$("#content div.buttonMore a, #content dl.related p.related a").unbind("click").bind("click",function(){var c=this;TFT.Ext.NDE.Topic.submit({sType:"reload",sUrl:$(c).attr("href")});return false;});$(b.messages.sSelector).html($(b.messages.sSelector).attr("title")+" ("+b.messages.iValue+")");if(b.messages.iValue>1){TFT.Util.cloneLink("div.boxCluster dl.related dd","linkParent","linkChild");
if($("div.imageBlind").length>0){TFT.Util.imageBlind({selector:"div.imageBlind",textSML:"Bild vergr&ouml;&szlig;ern",textLRG:"Bild verkleinern"});}}$(b.comments.sSelector).html($(b.comments.sSelector).attr("title")+" ("+b.comments.iValue+")");$(b.pictures.sSelector).html($(b.pictures.sSelector).attr("title")+" ("+b.pictures.iValue+")");
if(b.pictures.iValue>1){TFT.Ext.NDE.Topic.initPictures();}$("div.topicInfo a").bind("click",TFT.Ext.NDE.Topic.detailToggle);};TFT.Ext.NDE.Topic.submit=function(a){a.sType=a.sType||"reload";TFT.Core.Console.log("TFT.Ext.NDE.Topic.submit","oSubmit.sType: "+a.sType);var d=this,b=$("div.topicSlider form input[name=searchPeriodStart]").val(),c=$("div.topicSlider form input[name=searchPeriodEnd]").val();
d.searchPeriodStart=b;d.searchPeriodEnd=c;if(a.sType==="reload"&&TFT.Ext.NDE.Settings.bLive===true){$("div.topicSlider form").attr("action",a.sUrl);$("div.topicSlider form").submit();TFT.Core.Console.log("TFT.Ext.NDE.Topic.submit","searchAction: "+a.sUrl);TFT.Core.Console.log("TFT.Ext.NDE.Topic.submit","searchPeriodStart: "+b);
TFT.Core.Console.log("TFT.Ext.NDE.Topic.submit","searchPeriodStart: "+c);}else{if(a.sType==="refresh"&&TFT.Ext.NDE.Settings.bLive===true){window.clearTimeout(this.bSubmit);this.bSubmit=window.setTimeout(function(){TFT.Util.LoadingIndicator.show("#content div.topicDisplay");$.get(TFT.Ext.NDE.Topic.oConfig.sSubmitURL,{searchPeriodStart:b,searchPeriodEnd:c},function(e){$("#content div.topicDisplay").html(e);
TFT.Util.LoadingIndicator.hide("#content div.topicDisplay");});},TFT.Ext.NDE.Topic.oConfig.iSubmitTimer);TFT.Core.Statistics.set("Omniture",{prop21:d.searchPeriodKey});TFT.Core.Statistics.count(["IvwAgof","Omniture"]);}else{if(TFT.Ext.NDE.Settings.bLive===false){TFT.Util.LoadingIndicator.show("#content div.topicDisplay");
window.clearTimeout(this.bSubmit);this.bSubmit=window.setTimeout(function(){TFT.Core.Console.log("TFT.Ext.NDE.Topic.submit","searchAction: "+a.sUrl);TFT.Core.Console.log("TFT.Ext.NDE.Topic.submit","searchPeriodStart: "+b);TFT.Core.Console.log("TFT.Ext.NDE.Topic.submit","searchPeriodEnd: "+c);TFT.Util.LoadingIndicator.hide("#content div.topicDisplay");
},TFT.Ext.NDE.Topic.oConfig.iSubmitTimer);}}}};TFT.Ext.NDE.Topic.initPictures=function(){TFT.Core.Console.log("TFT.Ext.NDE.Topic.initPictures","");$("div.topicPictures ul.images a").hover(function(){$(this).parents("ul").find("li").css("opacity",0.3);$(this).parent().css("opacity",1);$(this).parent().find("p.caption").slideDown("fast");
},function(){$(this).parent().find("p").slideUp("fast",function(){if($("ul.images li p:visible").length===0){$(this).parents("ul").find("li").css("opacity",1);}});});TFT.Ext.NDE.LargeImage("ul.images a");};TFT.Ext.NDE.Region={searchString:"",searchPeriodKey:"",searchPeriodStart:"",searchPeriodEnd:"",bSubmit:false,oConfig:{iDuration:200,iSubmitTimer:2000,sSubmitURL:""},oSelector:{sPictureContainer:"div.regionPictures",sPictureList:"div.regionPictures ul.images"},oPicture:{sFlyoutID:"picturesFlyout",sShow:"fadeIn",sHide:"fadeOut",sToggle:"fade",duration:"fast",oStyle:{}}};
TFT.Ext.NDE.Region.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.Region.init","");var a=this;$("div.topicInfo a").bind("click",TFT.Ext.NDE.Topic.detailToggle);};TFT.Ext.NDE.Region.reinit=function(b){var a=this;TFT.Ext.NDE.Pagination.bFirstRun=true;$(b.messages.sSelector).html($(b.messages.sSelector).attr("title")+" ("+b.messages.iValue+")");
if(b.messages.iValue>1){TFT.Util.cloneLink("div.boxCluster dl.related dd","linkParent","linkChild");if($("div.imageBlind").length>0){TFT.Util.imageBlind({selector:"div.imageBlind",textSML:"Bild vergr&ouml;&szlig;ern",textLRG:"Bild verkleinern"});}}$(b.comments.sSelector).html($(b.comments.sSelector).attr("title")+" ("+b.comments.iValue+")");
$(b.pictures.sSelector).html($(b.pictures.sSelector).attr("title")+" ("+b.pictures.iValue+")");if(b.pictures.iValue>1){TFT.Ext.NDE.Region.initPictures();}$("div.topicInfo a").bind("click",TFT.Ext.NDE.Topic.detailToggle);};TFT.Ext.NDE.Region.initPictures=function(){TFT.Core.Console.log("TFT.Ext.NDE.Region.initPictures","");
$("div.regionPictures ul.images a").hover(function(){$(this).parents("ul").find("li").css("opacity",0.3);$(this).parent().css("opacity",1);$(this).parent().find("p.caption").slideDown("fast");},function(){$(this).parent().find("p").slideUp("fast",function(){if($("ul.images li p:visible").length===0){$(this).parents("ul").find("li").css("opacity",1);
}});});TFT.Ext.NDE.LargeImage("ul.images a");};TFT.Ext.NDE.Facebook={oSelector:{sFacebookDiv:"div.boxFacebook"}};TFT.Ext.NDE.Facebook.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.Facebook.init","");$("body").append('<div id="fb-root"></div>');window.fbAsyncInit=function(){FB.init({status:true,cookie:true,xfbml:true});
FB.Event.subscribe("edge.create",function(a){try{var c=s_gi("tft-focus");c.tl(this,"o","facebook: gefaellt mir");}catch(b){}});};(function(){var a=document.createElement("script");a.async=true;a.src=document.location.protocol+"//connect.facebook.net/de_DE/all.js";document.getElementById("fb-root").appendChild(a);
}());};TFT.Ext.NDE.Search={searchString:"",searchPeriodKey:"",searchPeriodStart:"",searchPeriodEnd:"",searchSortKey:"relevant",searchSortValue:"Relevanz",searchSourceValue:"Alle",searchSourceKey:-1,searchCategoryKey:"all",searchCategoryValue:"Alle",bSubmit:false,oConfig:{sDefaultValue:"Suchbegriff eingeben",sTextColor:"#B0B4B9",iFlyoutSpeed:300,iDuration:200,sDate:new Date().getTime(),iSubmitTimer:2000,sSubmitURL:"",sCompleterURL:"scripts/ajax/autocomplete.txt"},oSelector:{sSearch:"div.searchHeader",sNavigation:"div.searchHeader div.tabs ul",sButtonMore:"#content div div.buttonMore",sForm:"div.searchHeader form",sList:"div.searchHeader ul.search",sSliderContainer:"#timeSelector",sSliderHandle:"#timeSelector div.selectionHandle",sPictureContainer:"div.searchPictures",sPictureList:"div.searchPictures ul.images",sFlyoutDropdown:"#searchCockpitFlyout",sFlyoutPicture:"#picturesFlyout"}};
TFT.Ext.NDE.Search.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.Search.init","");var a=this,b=TFT.Ext.NDE.Settings.sContextPath+"/rss/suche.rss";$("div.searchHeader div.boxTabs ul li a, #content div.buttonMore a").bind("click",function(){TFT.Ext.NDE.Search.submit({sType:"reload",sUrl:$(this).attr("href")});
return false;});TFT.Ext.NDE.TimeSlider.init({selector:"div.searchHeader",type:"search"});this.searchPeriodStart=$("input[name=searchPeriodStart]").val();this.searchPeriodEnd=$("input[name=searchPeriodEnd]").val();this.searchString=$("input[name=searchString]").val();this.searchSortKey=$("input[name=searchSortKey]").val();
this.searchSortValue=$("input[name=searchSourceValue]").val();this.searchSourceKey=$("input[name=searchSourceKey]").val();this.searchSourceValue=$("input[name=searchSourceValue]").val();if(this.searchPeriodStart===""||this.searchPeriodEnd===""){this.searchPeriodStart=TFT.Ext.NDE.Settings.sWeek;$("input[name=searchPeriodStart]").val(TFT.Ext.NDE.Settings.sWeek);
this.searchPeriodEnd=TFT.Ext.NDE.Settings.sToday;$("input[name=searchPeriodEnd]").val(TFT.Ext.NDE.Settings.sToday);$("div.searchHeader form p.searchPeriod").html("vor einer Woche");}TFT.Ext.NDE.TimeSlider.set({sStart:this.searchPeriodStart,sEnd:this.searchPeriodEnd});$("li.searchPeriod div.buttonArrowDown a,input[name=searchPeriodStart],input[name=searchPeriodEnd]").daterangepicker({nextLinkText:"weiter",prevLinkText:"zur&uuml;ck",rangeStartTitle:"Startdatum",arrows:true,appendTo:"body",rangeEndTitle:"Enddatum",closeOnSelect:true,earliestDate:Date.parse("-1year"),latestDate:Date.parse("today"),doneButtonText:"Suchen",posX:$("li.searchPeriod div.buttonArrowDown a").offset().left,posY:$("li.searchPeriod div.buttonArrowDown a").offset().top+25,onClose:function(){$("li.searchPeriod div.buttonArrowDown a").removeClass("active");
TFT.Ext.NDE.TimeSlider.set({sStart:a.searchPeriodStart,sEnd:a.searchPeriodEnd});TFT.Ext.NDE.Search.submit({sType:"refresh",sUrl:""});return false;},onOpen:function(){$("li div.buttonArrowDown a").removeClass("active");$("li.searchPeriod div.buttonArrowDown a").addClass("active");if($("#searchCockpitFlyout:visible").length===1){$("#searchCockpitFlyout").dialog("destroy");
}$(".ui-daterangepicker-Heute").click(function(){a.searchPeriodKey="heute";});$(".ui-daterangepicker-VoreinerWoche").click(function(){a.searchPeriodKey="woche";});$(".ui-daterangepicker-VoreinemMonat").click(function(){a.searchPeriodKey="monat";});$(".ui-daterangepicker-VoreinemJahr").click(function(){a.searchPeriodKey="jahr";
});$(".ui-daterangepicker-dateRange").click(function(){a.searchPeriodKey="frei";});},presetRanges:[{text:"Heute",dateStart:"today",dateEnd:"today"},{text:"Vor einer Woche",dateStart:"-6days",dateEnd:"today"},{text:"Vor einem Monat",dateStart:"-30days",dateEnd:"today"},{text:"Vor einem Jahr",dateStart:"-12months",dateEnd:"today"}],presets:{dateRange:"Zeitraum"},datepickerOptions:{firstDay:1,dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","M&auml;rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M&auml;r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],defaultDate:Date.parse("29.01.2009"),dateFormat:"dd.mm.yy",onSelect:function(){var d,c;
d=$.datepicker.formatDate("@",$(".range-start").datepicker("getDate"));c=$.datepicker.formatDate("@",$(".range-end").datepicker("getDate"));if(d>=c||c<=d){$(".range-end").datepicker("setDate",$(".range-start").datepicker("getDate"));}a.searchPeriodStart=$.datepicker.formatDate("dd.mm.yy",$(".range-start").datepicker("getDate"));
a.searchPeriodEnd=$.datepicker.formatDate("dd.mm.yy",$(".range-end").datepicker("getDate"));},minDate:Date.parse("-365days"),maxDate:Date.parse("today")}});$("li[class!=searchPeriod] div.buttonArrowDown a").each(function(){$(this).bind("click",function(){var c=$(this).parents("li").find("div.flyoutContent").html(),e=$(this).parents("li").attr("class"),g=$(this).offset().top+25-$(window).scrollTop(),f=$(this).offset().left,d=$(this).parents("li").find("div.flyoutContent").width();
if($("#searchCockpitFlyout").attr("rel")===e&&$("#searchCockpitFlyout:visible").length===1){$(this).removeClass("active");$("#searchCockpitFlyout").dialog("destroy");}else{$("li div.buttonArrowDown a").removeClass("active");$(this).addClass("active");if($("#searchCockpitFlyout:visible").length===1){$("#searchCockpitFlyout").dialog("destroy");
}if($("div.ui-daterangepicker:visible").length===1){$("div.ui-daterangepicker").hide();}$("#searchCockpitFlyout").html(c).attr("rel",e).dialog({position:[f,g],minHeight:35,width:d,draggable:false,resizable:false,modal:false,autoOpen:false,open:function(){$(this).parent().find(".ui-dialog-titlebar").remove();
var j,h,i;if(e==="searchSort"){j="input[name=searchSortKey]";h="input[name=searchSortValue]";i="p.searchSort";}else{if(e==="searchSource"){j="input[name=searchSourceKey]";h="input[name=searchSourceValue]";i="p.searchSource";$("#searchCockpitFlyout div.buttonSourceSearch").hide();$("#searchCockpitFlyout input[name=lookupSource]").autocomplete(a.oConfig.sCompleterURL,{delay:10,minChars:1,matchSubset:1,onItemSelect:function(k){if(k===null){return false;
}$(h).val(k.selectValue);$(j).val(k.extra[0]);$("#searchCockpitFlyout div.buttonSourceSearch").show();$("#searchCockpitFlyout div.buttonSourceSearch a").click(function(){$(i).html(k.selectValue);$("li div.buttonArrowDown a").removeClass("active");return false;});},formatItem:function(k){return k[0];},autoFill:true,maxItemsToShow:10});
}else{if(e==="searchCategory"){j="input[name=searchCategoryKey]";h="input[name=searchCategoryValue]";i="p.searchCategory";}}}$("#searchCockpitFlyout a").each(function(){if($(this).attr("rel")===$(j).val()){$(this).addClass("active");}$(this).bind("click",function(){if($(this).attr("title")!=="Suchen"){$(i).html($(this).attr("title"));
$(j).val($(this).attr("rel"));$(h).val($(this).attr("title"));}TFT.Ext.NDE.Search.submit({sType:"refresh",sUrl:""});$("#searchCockpitFlyout").dialog("destroy");return false;});});}}).dialog("open");}return false;});});if($("div.searchHeader form input[name=searchSortKey]").val().length<=0){$("div.searchHeader form input[name=searchSortValue]").val("Relevanz");
$("div.searchHeader form input[name=searchSortKey]").val("relevant");}else{$("div.searchHeader form li.searchSort div.flyoutContent a").each(function(){if($(this).attr("rel")===$("div.searchHeader form input[name=searchSortKey]").val()){$("div.searchHeader form input[name=searchSortValue]").val($(this).attr("title"));
}});}if($("div.searchHeader form input[name=searchSourceKey]").val().length<=0){$("div.searchHeader form input[name=searchSourceValue]").val("Alle");$("div.searchHeader form input[name=searchSourceKey]").val("-1");}else{$("div.searchHeader form li.searchSource div.flyoutContent a").each(function(){if($(this).attr("rel")===$("div.searchHeader form input[name=searchSourceKey]").val()){$("div.searchHeader form input[name=searchSourceValue]").val($(this).attr("title"));
}});}if($("div.searchHeader form input[name=searchCategoryKey]").val().length<=0){$("div.searchHeader form input[name=searchCategoryValue]").val("Alle");$("div.searchHeader form input[name=searchCategoryKey]").val("all");}else{$("div.searchHeader form li.searchCategory div.flyoutContent a").each(function(){if($(this).attr("rel")===$("div.searchHeader form input[name=searchCategoryKey]").val()){$("div.searchHeader form input[name=searchCategoryValue]").val($(this).attr("title"));
}});}$("div.searchHeader p.searchSort").html($("div.searchHeader form input[name=searchSortValue]").val());$("div.searchHeader p.searchSource").html($("div.searchHeader form input[name=searchSourceValue]").val());$("div.searchHeader p.searchCategory").html($("div.searchHeader form input[name=searchCategoryValue]").val());
if($("#header form input[name=searchString]").val().length<=0||$("#header form input[name=searchString]").val()===a.oConfig.sDefaultValue){b+="?searchSource="+$("div.searchHeader form input[name=searchSourceKey]").val();b+="&searchCategory="+$("div.searchHeader form input[name=searchCategoryKey]").val();
b+="&searchSourceKey="+$("div.searchHeader form input[name=searchSourceKey]").val();}else{b+="?searchTerm="+$("#header form input[name=searchString]").val();b+="&searchSource="+$("div.searchHeader form input[name=searchSourceKey]").val();b+="&searchCategory="+$("div.searchHeader form input[name=searchCategoryKey]").val();
}$("#footer li.rss a").attr("href",b);if($("div.searchMessages").length>0){TFT.Util.cloneLink("div.searchMessages dd","linkParent","linkChild");}if($("div.searchHeader div.boxTabs ul li:gt(1) a").hasClass("active")===true){$("div.searchHeader form ul.search>li:gt(0)").html('<div style="width: 113px; height: 57px; background-color: rgb(255, 255, 255); z-index: 300; opacity: 1; position: absolute; top: -1px; left: 1px;"></div>');
}TFT.Ext.NDE.duplicates($("div.buttonDuplicates a"));};TFT.Ext.NDE.Search.reinit=function(b){var a=this;TFT.Ext.NDE.Pagination.bFirstRun=true;$("#content div.buttonMore a").unbind("click").bind("click",function(){var c=this;TFT.Ext.NDE.Search.submit({sType:"reload",sUrl:$(c).attr("href")});return false;
});$(b.messages.sSelector).html($(b.messages.sSelector).attr("title")+" ("+b.messages.iValue+")");if($("div.searchMessages").length>0){TFT.Util.cloneLink("div.searchMessages dd","linkParent","linkChild");}$(b.comments.sSelector).html($(b.comments.sSelector).attr("title")+" ("+b.comments.iValue+")");$(b.pictures.sSelector).html($(b.pictures.sSelector).attr("title")+" ("+b.pictures.iValue+")");
if(b.pictures.iValue>1){TFT.Ext.NDE.Search.initPictures();}};TFT.Ext.NDE.Search.submit=function(b){b.sType=b.sType||"reload";TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","oSubmit.sType: "+b.sType);var l=this,j=($("div.searchHeader form input[name=searchString]").val()!==TFT.Ext.NDE.Search.oConfig.sDefaultValue)?$("div.searchHeader form input[name=searchString]").val():"",a=$("div.searchHeader form input[name=searchPeriodStart]").val(),e=$("div.searchHeader form input[name=searchPeriodEnd]").val(),k=$("div.searchHeader form input[name=searchSortValue]").val(),c=$("div.searchHeader form input[name=searchSortKey]").val(),h=$("div.searchHeader form input[name=searchSourceValue]").val(),i=$("div.searchHeader form input[name=searchSourceKey]").val(),g=$("div.searchHeader form input[name=searchCategoryValue]").val(),f=$("div.searchHeader form input[name=searchCategoryKey]").val(),d=TFT.Ext.NDE.Settings.sContextPath+"/rss/suche.rss";
TFT.Ext.NDE.Search.searchString=j;TFT.Ext.NDE.Search.searchPeriodStart=a;TFT.Ext.NDE.Search.searchPeriodEnd=e;TFT.Ext.NDE.Search.searchSortValue=k;TFT.Ext.NDE.Search.searchSortKey=c;TFT.Ext.NDE.Search.searchSourceValue=h;TFT.Ext.NDE.Search.searchSourceKey=i;TFT.Ext.NDE.Search.searchCategoryValue=g;TFT.Ext.NDE.Search.searchCategoryKey=f;
if(j.length<=0||j===l.oConfig.sDefaultValue){d+="?searchSource="+i;d+="&searchCategory="+f;d+="&searchSourceKey="+i;}else{d+="?searchTerm="+j;d+="&searchSource="+i;d+="&searchCategory="+f;}if(b.sType==="reload"&&TFT.Ext.NDE.Settings.bLive===true){$("div.searchHeader form").attr("action",b.sUrl);$(this.oSelector.sForm).submit();
}else{if(b.sType==="refresh"&&TFT.Ext.NDE.Settings.bLive===true){window.clearTimeout(this.bSubmit);this.bSubmit=window.setTimeout(function(){TFT.Util.LoadingIndicator.show("#content");$.get(TFT.Ext.NDE.Search.oConfig.sSubmitURL,{searchString:encodeURI(j),searchPeriodStart:a,searchPeriodEnd:e,searchSortValue:k,searchSortKey:c,searchSourceValue:h,searchSourceKey:i,searchCategoryValue:g,searchCategoryKey:f},function(m){$("#content").html(m);
TFT.Util.LoadingIndicator.hide("#content");$("#footer li.rss a").attr("href",d);TFT.Ext.NDE.Search.initPictures();});},TFT.Ext.NDE.Search.oConfig.iSubmitTimer);TFT.Core.Statistics.set("Omniture",{prop21:l.searchPeriodKey,prop22:k,prop23:h,prop24:g});TFT.Core.Statistics.count(["IvwAgof","Omniture"]);}else{if(TFT.Ext.NDE.Settings.bLive===false){window.clearTimeout(this.bSubmit);
this.bSubmit=window.setTimeout(function(){TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchAction: "+b.sUrl);TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchString: "+j);TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchPeriodStart: "+a);TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchPeriodEnd: "+e);
TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchSortValue: "+k);TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchSortKey: "+c);TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchSourceValue: "+h);TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchSourceKey: "+i);TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchCategoryValue: "+g);
TFT.Core.Console.log("TFT.Ext.NDE.Search.submit","searchCategoryKey: "+f);},TFT.Ext.NDE.Search.oConfig.iSubmitTimer);}}}};TFT.Ext.NDE.Search.initPictures=function(){TFT.Core.Console.log("TFT.Ext.NDE.Search.initPictures","");$("div.searchPictures ul.images a").hover(function(){$(this).parents("ul").find("li").css("opacity",0.3);
$(this).parent().css("opacity",1);$(this).parent().find("p.caption").slideDown("fast");},function(){$(this).parent().find("p").slideUp("fast",function(){if($("ul.images li p:visible").length===0){$(this).parents("ul").find("li").css("opacity",1);}});});TFT.Ext.NDE.LargeImage("ul.images a");};TFT.Ext.NDE.Pagination={bFirstRun:true,iItemsPerPage:1,iStart:0,iMax:0,iEdgeDisplay:2,iNumDisplay:5,sTextNext:"weiter",sTextPrev:"zur&uuml;ck",oSelector:{sParent:"",sContainer:"",sResults:"",sPager:""}};
TFT.Ext.NDE.Pagination.init=function(b){TFT.Core.Console.log("TFT.Ext.NDE.Pagination.init","");this.oSelector.sParent=b.sParent;this.oSelector.sContainer=b.sContainer;this.oSelector.sResults=b.sResults;this.oSelector.sPager=b.sPager;this.sSubmitURL=b.sSubmitURL;this.oParams=b.oParams;this.iMax=b.iMax;
var a=this;$(this.oSelector.sPager).pagination(this.iMax,{current_page:this.iStart,num_edge_entries:this.iEdgeDisplay,num_display_entries:this.iNumDisplay,callback:function(c){if(a.bFirstRun===false){TFT.Util.LoadingIndicator.show(a.oSelector.sParent);a.swapPage(c);TFT.Core.Statistics.count(["IvwAgof","Omniture"]);
}else{a.bFirstRun=false;}return false;},items_per_page:this.iItemsPerPage,next_text:this.sTextNext,prev_text:this.sTextPrev});};TFT.Ext.NDE.Pagination.swapPage=function(b){TFT.Core.Console.log("TFT.Ext.NDE.Pagination.swapPage","iPage: "+b);var a=this;if($("div.topicDisplay dl.latestNews").length>0){$("div.topicDisplay dl.latestNews").remove();
}if($("div.topicDisplay h6.related").length>0){$("div.topicDisplay h6.related").remove();}if($("div.boxCluster dl.latestNews").length>0){$("div.boxCluster dl.latestNews").remove();}if($("div.boxCluster h6.related").length>0){$("div.boxCluster h6.related").remove();}if(TFT.Ext.NDE.Settings.bLive===true){this.oParams.iPage=b+1;
$.post(this.sSubmitURL,this.oParams,function(c){$(a.oSelector.sContainer).html(c);TFT.Util.LoadingIndicator.hide(a.oSelector.sParent);TFT.Ext.NDE.Search.initPictures();TFT.Ext.NDE.Topic.initPictures();if($("div.boxCluster").length>0){TFT.Util.cloneLink("div.boxCluster dl dd","linkParent","linkChild");
}if($("div.searchMessages").length>0){TFT.Util.cloneLink("div.searchMessages dl dd","linkParent","linkChild");}TFT.Ext.NDE.duplicates($("div.buttonDuplicates a"));});}else{$(this.oSelector.sContainer).load("scripts/ajax/searchComments_pager_snippet"+b+".html");TFT.Util.LoadingIndicator.hide(this.oSelector.sParent);
}};TFT.Ext.NDE.LargeImage=function(d){TFT.Core.Console.log("TFT.Ext.NDE.LargeImage","sSelector:"+d);var c,b,a;TFT.Core.Console.log("TFT.Ext.NDE.LargeImage","environment: live");$(d).live("click",function(){a=this;var f=/_Pxgen_(\d+)x/;var g=800;var e=f.exec($(a).attr("href"));if(e.length>0){g=parseInt(e[1]);
}$("body").append('<div id="boxLargeImage"></div>');$("#boxLargeImage").load(TFT.Ext.NDE.Settings.sImagePath+$(a).attr("href"),function(){$("#boxLargeImage").append('<p class="caption">'+$(a).parent("li").find("p.caption").html()+'</p><p class="source">'+$(a).parent("li").find("p.source").html()+"</p>");
$("#boxLargeImage").dialog({width:g,title:"nachrichten.de",draggable:false,resizable:false,modal:true,autoOpen:true,close:function(){$("#boxLargeImage").dialog("destroy");$("#boxLargeImage").remove();}});});return false;});};TFT.Ext.NDE.Box.Comment={};TFT.Ext.NDE.Box.Comment.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.Box.Comment.init","");
$("#boxComments ul li a.commentHeadline").live("click",function(){TFT.Core.Console.log("TFT.Ext.NDE.Box.Comment.init","");$(this).next("p.comment").slideToggle();return false;TFT.Core.Statistics.set("Omniture",{prop17:"kommentare"});TFT.Core.Statistics.count(["IvwAgof","Omniture"]);});};TFT.Ext.NDE.BoxComments={};
TFT.Ext.NDE.BoxComments.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.BoxComments.init","");};TFT.Ext.NDE.BoxTicker={oSelector:{sContainer:"#boxTicker",sNews:"#boxTicker ul:last",sNew:"#boxTicker ul:first",sButtonContainer:"#boxTicker div.headline",sButton:"#boxTicker div.headline a"},oConfig:{bAutorun:true,iInitialWait:10000,iWait:5000,iFetch:15000,iSlide:300,iFade:200,iWrite:0.1,iMaxNews:12},bBusy:false,bActive:true,iLastID:0,oButtons:{sClassStart:"buttonTickerPlay",sTextStart:"Live-Ticker starten",sClassStop:"buttonTickerStop",sTextStop:"Live-Ticker anhalten"}};
TFT.Ext.NDE.BoxTicker.init=function(){var a=this;TFT.Core.Console.log("TFT.Ext.NDE.BoxTicker.init","Starting in "+this.oConfig.iInitialWait+" ms");$(this.oSelector.sButton).addClass("active");$(this.oSelector.sButton).html(this.oButtons.sTextStop).attr("title",this.oButtons.sTextStop).click(function(){a.stop();
return false;});window.setTimeout(function(){if(a.bBusy===false){a.update();}},this.oConfig.iInitialWait);};TFT.Ext.NDE.BoxTicker.update=function(){var b=this,c=$("#boxTicker ul:first li").length,f=$("#boxTicker ul:first li:last").attr("class"),e=$("#boxTicker ul:first li:last"),d,a;if(c>0&&this.bBusy===false&&this.bActive===true){b.bBusy=true;
TFT.Core.Console.log("TFT.Ext.NDE.BoxTicker.update","bBusy:"+b.bBusy+",bActive:"+b.bActive+",iCount:"+c);if($(b.oSelector.sContainer+" ul:last li:first").length===1){$(b.oSelector.sContainer+" ul:last li:first").before($("<li>"+$(e).html()+"</li>"));}else{$(b.oSelector.sContainer+" ul:last").html($("<li>"+$(e).html()+"</li>"));
}a=($("#boxTicker ul:first li:last p.news a").html()).length;if(a<45){d=18;}else{if(a<90){d=36;}else{d=54;}}$(b.oSelector.sContainer+" ul:last li:first").css({height:d,overflow:"hidden"});$(b.oSelector.sContainer+" ul:last li:first p.news").empty();$(b.oSelector.sContainer+" ul:last li:first p.news").css("visibility","visible");
$(b.oSelector.sContainer+" ul:last li:first").addClass(f).slideDown(b.oConfig.iSlide,function(){$(b.oSelector.sContainer+" ul:last li:first p.date").fadeIn(b.oConfig.iFade,function(){$(b.oSelector.sContainer+" ul:last li:first p.news").jTypeWriter({duration:b.oConfig.iWrite,text:$(b.oSelector.sContainer+" ul:first li:last p.news a").html(),onComplete:function(){$(b.oSelector.sContainer+" ul:last li:first p.news").html($("#boxTicker ul:first li:last p.news").html());
$(b.oSelector.sContainer+" ul:first li:last").remove();$(b.oSelector.sContainer+" ul:last li:gt("+b.oConfig.iMaxNews+")").remove();b.bBusy=false;window.setTimeout(function(){b.update();},b.oConfig.iWait);}});});});}else{if(c===0&&this.bBusy===false&&this.bActive===true){TFT.Core.Console.log("TFT.Ext.NDE.BoxTicker.update","bBusy:"+b.bBusy+",bActive:"+b.bActive+",iCount:"+c);
window.setTimeout(function(){b.fetch();},b.oConfig.iWait);}}};TFT.Ext.NDE.BoxTicker.start=function(){var a=this;this.bActive=true;TFT.Core.Console.log("TFT.Ext.NDE.BoxTicker.start","bBusy:"+this.bBusy+",bActive:"+this.bActive);$(this.oSelector.sButton).addClass("active");$(this.oSelector.sButton).html(this.oButtons.sTextStop).attr("title",this.oButtons.sTextStop).unbind("click").click(function(){a.stop();
return false;});if(a.bBusy===false){a.update();}};TFT.Ext.NDE.BoxTicker.stop=function(){var a=this;this.bActive=false;TFT.Core.Console.log("TFT.Ext.NDE.BoxTicker.stop","bBusy:"+this.bBusy+",bActive:"+this.bActive);$(this.oSelector.sButton).removeClass("active");$(this.oSelector.sButton).html(this.oButtons.sTextStart).attr("title",this.oButtons.sTextStart).unbind("click").click(function(){a.start();
return false;});};TFT.Ext.NDE.BoxTicker.fetch=function(){var a=this,b=($("#boxTicker ul:last li:first").length!==0)?TFT.Util.String.tokenFilter($("#boxTicker ul:last li:first").attr("class"),"n-").split("-"):0,c="";if(TFT.Ext.NDE.Settings.bLive===true&&this.bBusy===false&&this.bActive===true){a.bBusy=true;
TFT.Core.Console.log("TFT.Ext.NDE.BoxTicker.fetch","bBusy:"+this.bBusy+",bActive:"+this.bActive);$.get(TFT.Ext.NDE.Settings.sContextPath+TFT.Ext.NDE.Settings.Box.TickerScriptPath,{"lastID":b},function(d){TFT.Core.Console.log("TFT.Ext.NDE.BoxTicker.fetch","bBusy:"+a.bBusy+",bActive:"+a.bActive+",iLastID:"+b);
if(jQuery.trim(d)!==""){if($(a.oSelector.sContainer+" ul:first li").length>0){$(a.oSelector.sContainer+" ul:first li").before(jQuery.trim(d));}else{$(a.oSelector.sContainer+" ul:first").html(jQuery.trim(d));}a.bBusy=false;a.update();}else{window.setTimeout(function(){a.bBusy=false;a.fetch();},a.oConfig.iFetch);
}},"html");}else{if(TFT.Ext.NDE.Settings.bLive===false&&this.bBusy===false&&this.bActive===true){TFT.Core.Console.log("TFT.Ext.NDE.BoxTicker.fetch","bBusy:"+this.bBusy+",bActive:"+this.bActive+",iLastID:"+b);c=c+'<li class="n-1220" style="display:none;"><p class="date" style="display:none;">14:20</p> <p class="news" style="visibility:hidden;"><a href="cluster.html" title="Mann tötet laut Medien fünf Menschen in belgischer Kita">Mann tötet laut Medien fünf Menschen in belgischer Kita</a></p><p class="clear"></p></li>';
$(a.oSelector.sContainer+" ul:first").html(c);a.update();}}};TFT.Ext.NDE.Box.People={oConfig:{pageType:"",pageContentId:"",pageDepartment:"",searchPeriodStart:"",searchPeriodEnd:""}};TFT.Ext.NDE.Box.People.init=function(a){var c=(a.pageType!=="")?a.pageType:this.oConfig.pageType,f=(a.pageDepartment!=="")?a.pageDepartment:this.oConfig.pageDepartment,e=(a.pageContentId!=="")?a.pageContentId:this.oConfig.pageContentId,b=(a.searchPeriodStart!=="")?a.searchPeriodStart:this.oConfig.searchPeriodStart,d=(a.searchPeriodEnd!=="")?a.searchPeriodEnd:this.oConfig.searchPeriodEnd;
TFT.Core.Console.log("TFT.Ext.NDE.Box.People.init","Snippet:"+TFT.Ext.NDE.Settings.Box.PeopleSnippetPath);$("#boxPeople div.content").css("height",240);TFT.Util.LoadingIndicator.show("#boxPeople div.content");if(TFT.Ext.NDE.Settings.bLive===true){$.get(TFT.Ext.NDE.Settings.sContextPath+TFT.Ext.NDE.Settings.Box.PeopleSnippetPath,{"pageType":c,"pageDepartment":f,"pageContentId":e,"searchPeriodStart":b,"searchPeriodEnd":d},function(g){if($.trim(g)!==""){$("#boxPeople div.content").html(g);
$("#boxPeople div.content").css("height","auto");TFT.Util.cloneLink("#boxPeople ul li","linkParent","linkChild");}else{$("#boxPeople").hide();}},"html");}else{$("#boxPeople div.content").load(TFT.Ext.NDE.Settings.Box.PeopleSnippetPath,function(){TFT.Util.cloneLink("#boxPeople ul li","linkParent","linkChild");
});}};TFT.Ext.NDE.Box.Topics={oConfig:{pageType:"",pageContentId:"",pageDepartment:"",searchPeriodStart:"",searchPeriodEnd:""}};TFT.Ext.NDE.Box.Topics.init=function(a){var c=(a.pageType!=="")?a.pageType:this.oConfig.pageType,f=(a.pageDepartment!=="")?a.pageDepartment:this.oConfig.pageDepartment,e=(a.pageContentId!=="")?a.pageContentId:this.oConfig.pageContentId,b=(a.searchPeriodStart!=="")?a.searchPeriodStart:this.oConfig.searchPeriodStart,d=(a.searchPeriodEnd!=="")?a.searchPeriodEnd:this.oConfig.searchPeriodEnd;
TFT.Core.Console.log("TFT.Ext.NDE.Box.Topics.init","Snippet:"+TFT.Ext.NDE.Settings.Box.TopicsSnippetPath);$("#boxTopics div.content").css("height",550);TFT.Util.LoadingIndicator.show("#boxTopics div.content");if(TFT.Ext.NDE.Settings.bLive===true){$.get(TFT.Ext.NDE.Settings.sContextPath+TFT.Ext.NDE.Settings.Box.TopicsSnippetPath,{"pageType":c,"pageDepartment":f,"pageContentId":e,"searchPeriodStart":b,"searchPeriodEnd":d},function(g){$("#boxTopics div.content").html(g);
$("#boxTopics div.content").css("height","auto");TFT.Util.cloneLink("#boxTopics ul li","linkParent","linkChild");},"html");}else{$("#boxTopics div.content").load(TFT.Ext.NDE.Settings.Box.TopicsSnippetPath,function(){TFT.Util.cloneLink("#boxTopics ul li","linkParent","linkChild");});}};TFT.Ext.NDE.Box.TopicCombinations={oConfig:{pageType:"",pageContentId:"",pageDepartment:"",searchPeriodStart:"",searchPeriodEnd:""}};
TFT.Ext.NDE.Box.TopicCombinations.init=function(a){var c=(a.pageType!=="")?a.pageType:this.oConfig.pageType,f=(a.pageDepartment!=="")?a.pageDepartment:this.oConfig.pageDepartment,e=(a.pageContentId!=="")?a.pageContentId:this.oConfig.pageContentId,b=(a.searchPeriodStart!=="")?a.searchPeriodStart:this.oConfig.searchPeriodStart,d=(a.searchPeriodEnd!=="")?a.searchPeriodEnd:this.oConfig.searchPeriodEnd;
TFT.Core.Console.log("TFT.Ext.NDE.Box.TopicCombinations.init","Snippet:"+TFT.Ext.NDE.Settings.Box.TopicCombinationsSnippetPath);$("#boxTopicCombinations div.content").css("height",200);TFT.Util.LoadingIndicator.show("#boxTopicCombinations div.content");$.get(TFT.Ext.NDE.Settings.sContextPath+TFT.Ext.NDE.Settings.Box.TopicCombinationsSnippetPath,{"pageType":c,"pageDepartment":f,"pageContentId":e,"searchPeriodStart":b,"searchPeriodEnd":d},function(g){$("#boxTopicCombinations div.content").html(g);
$("#boxTopicCombinations div.content").css("height","auto");TFT.Util.cloneLink("#boxTopics ul li","linkParent","linkChild");},"html");};TFT.Ext.NDE.Box.Topiclink={oConfig:{}};TFT.Ext.NDE.Box.Topiclink.init=function(a){TFT.Util.cloneLink("#boxTopiclink dl","linkParent","linkChild");};TFT.Ext.NDE.BoxCategory={oConfig:{bOpenAll:false,iScrollDuration:700,iResizeDuration:400},oSelector:{sContainer:"div.boxCategory",sButton:"div[class^=buttonDetails]",sDetail:"div.details"},oClass:{sButtonOpen:"buttonDetailsOpen",sButtonClose:"buttonDetailsClose"},oText:{sButtonOpen:"mehr Informationen anzeigen",sButtonClose:"weniger Informationen anzeigen"},aElements:{}};
TFT.Ext.NDE.BoxCategory.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.BoxCategory.init","");var a=this;$(this.oSelector.sContainer+" div.selectPreset div.buttonFlyout a").click(function(){$(this).toggleClass("active");$("div.flyoutPreset").slideToggle();return false;});$(this.oSelector.sContainer).each(function(c){var b="newsBlock-"+c;
a.aElements[c]=[];a.aElements[c].sTitle=b;a.aElements[c].sSelector=a.oSelector.sContainer+":eq("+c+")";if(c===0){$(a.aElements[c].sSelector+" div.details").show();if($(a.aElements[c].sSelector+" div.details").length===1){$(a.aElements[c].sSelector+">p.meta").hide();}$(a.aElements[c].sSelector+" "+a.oSelector.sButton).addClass(a.oClass.sButtonClose).removeClass(a.oClass.sButtonOpen);
$(a.aElements[c].sSelector+" "+a.oSelector.sButton+" a").attr("title",a.oText.sButtonOpen);a.aElements[c].bLoaded=true;TFT.Ext.NDE.BoxCategory.scroll(c);}else{a.aElements[c].bLoaded=false;}$(this).find("div[class^=buttonDetails] a").click(function(){a.toggleDetails(c);return false;});});if($("div.boxCategory").length>0){TFT.Util.cloneLink("div.boxCategory","linkParent","linkChild");
}};TFT.Ext.NDE.BoxCategory.toggleDetails=function(b){var c=($(this.oSelector.sContainer+":eq("+b+") "+this.oSelector.sDetail+":visible").length)?true:false,a=this;TFT.Core.Console.log("TFT.Ext.NDE.BoxCategory.toggleDetails","iIndex: "+b+" | bOpened: "+c);if(c===true){$(this.aElements[b].sSelector+" "+this.oSelector.sButton).addClass(this.oClass.sButtonOpen).removeClass(this.oClass.sButtonClose);
$(this.aElements[b].sSelector+" "+this.oSelector.sButton+" a").attr("title",this.oText.sButtonOpen);$(this.aElements[b].sSelector+" "+this.oSelector.sDetail).fadeOut(function(){$(a.aElements[b].sSelector+">p.meta").show();});}else{$(this.aElements[b].sSelector+" "+this.oSelector.sButton).addClass(this.oClass.sButtonClose).removeClass(this.oClass.sButtonOpen);
$(this.aElements[b].sSelector+" "+this.oSelector.sButton+" a").attr("title",this.oText.sButtonClose);$(this.aElements[b].sSelector+" "+this.oSelector.sDetail).fadeIn();$(this.aElements[b].sSelector+">p.meta").hide();if(this.aElements[b].bLoaded===false){TFT.Ext.NDE.BoxCategory.scroll(b);}}TFT.Core.Statistics.set("Omniture",{prop16:"ausklappen",prop19:"ausklappen"});
TFT.Core.Statistics.count(["IvwAgof","Omniture"]);};TFT.Ext.NDE.BoxCategory.scroll=function(d){TFT.Core.Console.log("TFT.Ext.NDE.BoxCategory.scroll","iIndex: "+d);var c=this,b=$(this.aElements[d].sSelector+" div.boxTabs ul a:first"),f,e,a;$(this.aElements[d].sSelector+" div.content").attr({scrollTop:0,scrollLeft:0});
$(this.aElements[d].sSelector+" div.boxTabs ul").localScroll({event:"mouseover",target:this.aElements[d].sSelector+" div.content",axis:"x",queue:false,duration:this.oConfig.iScrollDuration,stop:false,hash:false,onBefore:function(j,h,g){a=TFT.Util.String.tokenFilter(h.id,"clusterBox-").split("-");if(a[1]==="comments"&&$(h).find("ul.comments").length===0){if($(h).find("form.Comment").length===0){$(h).height(213);
$(h).load(TFT.Ext.NDE.Settings.Form.CommentSnippetPath,{commentableID:a[0],commentableType:"cluster",commentableURL:$(h).parents("div.boxCategory").find("li.topics a").attr("rel"),commentableHeadline:$(h).parents("div.boxCategory").find("div.latestNews a.linkParent").html(),commentUsername:(TFT.Ext.NDE.userCTF.nickName!=="")?TFT.Ext.NDE.userCTF.nickName:""},function(){TFT.Ext.NDE.Form.Comment.init($(h));
});}}f=$(c.aElements[d].sSelector+" div.content").height();e=$(h).height();if(f>e){$(c.aElements[d].sSelector+" div.content").animate({height:e});}b.removeClass("active");b=$(this).addClass("active");this.blur();$(this).addClass("active");$(this).unbind("click").click(function(){window.location.href=$(this).attr("rel");
return false;});var i=$(this).attr("href").match(/([a-z]{1,})/g)[0];switch(i){case"topic":i="meldungen";break;case"images":i="bilder";break;}TFT.Core.Statistics.set("Omniture",{prop16:i,prop19:i});TFT.Core.Statistics.count(["Omniture"]);},onAfter:function(i,h,g){if(f<e){$(c.aElements[d].sSelector+" div.content").animate({height:e},{duration:c.oConfig.iResizeDuration,queue:false});
}}});};TFT.Ext.NDE.BoxSources={};TFT.Ext.NDE.BoxSources.init=function(){var a;TFT.Core.Console.log("TFT.Ext.NDE.BoxSources.init","");if(TFT.Ext.NDE.Settings.bLive===true){a="/sources-popup/";}else{a="scripts/ajax/sources.html";}$("#footer li.sources a").click(function(){if($("#boxSources").length===0){$("body").append('<div id="boxSources"></div>');
$("#boxSources").load(a,function(){$("#boxSources").dialog({height:600,width:575,title:"nachrichten.de Quellen",draggable:true,resizable:false,modal:true,autoOpen:true});});}else{$("#boxSources").dialog("open");}return false;});};TFT.Ext.NDE.BoxPictures={iCurrent:0,oSelector:{sContainer:"#boxPictures ul li",sCurrentImage:"#boxPictures li img",sNewImage:"#boxPictures li img",sBanderole:"#boxPictures div.banderole",sText:"#boxPictures p"}};
TFT.Ext.NDE.BoxPictures.init=function(){var b=this,a=($(b.oSelector.sNewImage+":eq("+this.iCurrent+")").attr("alt")).split("|");this.iMax=$("#boxPictures ul li img").length-1;this.iNext=1;this.iLast=this.iMax;this.iTop=($(this.oSelector.sContainer).height()-$(this.oSelector.sCurrentImage).height())/2;
this.iLeft=($(this.oSelector.sContainer).width()-$(this.oSelector.sCurrentImage).width())/2;$(this.oSelector.sBanderole).css("opacity",0.7);$(this.oSelector.sCurrentImage).css({position:"absolute",top:this.iTop,left:this.iLeft});$(this.oSelector.sText).html("<strong>"+a[0]+"</strong><br/>"+a[1]);if(this.iMax!==0){$("#boxPictures div.buttonSliderForward a").bind("click",function(){b.rotate(b.iCurrent,b.iNext);
return false;});$("#boxPictures div.buttonSliderBackward a").bind("click",function(){b.rotate(b.iCurrent,b.iLast);return false;});}else{$("#boxPictures div.buttonSliderBackward, #boxPictures div.buttonSliderForward").hide();}};TFT.Ext.NDE.BoxPictures.rotate=function(b,a){var d=this,c;$(this.oSelector.sText+","+this.oSelector.sBanderole).slideUp("normal");
$("#boxPictures div[class^=button]").hide();$("#boxPictures ul li:eq("+d.iCurrent+") img").fadeOut("slow",function(){$("#boxPictures ul li:eq("+b+")").hide();$("#boxPictures ul li:eq("+a+")").show();$("#boxPictures ul li:eq("+a+") img").css({position:"absolute",top:($(d.oSelector.sContainer).height()-$("#boxPictures ul li:eq("+a+") img").height())/2,left:($(d.oSelector.sContainer).width()-$("#boxPictures ul li:eq("+a+") img").width())/2});
c=($("#boxPictures ul li:eq("+a+") img").attr("alt")).split("|");$(d.oSelector.sCurrentImage+":eq("+a+"), div[class^=button]").fadeIn("normal");$(d.oSelector.sText).html("<strong>"+c[0]+"</strong><br/>"+c[1]);$(d.oSelector.sText+","+d.oSelector.sBanderole).slideDown("normal");});this.iCurrent=a;this.iNext=(this.iCurrent<this.iMax)?(this.iCurrent+1):0;
this.iLast=(this.iCurrent>0)?(this.iCurrent-1):this.iMax;};TFT.Ext.NDE.Form.Search={bSubmitted:false,oConfig:{sDefaultValue:{searchString:"Suchbegriff eingeben"}}};TFT.Ext.NDE.Form.Search.init=function(b){var a=this;TFT.Core.Console.log("TFT.Ext.NDE.Form.Search.init","");$(b).keypress(function(c){if(c.keyCode===13){TFT.Ext.NDE.Form.Search.validate(b);
return false;}});$(b).find("input[name=searchString]").click(function(){$(this).css("color",TFT.Ext.NDE.Settings.oColors.formTextDefault);if($(this).val()===a.oConfig.sDefaultValue.searchString){$(this).val("");}});$(b).find("a.searchRefine").click(function(){$(b).find("fieldset.searchRefine dl").slideToggle("fast");
return false;});$(b).find("a.searchSubmit").click(function(){TFT.Ext.NDE.Form.Search.validate(b);return false;});$(b).find("fieldset.searchRefine dl a").click(function(){$(b).find("form").data("type",$(this).parent().attr("class"));$(b).find("a.searchSubmit").html($(this).attr("title"));$(b).find("fieldset.searchRefine dl").slideUp("fast");
if($(b).find("input[name=searchString]").val()!==a.oConfig.sDefaultValue.searchString&&$(b).find("input[name=searchString]").val()!==""){TFT.Ext.NDE.Form.Search.validate(b);}return false;});};TFT.Ext.NDE.Form.Search.validate=function(e){var d=this,a=$(e).find("input[name=searchString]"),c=0,b=$(a).val();
TFT.Core.Console.log("TFT.Ext.NDE.Form.Search.validate","");if(b===d.oConfig.sDefaultValue.searchString||b===""||!TFT.Ext.NDE.Form.Search.isValidSearchString(b)){$(a).val(d.oConfig.sDefaultValue.searchString);$(a).animate({color:TFT.Ext.NDE.Settings.oColors.formTextError});c++;}if(c===0&&TFT.Ext.NDE.Form.Search.bSubmitted===false){TFT.Ext.NDE.Form.Search.submit(e);
}};TFT.Ext.NDE.Form.Search.isValidSearchString=function(a){if(a.length<3||a.match(/^[A-z-a-z0-9ÖÜÄöüäß]{2}[*]$/)||a.match(/^[*]$/)||a.match(/^(NOT[ ]|[-]).*/i)){return false;}return true;};TFT.Ext.NDE.Form.Search.submit=function(c){var a=$(c).find("form").attr("action"),d=escape($(c).find("input[name=searchString]").val()),b=(typeof($(c).find("form").data("type"))!=="undefined")?$(c).find("form").data("type")+"/":"";
TFT.Ext.NDE.Form.Search.bSubmitted=true;TFT.Core.Console.log("TFT.Ext.NDE.Form.Search.submit","sSearchItem="+d);$(c).find("form").attr("action",a+d+b);window.location.href=a+d+"/"+b;};TFT.Ext.NDE.Form.Comment={oConfig:{sDefaultValue:{commentHeadline:"",commentUsername:"",commentMessage:"",resultTitle:"Vielen Dank",resultMessage:"Bitte beachten Sie, dass es bis zu f&uuml;nf Minuten dauern kann, bis Ihr Kommentar auf der Seite erscheint"}}};
TFT.Ext.NDE.Form.Comment.init=function(f){var d=this,c=$(f).attr("id"),a=$(f).find("form").attr("id",c+"-form"),e=$(f).find("textarea[name=commentMessage]").attr("id",c+"-message"),b=$(f).find("span.commentCounter").attr("id",c+"-counter");TFT.Core.Console.log("TFT.Ext.NDE.Form.Comment.init","formID:"+$(f).find("form").attr("id"));
if(TFT.Ext.NDE.userCTF.loggedIn===true){$(f).find("fieldset.commentTabs li:first").addClass("active");$(f).find("fieldset.commentTabs li:first").html('<a href="'+TFT.Ext.NDE.userCTF.profileURL+'" title="Eingeloggt als '+TFT.Ext.NDE.userCTF.nickName+'">Eingeloggt als '+TFT.Ext.NDE.userCTF.nickName+"</a>");
$(f).find("fieldset.commentUsername").children().hide();$(f).find("input[name=commentUsername]").val(TFT.Ext.NDE.userCTF.nickName);$(f).find("p.counter span").html("800");}else{$(f).find("fieldset.commentTabs li:last").addClass("active");$(f).find("fieldset.commentTabs li:first").html('<a href="'+TFT.Ext.NDE.userCTF.loginURL+'" title="Login">Login</a>');
$(f).find("fieldset.commentUsername").children().show();$(f).find("p.counter span").html("400");}$(f).find("textarea[name=commentMessage]").bind("focus keypress",function(){TFT.Util.Form.limitInput({input:"#"+$(e).attr("id"),label:"#"+$(b).attr("id"),limit:(TFT.Ext.NDE.userCTF.loggedIn===true)?800:400});
});$(f).find("textarea, input").bind("click focus",function(){$(this).css("border-color",TFT.Ext.NDE.Settings.oColors.formBorderDefault);$(this).prev("label").css("color",TFT.Ext.NDE.Settings.oColors.textDefault);});$(f).find("div.buttonSubmitComment a").click(function(){TFT.Ext.NDE.Form.Comment.validate(f);
return false;});$(f).find("a.netiquette").live("click",function(){if($("#boxNetiquette").length===0){$("body").append('<div id="boxNetiquette"></div>');$("#boxNetiquette").load(TFT.Ext.NDE.Settings.Box.NetiquetteSnippetPath,function(){$("#boxNetiquette").dialog({height:600,width:575,title:"nachrichten.de Netiquette",draggable:true,resizable:false,modal:true,autoOpen:true});
});}else{$("#boxNetiquette").dialog("open");}return false;});};TFT.Ext.NDE.Form.Comment.validate=function(e){var d=this,a=0,f=$(e).find("input[name=commentHeadline]"),c=$(e).find("input[name=commentUsername]"),b=$(e).find("textarea[name=commentMessage]");TFT.Core.Console.log("TFT.Ext.NDE.Form.Comment.validate","formID:"+$(e).find("form").attr("id"));
if($(f).val()===d.oConfig.sDefaultValue.commentHeadline||$(f).val()===""){$(f).val(d.oConfig.sDefaultValue.commentHeadline);$(f).css("border-color",TFT.Ext.NDE.Settings.oColors.formBorderError);$(f).prev("label").css("color",TFT.Ext.NDE.Settings.oColors.formTextError);a++;}if((TFT.Ext.NDE.userCTF.loggedIn===false)&&($(c).val()===d.oConfig.sDefaultValue.commentUsername||$(c).val()==="")){$(c).val(d.oConfig.sDefaultValue.commentUsername);
$(c).css("border-color",TFT.Ext.NDE.Settings.oColors.formBorderError);$(c).prev("label").css("color",TFT.Ext.NDE.Settings.oColors.formTextError);a++;}if($(b).val()===d.oConfig.sDefaultValue.commentMessage||$(b).val()===""){$(b).val(d.oConfig.sDefaultValue.commentMessage);$(b).css("border-color",TFT.Ext.NDE.Settings.oColors.formBorderError);
$(b).prev("label").css("color",TFT.Ext.NDE.Settings.oColors.formTextError);a++;}if(a===0){TFT.Ext.NDE.Form.Comment.submit(e);}};TFT.Ext.NDE.Form.Comment.submit=function(i){var l=this,b,k,d="#"+$(i).find("form").attr("id"),g=$(i).find("input[name=commentableID]").val(),c=$(i).find("input[name=commentableType]").val(),j=$(i).find("input[name=commentableURL]").val(),h=$(i).find("input[name=commentableHeadline]").val(),a=$(i).find("input[name=commentHeadline]").val(),e=$(i).find("input[name=commentUsername]").val(),f=$(i).find("textarea[name=commentMessage]").val();
TFT.Core.Console.log("TFT.Ext.NDE.Form.Comment.submit","formID:"+$(i).find("form").attr("id"));TFT.Util.LoadingIndicator.show(d);if(TFT.Ext.NDE.Settings.bLive===true){b={authorName:e,user:{username:e,authenticationId:TFT.Ext.NDE.userCTF.ctfID,mail:TFT.Ext.NDE.userCTF.eMail},commentable:{url:j,commentableType:c,identifier:g,title:h},title:a,text:f,state:"ACTIVE"};
k=JSON.stringify(b);$.ajax({contentType:"application/json; charset=utf-8",data:k,dataType:"json",error:function(n,o,m){alert(o);},processData:false,success:function(m,n){$(i).find("fieldset:gt(1)").empty();TFT.Util.LoadingIndicator.hide(d);$(i).find("form fieldset[class=commentHeadline]").html("<p><strong>"+l.oConfig.sDefaultValue.resultTitle+"</strong></p>");
$(i).find("form fieldset[class=commentMessage]").html("<p>"+l.oConfig.sDefaultValue.resultMessage+"</strong></p>");},type:"POST",url:TFT.Ext.NDE.Settings.sContextPath+TFT.Ext.NDE.Settings.Form.CommentScriptPath});}else{window.setTimeout(function(){$(i).find("fieldset:gt(1)").empty();TFT.Util.LoadingIndicator.hide(d);
$(i).find("form fieldset[class=commentHeadline]").html("<p><strong>"+l.oConfig.sDefaultValue.resultTitle+"</strong></p>");$(i).find("form fieldset[class=commentMessage]").html("<p>"+l.oConfig.sDefaultValue.resultMessage+"</strong></p>");},3000);}};TFT.Ext.NDE.BoxFeedback={oConfig:{sSubmitURL:"/ajax/feedback",sDefaultValueEmail:"Email-Adresse eingeben",sErrorValueEmail:"ungültige Email-Adresse",sDefaultValueFeedback:"Feedback",sTextColor:"#666666"}};
TFT.Ext.NDE.BoxFeedback.init=function(){TFT.Core.Console.log("TFT.Ext.NDE.BoxFeedback.init","");var b=this,c,a;if($("#boxFeedback").length===0){$("body").prepend('<div id="boxFeedback"></div>');$("#boxFeedback").after('<div id="boxFeedbackLayer"></div>');$("#boxFeedbackLayer").css({"z-index":-800,height:$(document).height(),width:$(document).width(),top:0,left:0,position:"absolute",display:"none",opacity:0});
$("#boxFeedback").load(TFT.Ext.NDE.Settings.Form.FeedbackSnippetPath,function(){$("#boxFeedback").css({"z-index":995,display:"block",width:459+25,height:260,left:-($("#pageContainer").position().left+459+25)+"px",top:228,"border-left":$("#pageContainer").position().left+"px solid #f2f1f2"});if(typeof(TFT.Ext.NDE.userCTF.eMail)!=="undefined"&&TFT.Ext.NDE.userCTF.eMail!==""){$("#boxFeedback input[name=feedbackEmail]").val(TFT.Ext.NDE.userCTF.eMail);
}$("#boxFeedback div.buttonFeedback a").click(function(){var e,d;if($("#boxFeedback").position().left<0){e=0;d=Math.ceil($("#pageContainer").position().left);$("#boxFeedbackLayer").css({"z-index":990,"display":"block"}).fadeTo("fast",0.5);$("#boxFeedback p.message").remove();$("#boxFeedback form").show();
$("#boxFeedback div.buttonFeedbackSend").show();}else{d=0;e=-($("#pageContainer").position().left+459+25);$("#boxFeedbackLayer").fadeTo("fast",0).css({"z-index":-800}).hide();}$("#boxFeedback").animate({"border-left-color":"#f2f1f2","border-left-style":"solid","border-left-width":d,left:e});return false;
});$("#boxFeedback textarea[name=feedbackMessage]").bind("click focus",function(){$(this).css("color",b.oConfig.sTextColor);if($(this).val()===b.oConfig.sDefaultValueFeedback){$(this).val("");}});$("#boxFeedback input[name=feedbackEmail]").bind("click focus",function(){$(this).css("color",b.oConfig.sTextColor);
if($(this).val()===b.oConfig.sDefaultValueEmail||$(this).val()===b.oConfig.sErrorValueEmail){$(this).val("");}});$("#boxFeedback div.buttonFeedbackSend a").click(function(){b.validate();return false;});$(window).resize(function(){if($("#boxFeedback").position().left<0){$("#boxFeedback").css({"border-left":$("#pageContainer").position().left+"px solid #f2f1f2",left:-($("#pageContainer").position().left+459+25)});
}else{if($("#boxFeedback").position().left===0){$("#boxFeedbackLayer").fadeTo("fast",0).hide();$("#boxFeedback").css({"border-left":0,left:-(459+25)});}}});});}};TFT.Ext.NDE.BoxFeedback.validate=function(){TFT.Core.Console.log("TFT.Ext.NDE.BoxFeedback.validate","");var b=this,a=0;if($("#boxFeedback form textarea[name=feedbackMessage]").val()===b.oConfig.sDefaultValueFeedback||$("#boxFeedback form textarea[name=feedbackMessage]").val()===""){$("#boxFeedback form textarea[name=feedbackMessage]").val(b.oConfig.sDefaultValueFeedback);
$("#boxFeedback form textarea[name=feedbackMessage]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxFeedback form input[name=feedbackEmail]").val()===b.oConfig.sDefaultValueEmail||$("#boxFeedback form input[name=feedbackEmail]").val()===""||!TFT.Ext.NDE.BoxFeedback.isValidEmail($("#boxFeedback form input[name=feedbackEmail]").val())){$("#boxFeedback form input[name=feedbackEmail]").val(b.oConfig.sErrorValueEmail);
$("#boxFeedback form input[name=feedbackEmail]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if(a===0){TFT.Ext.NDE.BoxFeedback.sendFeedback();}};TFT.Ext.NDE.BoxFeedback.isValidEmail=function(b){var a=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if(b.match(a)){return true;}return false;};TFT.Ext.NDE.BoxFeedback.sendFeedback=function(){TFT.Core.Console.log("TFT.Ext.NDE.BoxFeedback.sendFeedback","");var i=this,c,d,h,e,j,g,b,a,f;TFT.Util.LoadingIndicator.show("#boxFeedback form");if(TFT.Ext.NDE.Settings.bLive===true){TFT.Core.Console.log("TFT.Ext.NDE.BoxComments.sendComment","[send by ajax post]");
c=$("#boxFeedback form textarea[name=feedbackMessage]").val();d=$("#boxFeedback form input[name=feedbackEmail]").val();a={userEMail:d,ctfId:TFT.Ext.NDE.userCTF.ctfID,ctfEmail:TFT.Ext.NDE.userCTF.eMail,userFeedback:c,referrer:document.location.href,browser:$.browser.name,browserVersion:$.browser.version};
f=JSON.stringify(a);$.ajax({contentType:"application/json; charset=utf-8",data:f,dataType:"json",error:function(l,m,k){},processData:false,success:function(k,l){$("#boxFeedback form input").val(i.oConfig.sDefaultValueEmail);$("#boxFeedback form textarea").val(i.oConfig.sDefaultValueFeedback);TFT.Util.LoadingIndicator.hide("#boxFeedback form");
TFT.Core.Console.log("TFT.Ext.NDE.BoxFeedback.sendFeedback","data.errorMsg:"+k.errorMsg);TFT.Core.Console.log("TFT.Ext.NDE.BoxFeedback.sendFeedback","data.errorStatus:"+k.errorStatus);TFT.Core.Console.log("TFT.Ext.NDE.BoxFeedback.sendFeedback","data.successMsg:"+k.successMsg);TFT.Core.Console.log("TFT.Ext.NDE.BoxFeedback.sendFeedback","data.successStatus:"+k.successStatus);
b=(k.successMsg!==""&&(typeof(k.successMsg)!=="undefined"))?k.successMsg:k.errorMsg;$("#boxFeedback form").hide();$("#boxFeedback").append('<p class="message">'+b+"</p>");$("#boxFeedback div.buttonFeedbackSend").hide();},type:"POST",url:TFT.Ext.NDE.Settings.sContextPath+TFT.Ext.NDE.Settings.Form.FeedbackScriptPath});
}else{TFT.Core.Console.log("TFT.Ext.NDE.BoxFeedback.sendFeedback","[fake submit]");window.setTimeout(function(){$("#boxFeedback form input").val(i.oConfig.sDefaultValueEmail);$("#boxFeedback form textarea").val(i.oConfig.sDefaultValueFeedback);TFT.Util.LoadingIndicator.hide("#boxFeedback form");$("#boxFeedback form").hide();
$("#boxFeedback").append('<p class="message">Fake Submit</p>');$("#boxFeedback div.buttonFeedbackSend").hide();},3000);}};TFT.Ext.NDE.publisherArea={oConfig:{sSubmitURL:"/ajax/publisherApp",sDefaultValue:{registerDomain:"Domain des Internetangebots",registerDescription:"Kurzbeschreibung des Internetangebots",registerOwner:"Betreiber",registerContact:"Ansprechpartner",registerFunction:"Funktion/Position des Ansprechpartners",registerEmail:"E-Mail",registerPhone:"Telefon",registerFax:"Fax",registerStreet:"Strasse",registerHouseNr:"Nummer",registerZIP:"PLZ",registerCity:"Stadt"},sTextColor:"#666666"}};
TFT.Ext.NDE.publisherArea.init=function(){var a=this;$("#boxPublisher").dialog({height:600,width:575,title:"Anmeldung f&uuml;r den nachrichten.de Fair Share",draggable:true,resizable:false,modal:true,autoOpen:false});$("#publisherArea a.registerSource, #publisherArea a.registerFairShare").click(function(){$("#boxPublisher form input[name=registerType]").val($(this).attr("class"));
$("#boxPublisher").dialog("open");return false;});$("#boxPublisher div.buttonPublisherSend a").click(function(){a.validate();return false;});$("#boxPublisher form input[name=registerDomain]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);if($(this).val()===a.oConfig.sDefaultValue.registerDomain){$(this).val("");
}});$("#boxPublisher form textarea[name=registerDescription]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);if($(this).val()===a.oConfig.sDefaultValue.registerDescription){$(this).val("");}});$("#boxPublisher form input[name=registerOwner]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);
if($(this).val()===a.oConfig.sDefaultValue.registerOwner){$(this).val("");}});$("#boxPublisher form input[name=registerContact]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);if($(this).val()===a.oConfig.sDefaultValue.registerContact){$(this).val("");}});$("#boxPublisher form input[name=registerFunction]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);
if($(this).val()===a.oConfig.sDefaultValue.registerFunction){$(this).val("");}});$("#boxPublisher form input[name=registerEmail]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);if($(this).val()===a.oConfig.sDefaultValue.registerEmail){$(this).val("");}});$("#boxPublisher form input[name=registerPhone]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);
if($(this).val()===a.oConfig.sDefaultValue.registerPhone){$(this).val("");}});$("#boxPublisher form input[name=registerFax]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);if($(this).val()===a.oConfig.sDefaultValue.registerFax){$(this).val("");}});$("#boxPublisher form input[name=registerStreet]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);
if($(this).val()===a.oConfig.sDefaultValue.registerStreet){$(this).val("");}});$("#boxPublisher form input[name=registerHouseNr]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);if($(this).val()===a.oConfig.sDefaultValue.registerHouseNr){$(this).val("");}});$("#boxPublisher form input[name=registerZIP]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);
if($(this).val()===a.oConfig.sDefaultValue.registerZIP){$(this).val("");}});$("#boxPublisher form input[name=registerCity]").bind("click focus",function(){$(this).css("color",a.oConfig.sTextColor);if($(this).val()===a.oConfig.sDefaultValue.registerCity){$(this).val("");}});};TFT.Ext.NDE.publisherArea.init();
TFT.Ext.NDE.publisherArea.validate=function(){TFT.Core.Console.log("TFT.Ext.NDE.BoxPublisher.validate","");var b=this,a=0;if($("#boxPublisher form input[name=registerDomain]").val()===b.oConfig.sDefaultValue.registerDomain||$("#boxPublisher form input[name=registerDomain]").val()===""){$("#boxPublisher form input[name=registerDomain]").val(b.oConfig.sDefaultValue.registerDomain);
$("#boxPublisher form input[name=registerDomain]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form textarea[name=registerDescription]").val()===b.oConfig.sDefaultValue.registerDescription||$("#boxPublisher form textarea[name=registerDescription]").val()===""){$("#boxPublisher form textarea[name=registerDescription]").val(b.oConfig.sDefaultValue.registerDescription);
$("#boxPublisher form textarea[name=registerDescription]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerOwner]").val()===b.oConfig.sDefaultValue.registerOwner||$("#boxPublisher form input[name=registerOwner]").val()===""){$("#boxPublisher form input[name=registerOwner]").val(b.oConfig.sDefaultValue.registerOwner);
$("#boxPublisher form input[name=registerOwner]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerContact]").val()===b.oConfig.sDefaultValue.registerContact||$("#boxPublisher form input[name=registerContact]").val()===""){$("#boxPublisher form input[name=registerContact]").val(b.oConfig.sDefaultValue.registerContact);
$("#boxPublisher form input[name=registerContact]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerFunction]").val()===b.oConfig.sDefaultValue.registerFunction||$("#boxPublisher form input[name=registerFunction]").val()===""){$("#boxPublisher form input[name=registerFunction]").val(b.oConfig.sDefaultValue.registerFunction);
$("#boxPublisher form input[name=registerFunction]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerEmail]").val()===b.oConfig.sDefaultValue.registerEmail||$("#boxPublisher form input[name=registerEmail]").val()===""||!TFT.Ext.NDE.publisherArea.isValidEmail($("#boxPublisher form input[name=registerEmail]").val())){$("#boxPublisher form input[name=registerEmail]").val(b.oConfig.sDefaultValue.registerEmail);
$("#boxPublisher form input[name=registerEmail]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerPhone]").val()===b.oConfig.sDefaultValue.registerPhone||$("#boxPublisher form input[name=registerPhone]").val()===""){$("#boxPublisher form input[name=registerPhone]").val(b.oConfig.sDefaultValue.registerPhone);
$("#boxPublisher form input[name=registerPhone]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerFax]").val()===b.oConfig.sDefaultValue.registerFax||$("#boxPublisher form input[name=registerFax]").val()===""){$("#boxPublisher form input[name=registerFax]").val(b.oConfig.sDefaultValue.registerFax);
$("#boxPublisher form input[name=registerFax]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerStreet]").val()===b.oConfig.sDefaultValue.registerStreet||$("#boxPublisher form input[name=registerStreet]").val()===""){$("#boxPublisher form input[name=registerStreet]").val(b.oConfig.sDefaultValue.registerStreet);
$("#boxPublisher form input[name=registerStreet]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerHouseNr]").val()===b.oConfig.sDefaultValue.registerHouseNr||$("#boxPublisher form input[name=registerHouseNr]").val()===""){$("#boxPublisher form input[name=registerHouseNr]").val(b.oConfig.sDefaultValue.registerHouseNr);
$("#boxPublisher form input[name=registerHouseNr]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerZIP]").val()===b.oConfig.sDefaultValue.registerZIP||$("#boxPublisher form input[name=registerZIP]").val()===""){$("#boxPublisher form input[name=registerZIP]").val(b.oConfig.sDefaultValue.registerZIP);
$("#boxPublisher form input[name=registerZIP]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if($("#boxPublisher form input[name=registerCity]").val()===b.oConfig.sDefaultValue.registerCity||$("#boxPublisher form input[name=registerCity]").val()===""){$("#boxPublisher form input[name=registerCity]").val(b.oConfig.sDefaultValue.registerCity);
$("#boxPublisher form input[name=registerCity]").animate({color:TFT.Ext.NDE.Settings.oColor.sErrorMsg},{duration:b.oConfig.iDuration,queue:false});a++;}if(a===0){TFT.Ext.NDE.publisherArea.sendRegistration();return false;}};TFT.Ext.NDE.publisherArea.isValidEmail=function(b){var a=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if(b.match(a)){return true;}return false;};TFT.Ext.NDE.publisherArea.sendRegistration=function(){TFT.Core.Console.log("TFT.Ext.NDE.publisherArea.sendRegistration","");var p=this,l=$("#boxPublisher input[name=registerType]").val(),h=$("#boxPublisher input[name=registerDomain]").val(),m=$("#boxPublisher textarea[name=registerDescription]").val(),q=$("#boxPublisher input[name=registerOwner]").val(),n=$("#boxPublisher input[name=registerContact]").val(),k=$("#boxPublisher input[name=registerFunction]").val(),g=$("#boxPublisher input[name=registerEmail]").val(),f=$("#boxPublisher input[name=registerPhone]").val(),d=$("#boxPublisher input[name=registerFax]").val(),b=$("#boxPublisher input[name=registerStreet]").val(),i=$("#boxPublisher input[name=registerHouseNr]").val(),a=$("#boxPublisher input[name=registerZIP]").val(),j=$("#boxPublisher input[name=registerCity]").val(),c,o,e;
if(TFT.Ext.NDE.Settings.bLive===true){TFT.Core.Console.log("TFT.Ext.NDE.publisherArea.sendRegistration","[send by ajax post]");c={type:l,domainName:h,domainDescription:m,domainOwner:q,contactPerson:n,contactPersonPosition:k,email:g,phone:f,fax:d,street:b,streetNumber:i,zipCode:a,city:j};o=JSON.stringify(c);
$.ajax({contentType:"application/json; charset=utf-8",data:o,dataType:"json",error:function(u,v,t){TFT.Core.Console.log("TFT.Ext.NDE.boxPublisher.sendRegistration",v);},processData:false,success:function(t,u){TFT.Util.LoadingIndicator.hide("#boxPublisher form");TFT.Core.Console.log("TFT.Ext.NDE.boxPublisher.sendRegistration","data.errorStatus:"+t.errorMsg);
if(t.errorStatus===0){e="Vielen Dank für Ihr Interesse an nachrichten.de!<br />&nbsp;<br />Mit freundlichen Grüßen,<br />Ihr nachrichten.de-Team";}else{e="Leider ist ein Fehler aufgetreten. Bitte versuchen Sie es noch einmmal oder wenden Sie sich an unseren Webmaster (webmaster@nachrichten.de).<br />&nbsp;<br />Wir bitten Sie, den Fehler zu entschuldiegen<br />&nbsp;<br />Vielen Dank!<br />&nbsp;<br />Mit freundlichen Grüßen,<br />Ihr nachrichten.de-Team";
}$("#boxPublisher form").hide();$("#boxPublisher").animate({height:200});$("#boxPublisher").append('<p style="font-weight:bold;font-size:12px;">'+e+"</p>");$("#boxPublisher div.buttonPublisherSend").hide();},type:"POST",url:TFT.Ext.NDE.Settings.sContextPath+TFT.Ext.NDE.Settings.Form.PublisherScriptPath});
}else{TFT.Core.Console.log("TFT.Ext.NDE.boxPublisher.sendRegistration","[fake submit]");window.setTimeout(function(){TFT.Util.LoadingIndicator.hide("#boxPublisher form");$("#boxPublisher form").hide();$("#boxPublisher").animate({height:200});$("#boxPublisher").append('<p style="font-weight:bold;font-size:12px;">Fake Submit</p>');
$("#boxPublisher div.buttonPublisherSend").hide();},3000);}};TFT.Ext.NDE.TimeSlider={bActive:false,oWidth:{iElement:8,iContainer:249,iHandle:9},oStyle:{oToday:{top:0,left:240,width:7},oWeek:{top:0,left:192,width:55},oMonth:{top:0,left:0,width:247}},iOpacity:0.1,sDuration:"normal",sStart:"",sEnd:""};TFT.Ext.NDE.TimeSlider.init=function(b){b.type=b.type||"topic";
TFT.Core.Console.log("TFT.Ext.NDE.TimeSlider.init","oConfig.selector: "+b.selector+" | oConfig.type:"+b.type);var a=(30).days().ago(),c=(30).days().ago().toString("dd.MM.yyyy");this.sSelector=b.selector;this.sType=b.type;if(this.sType==="topic"){this.submit=function(d){TFT.Ext.NDE.Topic.submit(d);};}else{if(this.sType==="search"){this.submit=function(d){TFT.Ext.NDE.Search.submit(d);
};}}$(this.sSelector+" ul.slider li").each(function(){$(this).attr("title",c);a=a.add(1).days();c=a.toString("dd.MM.yyyy");});this.enable();};TFT.Ext.NDE.TimeSlider.enable=function(){TFT.Core.Console.log("TFT.Ext.NDE.TimeSlider.enable","sSelector: "+this.sSelector);var a=this;$("div.sliderHandle").draggable({containment:$("div.sliderContainer"),axis:"x",handle:"div.sliderDragHelper",grid:[8,8],start:function(){a.iPosLeftStart=$("div.sliderHandle").position().left;
},drag:function(f,c){if($("#searchCockpitFlyout:visible").length===1){$("#searchCockpitFlyout").dialog("destroy");}if($("div.ui-daterangepicker:visible").length===1){$("div.ui-daterangepicker").hide();}$("li div.buttonArrowDown a").removeClass("active");if(a.iPosLeftStart!==c.position.left){a.iPosLeftStart=c.position.left;
var b=$("ul.slider li:eq("+(c.position.left/8)+")").attr("title"),d=($("div.sliderHandle").width()+1)/8;a.set({sStart:b,iCount:d});}},stop:function(c,b){TFT.Ext.NDE.Topic.searchPeriodKey="slide";TFT.Ext.NDE.Search.searchPeriodKey="slide";a.submit({sType:"refresh",sUrl:""});}}).resizable({grid:[8,8],handles:"e,w",maxWidth:249,minWidth:8,containment:"parent",ghost:false,knobHandles:true,resize:function(h,f){if($("#searchCockpitFlyout:visible").length===1){$("#searchCockpitFlyout").dialog("destroy");
}if($("div.ui-daterangepicker:visible").length===1){$("div.ui-daterangepicker").hide();}$("li div.buttonArrowDown a").removeClass("active");var d=$("ul.slider li:eq("+(Math.round(f.position.left/8))+")").attr("title"),c=Math.round(f.position.left/8)+Math.round(f.size.width/8),g=Math.round(f.size.width/8),b=c-g;
if(b>=0&&g<=31&&c<=31){a.set({sStart:d,iCount:g});}},stop:function(f,c){var b=$("ul.slider li:eq("+(c.position.left/8)+")").attr("title"),d=(c.size.width+1)/8;TFT.Ext.NDE.Topic.searchPeriodKey="slide";TFT.Ext.NDE.Search.searchPeriodKey="slide";if(d%2===0&&d<=31){TFT.Core.Console.log("TFT.Ext.NDE.TimeSlider.resize","sStart: "+b+" | iCount: "+d);
a.set({sStart:b,iCount:d});}a.submit({sType:"refresh",sUrl:""});}});$(this.sSelector+" div[class^=buttonSlider] a").unbind().bind("click",function(){var b=($(this).parent().hasClass("buttonSliderForward"))?"forward":"backward";$(this.sSelector).find("div.buttonArrowDown a").removeClass("active");a.move(b);
a.submit({sType:"refresh",sUrl:""});return false;});};TFT.Ext.NDE.TimeSlider.disable=function(){TFT.Core.Console.log("TFT.Ext.NDE.TimeSlider.disable","");$("div.searchHeader form ul.search>li:eq(0)").append('<div class="noSlider" style="width: 300px; height: 53px; background-color: rgb(255, 255, 255); z-index: 300; opacity: 0.7; position: absolute; top: 1px; right: 1px; display:none;"></div>');
$("div.searchHeader form ul.search div.noSlider").fadeIn();$(this.sSelector+" div.sliderHandle").resizable("destroy").draggable("destroy");$("div.buttonSliderBackward a, div.buttonSliderForward a").css("cursor","default").unbind("click").bind("click",function(){return false;});};TFT.Ext.NDE.TimeSlider.move=function(d){TFT.Core.Console.log("TFT.Ext.NDE.TimeSlider.move","");
if($("#searchCockpitFlyout:visible").length===1){$("#searchCockpitFlyout").dialog("destroy");}if($("div.ui-daterangepicker:visible").length===1){$("div.ui-daterangepicker").hide();}$("li div.buttonArrowDown a").removeClass("active");var e=this,c=$(this.sSelector+" div.sliderHandle").position().left,f=$(this.sSelector+" div.sliderHandle").width()+1,a=(d==="backward")?(c-8):(c+8),b;
if((a!==c)&&(a>=0&&a<=(249-$(this.sSelector+" div.sliderHandle").outerWidth()))){$(this.sSelector+" div.sliderHandle").css("left",a);b=$("ul.slider li:eq("+a/8+")").attr("title");f=($("div.sliderHandle").width()+1)/8;e.set({sStart:b,iCount:f});}};TFT.Ext.NDE.TimeSlider.set=function(d){var f=this,c,e,b,a,h,g;
if(typeof d.sStart==="string"&&typeof d.sEnd==="string"){TFT.Core.Console.log("TFT.Ext.NDE.TimeSlider.set","oEvent.sStart: "+d.sStart+" | oEvent.sEnd: "+d.sEnd);c=d.sStart;e=d.sEnd;}else{if(typeof d.sStart==="string"&&typeof d.iCount==="number"){TFT.Core.Console.log("TFT.Ext.NDE.TimeSlider.set","oEvent.sStart: "+d.sStart+" | oEvent.iCount: "+d.iCount);
c=d.sStart;h=d.iCount;e=Date.parse(d.sStart).add(h-1).days().toString("dd.MM.yyyy");}}if($("li[title="+c+"]").length>0&&$("li[title="+e+"]").length>0){if($("div.searchHeader form ul.search div.noSlider").length>0){$("div.searchHeader form ul.search div.noSlider").fadeOut(function(){$("div.searchHeader form ul.search div.noSlider").remove();
f.enable();});}$(this.sSelector+" div.sliderHandle").css({left:$("li[title="+c+"]").position().left,width:($("li[title="+e+"]").position().left+7)-($("li[title="+c+"]").position().left)});$(this.sSelector+" ul.slider li").each(function(i){if($(this).attr("title")===c){b=i;}if($(this).attr("title")===e){a=i;
}});$(this.sSelector+" ul.slider li").removeClass("active");g=c+" - "+e;if(b===a){$(this.sSelector+" ul.slider li:eq("+b+")").addClass("active");g=(b===30)?"heute":$(this.sSelector+" ul.slider li:eq("+b+")").attr("title");}else{$(this.sSelector+" ul.slider li:lt("+a+"):gt("+b+"),"+this.sSelector+" ul.slider li:eq("+b+"),"+this.sSelector+" ul.slider li:eq("+a+")").addClass("active");
g=(b===24&&a===30)?"vor einer Woche":g;g=(b===0&&a===30)?"vor einem Monat":g;}}else{g=c+" - "+e;this.disable();}$("input[name=searchPeriodStart]").val(c);$("input[name=searchPeriodEnd]").val(e);$("p.searchPeriod").html(g);};
