var DOKU_BASE='http://mesowiki.univ-fcomte.fr/dokuwiki/';var DOKU_TPL='http://mesowiki.univ-fcomte.fr/dokuwiki/lib/tpl/bootstrap3/';var DOKU_COOKIE_PARAM={"path":"\/dokuwiki\/","secure":false};var DOKU_UHN=1;var DOKU_UHC=1;LANG={"willexpire":"Votre blocage pour la modification de cette page expire dans une minute.\\nPour \u00e9viter les conflits, utilisez le bouton \u00ab Aper\u00e7u \u00bb pour r\u00e9initialiser le minuteur.","notsavedyet":"Les modifications non enregistr\u00e9es seront perdues. Voulez-vous vraiment continuer ?","searchmedia":"Chercher des fichiers","keepopen":"Toujours conserver cette fen\u00eatre ouverte","hidedetails":"Masquer les d\u00e9tails","mediatitle":"Param\u00e8tres de lien","mediadisplay":"Type de lien","mediaalign":"Alignement","mediasize":"Taille de l'image","mediatarget":"Cible du lien","mediaclose":"Fermer","mediainsert":"Ins\u00e9rer","mediadisplayimg":"Afficher l'image.","mediadisplaylnk":"N'afficher que le lien.","mediasmall":"Petite taille","mediamedium":"Taille moyenne","medialarge":"Grande taille","mediaoriginal":"Taille originelle","medialnk":"Lien vers la page de d\u00e9tail","mediadirect":"Lien direct vers l'original","medianolnk":"Aucun lien","medianolink":"Ne pas lier l'image","medialeft":"Aligner l'image \u00e0 gauche.","mediaright":"Aligner l'image \u00e0 droite.","mediacenter":"Centrer l'image.","medianoalign":"Ne pas aligner.","nosmblinks":"Les liens vers les partages Windows ne fonctionnent qu'avec Microsoft Internet Explorer.\\nVous pouvez toujours copier puis coller le lien.","linkwiz":"Assistant Lien","linkto":"Lien vers\u00a0:","del_confirm":"Voulez-vous vraiment effacer ce(s) \u00e9l\u00e9ment(s) ?","restore_confirm":"Voulez-vous vraiment restaurer cette version ?","media_diff":"Voir les diff\u00e9rences :","media_diff_both":"C\u00f4te \u00e0 c\u00f4te","media_diff_opacity":"Calque","media_diff_portions":"Curseur","media_select":"S\u00e9lection de fichiers\u2026","media_upload_btn":"Envoyer","media_done_btn":"Termin\u00e9","media_drop":"D\u00e9posez des fichiers ici pour les envoyer","media_cancel":"supprimer","media_overwrt":"\u00c9craser les fichiers existants","plugins":{"indexmenu":{"indexmenuwizard":"Indexmenu Assistant","index":"Index","options":"Options","navigation":"Navigation","sort":"Trier","filter":"filtrer","performance":"Performance","namespace":"Namespace","nsdepth":"Depth","js":"Tree rendered by Javasript, you can define your own theme","theme":"Theme","navbar":"The tree opens at the current namespace","context":"Display the tree of the current wiki namespace context","nocookie":"Don't remember open\/closed nodes during user navigation","noscroll":"Prevent to scrolling the tree when it does not fit its container width","notoc":"Disable the toc preview feature","tsort":"Par titre","dsort":"Par date","msort":"Par meta tag","nsort":"Trier aussi les namespaces","hsort":"Sort headpage up","rsort":"Reverse the sorting of pages","nons":"Show only pages","nopg":"Show only namespaces","max":"How many levels to render with ajax when a node is opened. Additional are how many sublevels below that level are retrieved with AJAX instead of in one go. ","maxjs":"How many levels to render in the client browser when a node is opened","id":"Self defined cookie id for this indexmenu","insert":"Insert indexmenu","metanum":"Meta number for sorting","insertmetanum":"Insert metanumber"},"bookcreator":{"include":"Ajouter \u00e0 la s\u00e9lection.","remove":"Retirer la page de la s\u00e9lection.","sortable":"Cliquez et d\u00e9placer pour trier, supprimer, ajouter des pages.","showpage":"Afficher la page.","confirmdel":"Voulez-vous vraiment supprimer cette s\u00e9lection des archives ?","confirmload":"Voulez-vous vraiment charger cette s\u00e9lection en remplacement de la s\u00e9lection actuelle ?","btn_addtobook":"Ajouter au livre.","btn_removetobook":"Retirer du livre.","namespace_picker":"Namespace picker","select_namespace":"S\u00e9lectionnez un espace de noms :","added_pages":"Ces pages ont \u00e9t\u00e9 ajout\u00e9es :","no_pages_selected":"Aucun. \n(L'espace de noms est-il vide ?)","select":"S\u00e9lectionner","cancel":"Annuler","add_subns_too":"Ajouter les pages dans les sous-espaces de noms ?"},"extension":{"reallydel":"Vraiment d\u00e9sinstaller cette extension"}}};var toolbar=[{"type":"format","title":"Gras","icon":"bold.png","key":"b","open":"**","close":"**","block":false},{"type":"format","title":"Italique","icon":"italic.png","key":"i","open":"\/\/","close":"\/\/","block":false},{"type":"format","title":"Soulignage","icon":"underline.png","key":"u","open":"__","close":"__","block":false},{"type":"format","title":"Code \u00ab\u00a0machine \u00e0 \u00e9crire\u00a0\u00bb","icon":"mono.png","key":"m","open":"''","close":"''","block":false},{"type":"format","title":"Barr\u00e9","icon":"strike.png","key":"d","open":"","close":"<\/del>","block":false},{"type":"autohead","title":"Titre de m\u00eame niveau","icon":"hequal.png","key":"8","text":"Titre","mod":0,"block":true},{"type":"autohead","title":"Titre de niveau inf\u00e9rieur","icon":"hminus.png","key":"9","text":"Titre","mod":1,"block":true},{"type":"autohead","title":"Titre de niveau sup\u00e9rieur","icon":"hplus.png","key":"0","text":"Titre","mod":-1,"block":true},{"type":"picker","title":"S\u00e9lectionner la ligne de titre","icon":"h.png","class":"pk_hl","list":[{"type":"format","title":"Titre de niveau 1","icon":"h1.png","key":"1","open":"====== ","close":" ======\\n"},{"type":"format","title":"Titre de niveau 2","icon":"h2.png","key":"2","open":"===== ","close":" =====\\n"},{"type":"format","title":"Titre de niveau 3","icon":"h3.png","key":"3","open":"==== ","close":" ====\\n"},{"type":"format","title":"Titre de niveau 4","icon":"h4.png","key":"4","open":"=== ","close":" ===\\n"},{"type":"format","title":"Titre de niveau 5","icon":"h5.png","key":"5","open":"== ","close":" ==\\n"}],"block":true},{"type":"linkwiz","title":"Lien interne","icon":"link.png","key":"l","open":"[[","close":"]]","block":false},{"type":"format","title":"Lien externe","icon":"linkextern.png","open":"[[","close":"]]","sample":"http:\/\/example.com|Lien externe","block":false},{"type":"formatln","title":"Liste num\u00e9rot\u00e9e","icon":"ol.png","open":" - ","close":"","key":"-","block":true},{"type":"formatln","title":"Liste \u00e0 puce","icon":"ul.png","open":" * ","close":"","key":".","block":true},{"type":"insert","title":"Ligne horizontale","icon":"hr.png","insert":"\\n----\\n","block":true},{"type":"mediapopup","title":"Ajouter des images ou autres fichiers","icon":"image.png","url":"lib\/exe\/mediamanager.php?ns=","name":"mediaselect","options":"width=750,height=500,left=20,top=20,scrollbars=yes,resizable=yes","block":false},{"type":"picker","title":"\u00c9moticones","icon":"smiley.png","list":{"8-)":"icon_cool.gif","8-O":"icon_eek.gif","8-o":"icon_eek.gif",":-(":"icon_sad.gif",":-)":"icon_smile.gif","=)":"icon_smile2.gif",":-\/":"icon_doubt.gif",":-\\":"icon_doubt2.gif",":-?":"icon_confused.gif",":-D":"icon_biggrin.gif",":-P":"icon_razz.gif",":-o":"icon_surprised.gif",":-O":"icon_surprised.gif",":-x":"icon_silenced.gif",":-X":"icon_silenced.gif",":-|":"icon_neutral.gif",";-)":"icon_wink.gif","m(":"facepalm.gif","^_^":"icon_fun.gif",":?:":"icon_question.gif",":!:":"icon_exclaim.gif","LOL":"icon_lol.gif","FIXME":"fixme.gif","DELETEME":"delete.gif"},"icobase":"smileys","block":false},{"type":"picker","title":"Caract\u00e8res sp\u00e9ciaux","icon":"chars.png","list":["\u00c0","\u00e0","\u00c1","\u00e1","\u00c2","\u00e2","\u00c3","\u00e3","\u00c4","\u00e4","\u01cd","\u01ce","\u0102","\u0103","\u00c5","\u00e5","\u0100","\u0101","\u0104","\u0105","\u00c6","\u00e6","\u0106","\u0107","\u00c7","\u00e7","\u010c","\u010d","\u0108","\u0109","\u010a","\u010b","\u00d0","\u0111","\u00f0","\u010e","\u010f","\u00c8","\u00e8","\u00c9","\u00e9","\u00ca","\u00ea","\u00cb","\u00eb","\u011a","\u011b","\u0112","\u0113","\u0116","\u0117","\u0118","\u0119","\u0122","\u0123","\u011c","\u011d","\u011e","\u011f","\u0120","\u0121","\u0124","\u0125","\u00cc","\u00ec","\u00cd","\u00ed","\u00ce","\u00ee","\u00cf","\u00ef","\u01cf","\u01d0","\u012a","\u012b","\u0130","\u0131","\u012e","\u012f","\u0134","\u0135","\u0136","\u0137","\u0139","\u013a","\u013b","\u013c","\u013d","\u013e","\u0141","\u0142","\u013f","\u0140","\u0143","\u0144","\u00d1","\u00f1","\u0145","\u0146","\u0147","\u0148","\u00d2","\u00f2","\u00d3","\u00f3","\u00d4","\u00f4","\u00d5","\u00f5","\u00d6","\u00f6","\u01d1","\u01d2","\u014c","\u014d","\u0150","\u0151","\u0152","\u0153","\u00d8","\u00f8","\u0154","\u0155","\u0156","\u0157","\u0158","\u0159","\u015a","\u015b","\u015e","\u015f","\u0160","\u0161","\u015c","\u015d","\u0162","\u0163","\u0164","\u0165","\u00d9","\u00f9","\u00da","\u00fa","\u00db","\u00fb","\u00dc","\u00fc","\u01d3","\u01d4","\u016c","\u016d","\u016a","\u016b","\u016e","\u016f","\u01d6","\u01d8","\u01da","\u01dc","\u0172","\u0173","\u0170","\u0171","\u0174","\u0175","\u00dd","\u00fd","\u0178","\u00ff","\u0176","\u0177","\u0179","\u017a","\u017d","\u017e","\u017b","\u017c","\u00de","\u00fe","\u00df","\u0126","\u0127","\u00bf","\u00a1","\u00a2","\u00a3","\u00a4","\u00a5","\u20ac","\u00a6","\u00a7","\u00aa","\u00ac","\u00af","\u00b0","\u00b1","\u00f7","\u2030","\u00bc","\u00bd","\u00be","\u00b9","\u00b2","\u00b3","\u00b5","\u00b6","\u2020","\u2021","\u00b7","\u2022","\u00ba","\u2200","\u2202","\u2203","\u018f","\u0259","\u2205","\u2207","\u2208","\u2209","\u220b","\u220f","\u2211","\u203e","\u2212","\u2217","\u00d7","\u2044","\u221a","\u221d","\u221e","\u2220","\u2227","\u2228","\u2229","\u222a","\u222b","\u2234","\u223c","\u2245","\u2248","\u2260","\u2261","\u2264","\u2265","\u2282","\u2283","\u2284","\u2286","\u2287","\u2295","\u2297","\u22a5","\u22c5","\u25ca","\u2118","\u2111","\u211c","\u2135","\u2660","\u2663","\u2665","\u2666","\u03b1","\u03b2","\u0393","\u03b3","\u0394","\u03b4","\u03b5","\u03b6","\u03b7","\u0398","\u03b8","\u03b9","\u03ba","\u039b","\u03bb","\u03bc","\u039e","\u03be","\u03a0","\u03c0","\u03c1","\u03a3","\u03c3","\u03a4","\u03c4","\u03c5","\u03a6","\u03c6","\u03c7","\u03a8","\u03c8","\u03a9","\u03c9","\u2605","\u2606","\u260e","\u261a","\u261b","\u261c","\u261d","\u261e","\u261f","\u2639","\u263a","\u2714","\u2718","\u201e","\u201c","\u201d","\u201a","\u2018","\u2019","\u00ab","\u00bb","\u2039","\u203a","\u2014","\u2013","\u2026","\u2190","\u2191","\u2192","\u2193","\u2194","\u21d0","\u21d1","\u21d2","\u21d3","\u21d4","\u00a9","\u2122","\u00ae","\u2032","\u2033","[","]","{","}","~","(",")","%","\u00a7","$","#","|","@"],"block":false},{"type":"signature","title":"Ins\u00e9rer une signature","icon":"sig.png","key":"y","block":false},{"type":"insert","title":"nspages","icon":"..\/..\/plugins\/nspages\/images\/tb_nspages.png","insert":""},{"type":"dialog","title":"PageQuery Cheatsheet","icon":"..\/..\/plugins\/pagequery\/images\/pagequery.png","html":"
\npagequery><\/b>  * | .* | exclude ns: ^ |-ns: | include ns: @ | ns: | . | .. | text | regex<\/br>\nfulltext<\/b>  Full-text search of page content<\/br>\nfullregex<\/b>  Search the full page id using regex<\/br>\nsort=column:direction<\/b>  Keys to sort by, in order of sorting<\/br>\n    a, ab, abc<\/b>  By 1st letter, 2-letters, or 3-letters<\/br>\n    name, pagename<\/b>  By page name [not grouped]<\/br>\n    title, heading<\/b>  By page title (or 1st heading) [not grouped]<\/br>\n    id, pageid<\/b>  By full page id, including namespace [not grouped]<\/br>\n    ns<\/b>  By namespace (without page name)<\/br>\n    mdate, cdate<\/b>  By modified\/created dates (full) [not grouped]<\/br>\n    m[year][month][day]<\/b>  By [m]odified [year][month][day]<\/br>\n    c[year][month][day]<\/b>  By [c]reated [year][month][day]s<\/br>\n    creator<\/b>  By page author<\/br>\n    contributor<\/b>  By page contributor(s)\tsort=contributor:asc<\/br>\n    link<\/b>  Links on this page, delimited by spaces<\/br>\n    backlinks<\/b>  Links to this page, delimited by spaces<\/br>\n    :asc|:a<\/b>  Ascending, e.g. a \u2192 z, 1 \u2192 10<\/br>\n    :desc|:d<\/b>  Descending, e.g. z \u2192 a, 10 \u2192 1<\/br>\nfilter=regex|text|date<\/b>  Filter the result list, using regex. =! mean exclude; , between options<\/br>\ngroup<\/b>  Show a group header for each change in sort keys<\/br>\nlimit=number<\/b>  Maximum number of results to return<\/br>\nspelldate<\/b>  Use real month and day names instead of numeric dates<\/br>\ncols=<number><\/b>  Number of columns in displayed list<\/br>\nproper=name|header|both<\/b>  Display page names and\/or namespaces in Proper Case<\/br>\nborder=none|inside|outside|both<\/b>  Show a border around table columns<\/br>\nhidestart<\/b>  Ignore any default start pages in the namespace(s)<\/br>\ndisplay=<text{meta}><\/b>  How to display the page links, using page's metadata via replace strings in {}<\/br>\nsnippet=tooltip|inline|plain|quoted<\/b>  Controls how the page snippet (preview) is displayed<\/br>\n    e.g. snippet=<format,count,extent><\/b>  <\/br>\n    format<\/b>  one of the formats listed above: inline, plain, quoted<\/br>\n    count<\/b>  to show 1st items in list with an preview\tall<\/br>\n    extent<\/b>  can be choice of [c]hars, [w]ords, [l]ines, or [~]<\/br>\nmaxns=<number><\/b>  The number of namespace levels to display.<\/br>\ncase<\/b>  Honour case when sorting, i.e. a..z then A..Z<\/br>\nnatsort<\/b>  Use PHP's natural sorting functions, e.g. 1,2,10,12 rather than 1,10,12,2<\/br>\nunderline<\/b>  Show a faint underline between each link for clarity<\/br>\nlabel=<text><\/b>  A label to be displayed at the top of the PageQuery list<\/br>\nhidemsg<\/b>  Hide any empty result messages<\/br>\nhidejump<\/b>  Hide the \u201cJump To Top\u201d link<\/br>\nshowcount<\/b>  Show the total count of page links at bottom of list<\/br>\nlayout=table|column<\/b>  Choose between table or CSS3 column layout<\/br>\nfontsize=<CSS-Unit><\/b>  Set the base font size for the pagequery list. You can use any CSS size unit<\/br>\nbullet=none|disc|circle|square<\/b>  Bullet style for list items<\/br>\n<\/div>\n","block":false},{"type":"format","title":"","icon":"..\/..\/plugins\/openlayersmap\/toolbar\/map.png","open":"\\n~~ Plugin olmap help.\\n~~ Required in the above tag are values for: id (unique on this page), width, heigth.\\n~~ Also you will want to enter zoomlevel and lat, lon values that make sense for where you want the map to start.\\n\\n~~ Below is an example of a POI, you can add as many as you want. ~~ More examples: http:\/\/dokuwiki.org\/plugin:openlayersmap \\n","sample":"50.0117,5.1287,-90,.8,marker-green.png,Pont de Barbouillons; Daverdisse \\\\ external link: [[http:\/\/test.com|test.com]] \\\\ internal link: [[::start]]\\\\ **DW Formatting** \\n","close":"<\/olmap>\\n"},{"type":"picker","title":"Extension Wrap","icon":"..\/..\/plugins\/wrap\/images\/toolbar\/picker.png","list":[{"type":"format","title":"colonnes","icon":"..\/..\/plugins\/wrap\/images\/toolbar\/column.png","open":"\\n\\n","close":"\\n<\/WRAP>\\n\\n\\n\\n<\/WRAP>\\n<\/WRAP>\\n"},{"type":"format","title":"bloc simple","icon":"..\/..\/plugins\/wrap\/images\/toolbar\/box.png","open":"\\n","close":"\\n<\/WRAP>\\n"},{"type":"format","title":"bloc information","icon":"..\/..\/plugins\/wrap\/images\/note\/16\/info.png","open":"\\n","close":"\\n<\/WRAP>\\n"},{"type":"format","title":"bloc astuce","icon":"..\/..\/plugins\/wrap\/images\/note\/16\/tip.png","open":"\\n","close":"\\n<\/WRAP>\\n"},{"type":"format","title":"bloc important","icon":"..\/..\/plugins\/wrap\/images\/note\/16\/important.png","open":"\\n","close":"\\n<\/WRAP>\\n"},{"type":"format","title":"bloc alerte","icon":"..\/..\/plugins\/wrap\/images\/note\/16\/alert.png","open":"\\n","close":"\\n<\/WRAP>\\n"},{"type":"format","title":"bloc aide","icon":"..\/..\/plugins\/wrap\/images\/note\/16\/help.png","open":"\\n","close":"\\n<\/WRAP>\\n"},{"type":"format","title":"bloc t\u00e9l\u00e9chargement","icon":"..\/..\/plugins\/wrap\/images\/note\/16\/download.png","open":"\\n","close":"\\n<\/WRAP>\\n"},{"type":"format","title":"bloc \u00e0 faire","icon":"..\/..\/plugins\/wrap\/images\/note\/16\/todo.png","open":"\\n","close":"\\n<\/WRAP>\\n"},{"type":"insert","title":"r\u00e9tablir le flux apr\u00e8s un \u00e9l\u00e9ment flottant","icon":"..\/..\/plugins\/wrap\/images\/toolbar\/clear.png","insert":"\\n"},{"type":"format","title":"particuli\u00e8rement important","icon":"..\/..\/plugins\/wrap\/images\/toolbar\/em.png","open":"","close":"<\/wrap>"},{"type":"format","title":"important","icon":"..\/..\/plugins\/wrap\/images\/toolbar\/hi.png","open":"","close":"<\/wrap>"},{"type":"format","title":"peu important","icon":"..\/..\/plugins\/wrap\/images\/toolbar\/lo.png","open":"","close":"<\/wrap>"}]}]; /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h; if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="
a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function ab(){return!0}function bb(){return!1}function cb(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),hb=/^\s+/,ib=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,jb=/<([\w:]+)/,kb=/\s*$/g,rb={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:k.htmlSerialize?[0,"",""]:[1,"X
","
"]},sb=db(y),tb=sb.appendChild(y.createElement("div"));rb.optgroup=rb.option,rb.tbody=rb.tfoot=rb.colgroup=rb.caption=rb.thead,rb.th=rb.td;function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ub(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function vb(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wb(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xb(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Ab(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xb(b).text=a.text,yb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!gb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(tb.innerHTML=a.outerHTML,tb.removeChild(f=tb.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ub(f),h=ub(a),g=0;null!=(e=h[g]);++g)d[g]&&Bb(e,d[g]);if(b)if(c)for(h=h||ub(a),d=d||ub(f),g=0;null!=(e=h[g]);g++)Ab(e,d[g]);else Ab(a,f);return d=ub(f,"script"),d.length>0&&zb(d,!i&&ub(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=db(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(lb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(jb.exec(f)||["",""])[1].toLowerCase(),l=rb[i]||rb._default,h.innerHTML=l[1]+f.replace(ib,"<$1>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&hb.test(f)&&p.push(b.createTextNode(hb.exec(f)[0])),!k.tbody){f="table"!==i||kb.test(f)?""!==l[1]||kb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ub(p,"input"),vb),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ub(o.appendChild(f),"script"),g&&zb(h),c)){e=0;while(f=h[e++])ob.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ub(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&zb(ub(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ub(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fb,""):void 0;if(!("string"!=typeof a||mb.test(a)||!k.htmlSerialize&&gb.test(a)||!k.leadingWhitespace&&hb.test(a)||rb[(jb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ib,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ub(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ub(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&nb.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ub(i,"script"),xb),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ub(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,yb),j=0;f>j;j++)d=g[j],ob.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qb,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Cb,Db={};function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),"none"!==c&&c||(Cb=(Cb||m("").appendTo("body");formDoc=getiframeDocument($iframe);}formDoc.write(""+formInnerHtml+""+settings.popupWindowTitle+"");$form=$(formDoc).find('form');}$form.submit();}setTimeout(checkFileDownloadComplete,settings.checkInterval);function checkFileDownloadComplete(){var cookieValue=settings.cookieValue;if(typeof cookieValue=='string'){cookieValue=cookieValue.toLowerCase();}var lowerCaseCookie=settings.cookieName.toLowerCase()+"="+cookieValue;if(document.cookie.toLowerCase().indexOf(lowerCaseCookie)>-1){internalCallbacks.onSuccess(fileUrl);var cookieData=settings.cookieName+"=; path="+settings.cookiePath+"; expires="+new Date(0).toUTCString()+";";if(settings.cookieDomain)cookieData+=" domain="+settings.cookieDomain+";";document.cookie=cookieData;cleanUp(false);return;}if(downloadWindow||$iframe){try{var formDoc=downloadWindow?downloadWindow.document:getiframeDocument($iframe);if(formDoc&&formDoc.body!==null&&formDoc.body.innerHTML.length){var isFailure=true;if($form&&$form.length){var $contents=$(formDoc.body).contents().first();try{if($contents.length&&$contents[0]===$form[0]){isFailure=false;}}catch(e){if(e&&e.number==-2146828218){isFailure=true;}else{throw e;}}}if(isFailure){setTimeout(function(){internalCallbacks.onFail(formDoc.body.innerHTML,fileUrl);cleanUp(true);},100);return;}}}catch(err){internalCallbacks.onFail('',fileUrl,err);cleanUp(true);return;}}setTimeout(checkFileDownloadComplete,settings.checkInterval);}function getiframeDocument($iframe){var iframeDoc=$iframe[0].contentWindow||$iframe[0].contentDocument;if(iframeDoc.document){iframeDoc=iframeDoc.document;}return iframeDoc;}function cleanUp(isFailure){setTimeout(function(){if(downloadWindow){if(isAndroid){downloadWindow.close();}if(isIos){if(downloadWindow.focus){downloadWindow.focus();if(isFailure){downloadWindow.close();}}}}},0);}function htmlSpecialCharsEntityEncode(str){return str.replace(htmlSpecialCharsRegEx,function(match){return'&'+htmlSpecialCharsPlaceHolders[match];});}var promise=deferred.promise();promise.abort=function(){cleanUp();$iframe.remove();};return promise;}});})(jQuery,this);var bc_nspicker={$picker:null,$entry:null,result:null,timer:null,textArea:null,selected:null,selection:null,init:function($editor){"use strict";var pos=$editor.position();if(bc_nspicker.$picker){return;}bc_nspicker.$picker=jQuery(document.createElement('div')).dialog({autoOpen:false,draggable:true,title:LANG.plugins.bookcreator.namespace_picker,resizable:false}).html('
'+LANG.plugins.bookcreator.select_namespace+' '+''+''+'
'+LANG.plugins.bookcreator.add_subns_too+'
'+'
').parent().attr('id','bc__nspicker').css({'position':'absolute','top':(pos.top+20)+'px','left':(pos.left+80)+'px'}).hide().appendTo('.dokuwiki:first');bc_nspicker.textArea=$editor[0];bc_nspicker.result=jQuery('#bc__nspicker_result')[0];jQuery(bc_nspicker.result).css('position','relative');bc_nspicker.$entry=jQuery('#bc__nspicker_entry');if(JSINFO.namespace){bc_nspicker.$entry.val(JSINFO.namespace+':');}jQuery('#bc__nspicker .ui-dialog-titlebar-close').on('click',bc_nspicker.hide);jQuery('#bc__nspicker_select').on('click',bc_nspicker.selectNamespace_exec);jQuery('#bc__nspicker_cancel').on('click',bc_nspicker.hide);bc_nspicker.$entry.keyup(bc_nspicker.onEntry);jQuery(bc_nspicker.result).on('click','a',bc_nspicker.onResultClick);},onEntry:function(e){"use strict";if(e.keyCode===37||e.keyCode===39){return true;}if(e.keyCode===27){bc_nspicker.hide();e.preventDefault();e.stopPropagation();return false;}if(e.keyCode===38){bc_nspicker.select(bc_nspicker.selected-1);e.preventDefault();e.stopPropagation();return false;}if(e.keyCode===40){bc_nspicker.select(bc_nspicker.selected+1);e.preventDefault();e.stopPropagation();return false;}if(e.keyCode===13){if(bc_nspicker.selected>-1){var $obj=bc_nspicker.$getResult(bc_nspicker.selected);if($obj.length>0){bc_nspicker.resultClick($obj.find('a')[0]);}}else if(bc_nspicker.$entry.val()){bc_nspicker.selectNamespace_exec();}e.preventDefault();e.stopPropagation();return false;}bc_nspicker.autocomplete();},$getResult:function(num){"use strict";return jQuery(bc_nspicker.result).find('div').eq(num);},select:function(num){"use strict";if(num<0){bc_nspicker.deselect();return;}var $obj=bc_nspicker.$getResult(num);if($obj.length===0){return;}bc_nspicker.deselect();$obj.addClass('selected');var childPos=$obj.position().top;var yDiff=childPos+$obj.outerHeight()-jQuery(bc_nspicker.result).innerHeight();if(childPos<0){jQuery(bc_nspicker.result)[0].scrollTop+=childPos;}else if(yDiff>0){jQuery(bc_nspicker.result)[0].scrollTop+=yDiff;}bc_nspicker.selected=num;},deselect:function(){"use strict";if(bc_nspicker.selected>-1){bc_nspicker.$getResult(bc_nspicker.selected).removeClass('selected');}bc_nspicker.selected=-1;},onResultClick:function(e){"use strict";if(!jQuery(this).is('a')){return;}e.stopPropagation();e.preventDefault();bc_nspicker.resultClick(this);return false;},resultClick:function(a){"use strict";if(a.title===''||a.title.substr(a.title.length-1)===':'){bc_nspicker.$entry.val(a.title);bc_nspicker.autocomplete_exec();}},autocomplete:function(){"use strict";if(bc_nspicker.timer!==null){window.clearTimeout(bc_nspicker.timer);bc_nspicker.timer=null;}bc_nspicker.timer=window.setTimeout(bc_nspicker.autocomplete_exec,350);},autocomplete_exec:function(){"use strict";var $res=jQuery(bc_nspicker.result);bc_nspicker.deselect();$res.html('').load(DOKU_BASE+'lib/exe/ajax.php',{call:'linkwiz',q:bc_nspicker.$entry.val()});},show:function(){"use strict";bc_nspicker.selection=DWgetSelection(bc_nspicker.textArea);bc_nspicker.$picker.show();bc_nspicker.$entry.focus();bc_nspicker.autocomplete();var temp=bc_nspicker.$entry.val();bc_nspicker.$entry.val('');bc_nspicker.$entry.val(temp);},hide:function(){"use strict";bc_nspicker.$picker.hide();bc_nspicker.textArea.focus();},toggle:function(){"use strict";if(bc_nspicker.$picker.css('display')==='none'){bc_nspicker.show();}else{bc_nspicker.hide();}},selectNamespace_exec:function(){"use strict";var $recursive=jQuery('#bc__nspicker_recursive');jQuery.post(DOKU_BASE+'lib/exe/ajax.php',{call:'plugin_bookcreator_call',action:'searchPages',ns:bc_nspicker.$entry.val(),r:$recursive.is(':checked'),sectok:jQuery('input[name="sectok"]').val()},bc_nspicker.selectNamespace,'json');},selectNamespace:function(data){"use strict";var content;var pages;var name;pages=0;content=LANG.plugins.bookcreator.added_pages+"\n\n";if(data.hasOwnProperty('pages')){jQuery(data.pages).each(function(index){name=data.pages[index];Bookcreator.selectedpages.addPage(name);content+=name+"\n";pages+=1;});}if(pages===0){content+=LANG.plugins.bookcreator.no_pages_selected+"\n";}BookManager.updateListsFromStorage();window.alert(content);bc_nspicker.hide();}};function Storage(key){this.localStorageKey=key;this._storage=[];}Storage.prototype.isSelected=function(pageid){return this._storage.indexOf(pageid)!==-1;};Storage.prototype.addPage=function(pageid,position){if(typeof position==='undefined'){this._storage.push(pageid);}else{this._storage.splice(position,0,pageid);}this._save();};Storage.prototype.movePage=function(pageid,position){if(!this._deletePage(pageid).length)return;this.addPage(pageid,position);};Storage.prototype.deletePage=function(pageid){this._deletePage(pageid);this._save();};Storage.prototype._deletePage=function(pageid){let pos=this._storage.indexOf(pageid);if(pos===-1)return[];return this._storage.splice(pos,1);};Storage.prototype.clearAll=function(){this._storage=[];this._save();};Storage.prototype.getSelection=function(){return this._storage;};Storage.prototype.setSelection=function(selection){this._storage=selection;this._save();};Storage.prototype.count=function(){return this._storage.length;};Storage.prototype._save=function(){window.localStorage.setItem(this.localStorageKey,JSON.stringify(this._storage));};Storage.prototype.load=function(){let source=window.localStorage.getItem(this.localStorageKey);try{this._storage=JSON.parse(source)||[];}catch(E){this._storage=[];}};function CachedProperty(key){this.localStorageKey=key;}CachedProperty.prototype.set=function(value){window.localStorage.setItem(this.localStorageKey,value);};CachedProperty.prototype.get=function(){return window.localStorage.getItem(this.localStorageKey);};let Bookcreator={selectedpages:new Storage('bookcreator_selectedpages'),isCurrentPageSelected:false,clickAddRemoveButton:function(e){e.preventDefault();Bookcreator.toggleSelectionCurrentPage();Bookcreator.updatePage();},setupUpdateObserver:function(){jQuery(window).on('storage',function(){Bookcreator.init();Bookcreator.updatePage();});},init:function(){this.selectedpages.load();this.isCurrentPageSelected=this.selectedpages.isSelected(JSINFO.id);},toggleSelectionCurrentPage:function(){if(this.isCurrentPageSelected){this.selectedpages.deletePage(JSINFO.id);}else{this.selectedpages.addPage(JSINFO.id);}this.isCurrentPageSelected=this.selectedpages.isSelected(JSINFO.id);},updatePage:function(){let $addtobookBtn=jQuery('.plugin_bookcreator__addtobook'),$bookbar=jQuery('.bookcreator__bookbar');if($addtobookBtn.length){let text=LANG.plugins.bookcreator['btn_'+(this.isCurrentPageSelected?'remove':'add')+'tobook'];let $a=$addtobookBtn.find('a').toggleClass('remove',this.isCurrentPageSelected).attr('title',text).trigger('blur');let $span=$a.children('span');if($span.length){$span.html(text);}else{$a.html(text);}jQuery('a.plugin_bookcreator__addtobook').toggleClass('remove',this.isCurrentPageSelected).attr('title',text).trigger('blur').children('span').html(text);}if(this.isBookbarVisible()){jQuery("#bookcreator__add").toggle(!this.isCurrentPageSelected);jQuery("#bookcreator__remove").toggle(this.isCurrentPageSelected);jQuery("#bookcreator__pages").html(this.selectedpages.count());}$bookbar.toggle(this.isBookbarVisible())},isBookbarVisible:function(){if(!JSINFO.bookcreator.areToolsVisible){return false;}return JSINFO.bookcreator.showBookbar==='always'||JSINFO.bookcreator.showBookbar==='noempty'&&this.selectedpages.count()>0;}};let BookManager={cache:{},booktitle:new CachedProperty('bookcreator_booktitle'),deletedpages:new Storage('bookcreator_deletedpages'),init:function(){this.deletedpages.load();Bookcreator.init();},setupUpdateObserver:function(){jQuery(window).on('storage',function(event){if(event.key===Bookcreator.selectedpages.localStorageKey){BookManager.init();BookManager.updateListsFromStorage();}if(event.key===BookManager.booktitle.localStorageKey){BookManager.fillTitle();}})},updateListsFromStorage:function(){let notcachedpages=jQuery(Bookcreator.selectedpages.getSelection()).not(Object.keys(this.cache)).get();notcachedpages=notcachedpages.concat(jQuery(BookManager.deletedpages.getSelection()).not(Object.keys(this.cache)).get());function processRetrievedPages(pages){if(pages.hasOwnProperty('selection')){jQuery.extend(BookManager.cache,pages.selection);BookManager.updateLists();}}if(notcachedpages.length>0){jQuery.post(DOKU_BASE+'lib/exe/ajax.php',{call:'plugin_bookcreator_call',action:'retrievePageinfo',selection:JSON.stringify(notcachedpages),sectok:jQuery('input[name="sectok"]').val()},processRetrievedPages,'json');}else{this.updateLists();}},updateLists:function(){let $ul_deleted=jQuery('ul.pagelist.deleted'),$ul_selected=jQuery('ul.pagelist.selected'),deletedpages=BookManager.deletedpages.getSelection(),selectedpages=Bookcreator.selectedpages.getSelection();BookManager.refillList($ul_selected,selectedpages);let filtereddeletedpages=jQuery(deletedpages).not(selectedpages).get();BookManager.deletedpages.setSelection(filtereddeletedpages);BookManager.refillList($ul_deleted,filtereddeletedpages);},refillList:function($ul_selection,selection){$ul_selection.empty();let liopen1="
  • "+""+''+""+''+"  ",liclose="
  • ";let i=0,itemsToInsert=[];jQuery.each(selection,function(index,page){if(BookManager.cache[page]){itemsToInsert[i++]=liopen1;itemsToInsert[i++]=page;itemsToInsert[i++]=liopen2;itemsToInsert[i++]=BookManager.cache[page][0];itemsToInsert[i++]=liopen3;itemsToInsert[i++]=BookManager.cache[page][1];itemsToInsert[i++]=liclose;}else{console.log('Not in cache: '+page);}});$ul_selection.append(itemsToInsert.join(''));$ul_selection.sortable('refresh');},getNotdisplayedPages:function(selectionname){let sortedIDs,selection;sortedIDs=jQuery('div.bookcreator__pagelist').find('ul.pagelist.'+selectionname).sortable('toArray');sortedIDs=jQuery.map(sortedIDs,function(id){return id.substr(4);});if(selectionname==='selected'){selection=Bookcreator.selectedpages.getSelection();}else{selection=BookManager.deletedpages.getSelection();}return jQuery(selection).not(sortedIDs).get();},toggleSelectedPage:function(pageid,isAddAction,position){if(isAddAction){Bookcreator.selectedpages.addPage(pageid,position);BookManager.deletedpages.deletePage(pageid);}else{Bookcreator.selectedpages.deletePage(pageid);BookManager.deletedpages.addPage(pageid,position);}},movePage:function(){let $a=jQuery(this),$li=$a.parent(),pageid=$li.attr('id').substr(4);let isAddAction=$li.parent().hasClass('deleted');let listclass=isAddAction?'selected':'deleted';$li.appendTo(jQuery('div.bookcreator__pagelist ul.pagelist.'+listclass));BookManager.toggleSelectedPage(pageid,isAddAction);},receivedFromOtherSelection:function(event,ui){let pageid=ui.item.attr('id').substr(4),isAddAction=ui.item.parent().hasClass('selected'),position=ui.item.index();BookManager.toggleSelectedPage(pageid,isAddAction,position);},startSort:function(event,ui){ui.item.data("startindex",ui.item.index());},updateSort:function(event,ui){isItemSortedWithinList=!ui.sender;},stopSort:function(event,ui){let isAddAction=ui.item.parent().hasClass('selected'),pageid=ui.item.attr('id').substr(4),startindex=ui.item.data("startindex"),endindex=ui.item.index();if(isItemSortedWithinList){if(startindex!==endindex){if(isAddAction){Bookcreator.selectedpages.movePage(pageid,endindex);}else{BookManager.deletedpages.movePage(pageid,endindex);}}isItemSortedWithinList=false;}},clearSelections:function(){BookManager.deletedpages.clearAll();jQuery('ul.pagelist.deleted').empty();Bookcreator.selectedpages.clearAll();jQuery('ul.pagelist.selected').empty();},handleSavedselectionAction:function(){let $this=jQuery(this),action=($this.hasClass('delete')?'delete':'load'),pageid=$this.parent().data('pageId');let msg,comfirmed=false;if(action==="delete"){msg=LANG.plugins.bookcreator.confirmdel;}else{if(Bookcreator.selectedpages.count()===0){comfirmed=true;}msg=LANG.plugins.bookcreator.confirmload;}if(!comfirmed){comfirmed=confirm(msg);}if(comfirmed){function processResponse(data){let $msg=$this.parent().parent().parent().find('.message');if(data.hasOwnProperty('selection')){BookManager.clearSelections();Bookcreator.selectedpages.setSelection(data.selection);BookManager.updateListsFromStorage();jQuery('input[name="book_title"]').val(data.title).trigger('change');}if(data.hasOwnProperty('deletedpage')){jQuery('.bkctrsavsel__'+data.deletedpage).remove();}BookManager.setMessage($msg,data);}jQuery.post(DOKU_BASE+'lib/exe/ajax.php',{call:'plugin_bookcreator_call',action:(action==='load'?'loadSavedSelection':'deleteSavedSelection'),savedselectionname:pageid,sectok:jQuery('input[name="sectok"]').val()},processResponse,'json');}},saveSelection:function($this){let $fieldset=$this.parent(),$title=$fieldset.find('input[name="bookcreator_title"]'),title=$title.val();function processResponse(data){if(data.hasOwnProperty('item')){jQuery('.bookcreator__selections__list').find('ul').prepend(data.item);$title.val('');}let $msg=$fieldset.find('.message');BookManager.setMessage($msg,data);}jQuery.post(DOKU_BASE+'lib/exe/ajax.php',{call:'plugin_bookcreator_call',action:'saveSelection',savedselectionname:title,selection:JSON.stringify(Bookcreator.selectedpages.getSelection()),sectok:jQuery('input[name="sectok"]').val()},processResponse,'json');},setMessage:function($msg,data){let msg=false,state;function setMsg($msg,msg,state){$msg.html(msg).toggleClass('error',state===-1).toggleClass('success',state===1);}if(data.hasOwnProperty('error')){msg=data.error;state=-1;}else if(data.hasOwnProperty('success')){msg=data.success;state=1;}if(msg){setMsg($msg,msg,state);setTimeout(function(){setMsg($msg,'',0);},1000*10);}},fillTitle:function(){let title=BookManager.booktitle.get();jQuery('input[name="book_title"]').val(title);},downloadSelection:function(event){let $this=jQuery(this),do_action=$this.find('select[name="do"]').val();if(do_action==='export_html'||do_action==='export_text'){$this.append('');}else{let formdata=$this.serializeArray();formdata.push({name:'selection',value:JSON.stringify(Bookcreator.selectedpages.getSelection())});let $preparingFileModal=jQuery("#preparing-file-modal");$preparingFileModal.dialog({modal:true});jQuery.fileDownload(window.location.href,{successCallback:function(url){$preparingFileModal.dialog('close');},failCallback:function(responseHtml,url){$preparingFileModal.dialog('close');jQuery("#error-modal").dialog({modal:true}).find('.downloadresponse').html(responseHtml);},httpMethod:"POST",data:formdata});event.preventDefault();}},htmlSpecialCharsEntityEncode:function(str){let htmlSpecialCharsRegEx=/[<>&\r\n"']/gm;let htmlSpecialCharsPlaceHolders={'<':'lt;','>':'gt;','&':'amp;','\r':"#13;",'\n':"#10;",'"':'quot;',"'":'#39;'};return str.replace(htmlSpecialCharsRegEx,function(match){return'&'+htmlSpecialCharsPlaceHolders[match];});}};jQuery(function(){if(JSINFO.bookcreator.areToolsVisible){Bookcreator.init();Bookcreator.setupUpdateObserver();jQuery('a.bookcreator__tglPgSelection').on('click',Bookcreator.clickAddRemoveButton);jQuery('.plugin_bookcreator__addtobook').on('click',Bookcreator.clickAddRemoveButton);Bookcreator.updatePage();}else{jQuery('.plugin_bookcreator__addtobook').hide();}let $pagelist=jQuery('div.bookcreator__pagelist');if($pagelist.length){BookManager.init();$pagelist.find('ul').on('click','a.action',BookManager.movePage);isItemSortedWithinList=false;$pagelist.find('ul.pagelist.selected,ul.pagelist.deleted').sortable({connectWith:"div.bookcreator__pagelist ul.pagelist",receive:BookManager.receivedFromOtherSelection,start:BookManager.startSort,stop:BookManager.stopSort,update:BookManager.updateSort,distance:5});jQuery('form.clearactive button').on('click',function(event){event.preventDefault();BookManager.clearSelections();});bc_nspicker.init(jQuery('#dokuwiki__content'));jQuery('form.selectnamespace button').on('click',function(event){bc_nspicker.val=null;bc_nspicker.toggle();event.preventDefault();return'bc__nspicker';});BookManager.updateListsFromStorage();BookManager.fillTitle();BookManager.setupUpdateObserver();jQuery('form.saveselection button').on('click',function(event){event.preventDefault();BookManager.saveSelection(jQuery(this));});jQuery('input[name="book_title"]').on('change',function(){let value=jQuery(this).val();BookManager.booktitle.set(value);});jQuery('form.downloadselection').on('submit',BookManager.downloadSelection);}jQuery('.bookcreator__selections__list').find('ul').on('click','a.action',BookManager.handleSavedselectionAction);});;(function($){var plugin={};var defaults={mode:'horizontal',slideSelector:'',infiniteLoop:true,hideControlOnEnd:false,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:false,captions:false,ticker:false,tickerHover:false,adaptiveHeight:false,adaptiveHeightSpeed:500,video:false,useCSS:true,preloadImages:'visible',responsive:true,touchEnabled:true,swipeThreshold:50,oneToOneTouch:true,preventDefaultSwipeX:true,preventDefaultSwipeY:false,pager:true,pagerType:'full',pagerShortSeparator:' / ',pagerSelector:null,buildPager:null,pagerCustom:null,controls:true,nextText:'Next',prevText:'Prev',nextSelector:null,prevSelector:null,autoControls:false,startText:'Start',stopText:'Stop',autoControlsCombine:false,autoControlsSelector:null,auto:false,pause:4000,autoStart:true,autoDirection:'next',autoHover:false,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){}};$.fn.bxSlider=function(options){if(this.length==0)return this;if(this.length>1){this.each(function(){$(this).bxSlider(options)});return this;}var slider={};var el=this;plugin.el=this;var windowWidth=$(window).width();var windowHeight=$(window).height();var init=function(){slider.settings=$.extend({},defaults,options);slider.settings.slideWidth=parseInt(slider.settings.slideWidth);slider.children=el.children(slider.settings.slideSelector);if(slider.children.length1||slider.settings.maxSlides>1;if(slider.carousel)slider.settings.preloadImages='all';slider.minThreshold=(slider.settings.minSlides*slider.settings.slideWidth)+((slider.settings.minSlides-1)*slider.settings.slideMargin);slider.maxThreshold=(slider.settings.maxSlides*slider.settings.slideWidth)+((slider.settings.maxSlides-1)*slider.settings.slideMargin);slider.working=false;slider.controls={};slider.interval=null;slider.animProp=slider.settings.mode=='vertical'?'top':'left';slider.usingCSS=slider.settings.useCSS&&slider.settings.mode!='fade'&&(function(){var div=document.createElement('div');var props=['WebkitPerspective','MozPerspective','OPerspective','msPerspective'];for(var i in props){if(div.style[props[i]]!==undefined){slider.cssPrefix=props[i].replace('Perspective','').toLowerCase();slider.animProp='-'+slider.cssPrefix+'-transform';return true;}}return false;}());if(slider.settings.mode=='vertical')slider.settings.maxSlides=slider.settings.minSlides;el.data("origStyle",el.attr("style"));el.children(slider.settings.slideSelector).each(function(){$(this).data("origStyle",$(this).attr("style"));});setup();};var setup=function(){el.wrap('
    ');slider.viewport=el.parent();slider.loader=$('
    ');slider.viewport.prepend(slider.loader);el.css({width:slider.settings.mode=='horizontal'?(slider.children.length*100+215)+'%':'auto',position:'relative'});if(slider.usingCSS&&slider.settings.easing){el.css('-'+slider.cssPrefix+'-transition-timing-function',slider.settings.easing);}else if(!slider.settings.easing){slider.settings.easing='swing';}var slidesShowing=getNumberSlidesShowing();slider.viewport.css({width:'100%',overflow:'hidden',position:'relative'});slider.viewport.parent().css({maxWidth:getViewportMaxWidth()});if(!slider.settings.pager){slider.viewport.parent().css({margin:'0 auto 0px'});}slider.children.css({'float':slider.settings.mode=='horizontal'?'left':'none',listStyle:'none',position:'relative'});slider.children.css('width',getSlideWidth());if(slider.settings.mode=='horizontal'&&slider.settings.slideMargin>0)slider.children.css('marginRight',slider.settings.slideMargin);if(slider.settings.mode=='vertical'&&slider.settings.slideMargin>0)slider.children.css('marginBottom',slider.settings.slideMargin);if(slider.settings.mode=='fade'){slider.children.css({position:'absolute',zIndex:0,display:'none'});slider.children.eq(slider.settings.startSlide).css({zIndex:50,display:'block'});}slider.controls.el=$('
    ');if(slider.settings.captions)appendCaptions();slider.active.last=slider.settings.startSlide==getPagerQty()-1;if(slider.settings.video)el.fitVids();var preloadSelector=slider.children.eq(slider.settings.startSlide);if(slider.settings.preloadImages=="all")preloadSelector=slider.children;if(!slider.settings.ticker){if(slider.settings.pager)appendPager();if(slider.settings.controls)appendControls();if(slider.settings.auto&&slider.settings.autoControls)appendControlsAuto();if(slider.settings.controls||slider.settings.autoControls||slider.settings.pager)slider.viewport.after(slider.controls.el);}else{slider.settings.pager=false;}loadElements(preloadSelector,start);};var loadElements=function(selector,callback){var total=selector.find('img, iframe').length;if(total==0){callback();return;}var count=0;var checkIfAllLoaded=function(){if(++count==total)callback();};selector.find('img, iframe').each(function(){var el=$(this);if(el.is('img')){var img=new Image(),loaded=false;$(img).on('load',function(){if(loaded)return;loaded=true;setTimeout(checkIfAllLoaded,0);});img.src=el.attr('src');setTimeout(function(){if(img.width&&!loaded){loaded=true;setTimeout(checkIfAllLoaded,0);}},0);return;}el.on('load',function(){setTimeout(checkIfAllLoaded,0);});});};var start=function(){if(slider.settings.infiniteLoop&&slider.settings.mode!='fade'&&!slider.settings.ticker){var slice=slider.settings.mode=='vertical'?slider.settings.minSlides:slider.settings.maxSlides;var sliceAppend=slider.children.slice(0,slice).clone().addClass('bx-clone');var slicePrepend=slider.children.slice(-slice).clone().addClass('bx-clone');el.append(sliceAppend).prepend(slicePrepend);}slider.loader.remove();setSlidePosition();if(slider.settings.mode=='vertical')slider.settings.adaptiveHeight=true;slider.viewport.height(getViewportHeight());el.redrawSlider();slider.settings.onSliderLoad(slider.active.index);slider.initialized=true;if(slider.settings.responsive)$(window).bind('resize',resizeWindow);if(slider.settings.auto&&slider.settings.autoStart&&slider.children.length>1)initAuto();if(slider.settings.ticker)initTicker();if(slider.settings.pager)updatePagerActive(slider.settings.startSlide);if(slider.settings.controls)updateDirectionControls();if(slider.settings.touchEnabled&&!slider.settings.ticker)initTouch();};var getViewportHeight=function(){var height=0;var children=$();if(slider.settings.mode!='vertical'&&!slider.settings.adaptiveHeight){children=slider.children;}else{if(!slider.carousel){children=slider.children.eq(slider.active.index);}else{var currentIndex=slider.settings.moveSlides==1?slider.active.index:slider.active.index*getMoveBy();children=slider.children.eq(currentIndex);for(i=1;i<=slider.settings.maxSlides-1;i++){if(currentIndex+i>=slider.children.length){children=children.add(slider.children.eq(i-1));}else{children=children.add(slider.children.eq(currentIndex+i));}}}}if(slider.settings.mode=='vertical'){children.each(function(index){height+=$(this).outerHeight();});if(slider.settings.slideMargin>0){height+=slider.settings.slideMargin*(slider.settings.minSlides-1);}}else{height=Math.max.apply(Math,children.map(function(){return $(this).outerHeight(false);}).get());}return height;};var getViewportMaxWidth=function(){var width='100%';if(slider.settings.slideWidth>0){if(slider.settings.mode=='horizontal'){width=(slider.settings.maxSlides*slider.settings.slideWidth)+((slider.settings.maxSlides-1)*slider.settings.slideMargin);}else{width=slider.settings.slideWidth;}}return width;};var getSlideWidth=function(){var newElWidth=slider.settings.slideWidth;var wrapWidth=slider.viewport.width();if(slider.settings.slideWidth==0||(slider.settings.slideWidth>wrapWidth&&!slider.carousel)||slider.settings.mode=='vertical'){newElWidth=wrapWidth;}else if(slider.settings.maxSlides>1&&slider.settings.mode=='horizontal'){if(wrapWidth>slider.maxThreshold){}else if(wrapWidth0){if(slider.viewport.width()slider.maxThreshold){slidesShowing=slider.settings.maxSlides;}else{var childWidth=slider.children.first().width();slidesShowing=Math.floor(slider.viewport.width()/childWidth);}}else if(slider.settings.mode=='vertical'){slidesShowing=slider.settings.minSlides;}return slidesShowing;};var getPagerQty=function(){var pagerQty=0;if(slider.settings.moveSlides>0){if(slider.settings.infiniteLoop){pagerQty=slider.children.length/getMoveBy();}else{var breakPoint=0;var counter=0;while(breakPoint0&&slider.settings.moveSlides<=getNumberSlidesShowing()){return slider.settings.moveSlides;}return getNumberSlidesShowing();};var setSlidePosition=function(){if(slider.children.length>slider.settings.maxSlides&&slider.active.last&&!slider.settings.infiniteLoop){if(slider.settings.mode=='horizontal'){var lastChild=slider.children.last();var position=lastChild.position();setPositionProperty(-(position.left-(slider.viewport.width()-lastChild.width())),'reset',0);}else if(slider.settings.mode=='vertical'){var lastShowingIndex=slider.children.length-slider.settings.minSlides;var position=slider.children.eq(lastShowingIndex).position();setPositionProperty(-position.top,'reset',0);}}else{var position=slider.children.eq(slider.active.index*getMoveBy()).position();if(slider.active.index==getPagerQty()-1)slider.active.last=true;if(position!=undefined){if(slider.settings.mode=='horizontal')setPositionProperty(-position.left,'reset',0);else if(slider.settings.mode=='vertical')setPositionProperty(-position.top,'reset',0);}}};var setPositionProperty=function(value,type,duration,params){if(slider.usingCSS){var propValue=slider.settings.mode=='vertical'?'translate3d(0, '+value+'px, 0)':'translate3d('+value+'px, 0, 0)';el.css('-'+slider.cssPrefix+'-transition-duration',duration/1000+'s');if(type=='slide'){el.css(slider.animProp,propValue);el.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',function(){el.unbind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');updateAfterSlideTransition();});}else if(type=='reset'){el.css(slider.animProp,propValue);}else if(type=='ticker'){el.css('-'+slider.cssPrefix+'-transition-timing-function','linear');el.css(slider.animProp,propValue);el.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',function(){el.unbind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');setPositionProperty(params['resetValue'],'reset',0);tickerLoop();});}}else{var animateObj={};animateObj[slider.animProp]=value;if(type=='slide'){el.animate(animateObj,duration,slider.settings.easing,function(){updateAfterSlideTransition();});}else if(type=='reset'){el.css(slider.animProp,value)}else if(type=='ticker'){el.animate(animateObj,speed,'linear',function(){setPositionProperty(params['resetValue'],'reset',0);tickerLoop();});}}};var populatePager=function(){var pagerHtml='';var pagerQty=getPagerQty();if(pagerQty<=1)return;for(var i=0;i'+linkContent+'
    ';};slider.pagerEl.html(pagerHtml);};var appendPager=function(){if(!slider.settings.pagerCustom){slider.pagerEl=$('
    ');if(slider.settings.pagerSelector){$(slider.settings.pagerSelector).html(slider.pagerEl);}else{slider.controls.el.addClass('bx-has-pager').append(slider.pagerEl);}populatePager();}else{slider.pagerEl=$(slider.settings.pagerCustom);}slider.pagerEl.delegate('a','click',clickPagerBind);};var appendControls=function(){slider.controls.next=$(''+slider.settings.nextText+'');slider.controls.prev=$(''+slider.settings.prevText+'');slider.controls.next.bind('click',clickNextBind);slider.controls.prev.bind('click',clickPrevBind);if(slider.settings.nextSelector){$(slider.settings.nextSelector).append(slider.controls.next);}if(slider.settings.prevSelector){$(slider.settings.prevSelector).append(slider.controls.prev);}if(!slider.settings.nextSelector&&!slider.settings.prevSelector){slider.controls.directionEl=$('
    ');slider.controls.directionEl.append(slider.controls.prev).append(slider.controls.next);slider.controls.el.addClass('bx-has-controls-direction').append(slider.controls.directionEl);}};var appendControlsAuto=function(){slider.controls.start=$('');slider.controls.stop=$('');slider.controls.autoEl=$('
    ');slider.controls.autoEl.delegate('.bx-start','click',clickStartBind);slider.controls.autoEl.delegate('.bx-stop','click',clickStopBind);if(slider.settings.autoControlsCombine){slider.controls.autoEl.append(slider.controls.start);}else{slider.controls.autoEl.append(slider.controls.start).append(slider.controls.stop);}if(slider.settings.autoControlsSelector){$(slider.settings.autoControlsSelector).html(slider.controls.autoEl);}else{slider.controls.el.addClass('bx-has-controls-auto').append(slider.controls.autoEl);}updateAutoControls(slider.settings.autoStart?'stop':'start');};var appendCaptions=function(){slider.children.each(function(index){var title=$(this).find('img:first').attr('title');if(title!=undefined&&(''+title).length){$(this).append('
    '+title+'
    ');}});};var clickNextBind=function(e){if(slider.settings.auto)el.stopAuto();el.goToNextSlide();e.preventDefault();};var clickPrevBind=function(e){if(slider.settings.auto)el.stopAuto();el.goToPrevSlide();e.preventDefault();};var clickStartBind=function(e){el.startAuto();e.preventDefault();};var clickStopBind=function(e){el.stopAuto();e.preventDefault();};var clickPagerBind=function(e){if(slider.settings.auto)el.stopAuto();var pagerLink=$(e.currentTarget);var pagerIndex=parseInt(pagerLink.attr('data-slide-index'));if(pagerIndex!=slider.active.index)el.goToSlide(pagerIndex);e.preventDefault();};var updatePagerActive=function(slideIndex){var len=slider.children.length;if(slider.settings.pagerType=='short'){if(slider.settings.maxSlides>1){len=Math.ceil(slider.children.length/slider.settings.maxSlides);}slider.pagerEl.html((slideIndex+1)+slider.settings.pagerShortSeparator+len);return;}slider.pagerEl.find('a').removeClass('active');slider.pagerEl.each(function(i,el){$(el).find('a').eq(slideIndex).addClass('active');});};var updateAfterSlideTransition=function(){if(slider.settings.infiniteLoop){var position='';if(slider.active.index==0){position=slider.children.eq(0).position();}else if(slider.active.index==getPagerQty()-1&&slider.carousel){position=slider.children.eq((getPagerQty()-1)*getMoveBy()).position();}else if(slider.active.index==slider.children.length-1){position=slider.children.eq(slider.children.length-1).position();}if(slider.settings.mode=='horizontal'){setPositionProperty(-position.left,'reset',0);;}else if(slider.settings.mode=='vertical'){setPositionProperty(-position.top,'reset',0);;}}slider.working=false;slider.settings.onSlideAfter(slider.children.eq(slider.active.index),slider.oldIndex,slider.active.index);};var updateAutoControls=function(state){if(slider.settings.autoControlsCombine){slider.controls.autoEl.html(slider.controls[state]);}else{slider.controls.autoEl.find('a').removeClass('active');slider.controls.autoEl.find('a:not(.bx-'+state+')').addClass('active');}};var updateDirectionControls=function(){if(getPagerQty()==1){slider.controls.prev.addClass('disabled');slider.controls.next.addClass('disabled');}else if(!slider.settings.infiniteLoop&&slider.settings.hideControlOnEnd){if(slider.active.index==0){slider.controls.prev.addClass('disabled');slider.controls.next.removeClass('disabled');}else if(slider.active.index==getPagerQty()-1){slider.controls.next.addClass('disabled');slider.controls.prev.removeClass('disabled');}else{slider.controls.prev.removeClass('disabled');slider.controls.next.removeClass('disabled');}}};var initAuto=function(){if(slider.settings.autoDelay>0){var timeout=setTimeout(el.startAuto,slider.settings.autoDelay);}else{el.startAuto();}if(slider.settings.autoHover){el.hover(function(){if(slider.interval){el.stopAuto(true);slider.autoPaused=true;}},function(){if(slider.autoPaused){el.startAuto(true);slider.autoPaused=null;}});}};var initTicker=function(){var startPosition=0;if(slider.settings.autoDirection=='next'){el.append(slider.children.clone().addClass('bx-clone'));}else{el.prepend(slider.children.clone().addClass('bx-clone'));var position=slider.children.first().position();startPosition=slider.settings.mode=='horizontal'?-position.left:-position.top;}setPositionProperty(startPosition,'reset',0);slider.settings.pager=false;slider.settings.controls=false;slider.settings.autoControls=false;if(slider.settings.tickerHover&&!slider.usingCSS){slider.viewport.hover(function(){el.stop();},function(){var totalDimens=0;slider.children.each(function(index){totalDimens+=slider.settings.mode=='horizontal'?$(this).outerWidth(true):$(this).outerHeight(true);});var ratio=slider.settings.speed/totalDimens;var property=slider.settings.mode=='horizontal'?'left':'top';var newSpeed=ratio*(totalDimens-(Math.abs(parseInt(el.css(property)))));tickerLoop(newSpeed);});}tickerLoop();};var tickerLoop=function(resumeSpeed){speed=resumeSpeed?resumeSpeed:slider.settings.speed;var position={left:0,top:0};var reset={left:0,top:0};if(slider.settings.autoDirection=='next'){position=el.find('.bx-clone').first().position();}else{reset=slider.children.first().position();}var animateProperty=slider.settings.mode=='horizontal'?-position.left:-position.top;var resetValue=slider.settings.mode=='horizontal'?-reset.left:-reset.top;var params={resetValue:resetValue};setPositionProperty(animateProperty,'ticker',speed,params);};var initTouch=function(){slider.touch={start:{x:0,y:0},end:{x:0,y:0}};slider.viewport.bind('touchstart',onTouchStart);};var onTouchStart=function(e){if(slider.working){e.preventDefault();}else{slider.touch.originalPos=el.position();var orig=e.originalEvent;slider.touch.start.x=orig.changedTouches[0].pageX;slider.touch.start.y=orig.changedTouches[0].pageY;slider.viewport.bind('touchmove',onTouchMove);slider.viewport.bind('touchend',onTouchEnd);}};var onTouchMove=function(e){var orig=e.originalEvent;var xMovement=Math.abs(orig.changedTouches[0].pageX-slider.touch.start.x);var yMovement=Math.abs(orig.changedTouches[0].pageY-slider.touch.start.y);if((xMovement*3)>yMovement&&slider.settings.preventDefaultSwipeX){e.preventDefault();}else if((yMovement*3)>xMovement&&slider.settings.preventDefaultSwipeY){e.preventDefault();}if(slider.settings.mode!='fade'&&slider.settings.oneToOneTouch){var value=0;if(slider.settings.mode=='horizontal'){var change=orig.changedTouches[0].pageX-slider.touch.start.x;value=slider.touch.originalPos.left+change;}else{var change=orig.changedTouches[0].pageY-slider.touch.start.y;value=slider.touch.originalPos.top+change;}setPositionProperty(value,'reset',0);}};var onTouchEnd=function(e){slider.viewport.unbind('touchmove',onTouchMove);var orig=e.originalEvent;var value=0;slider.touch.end.x=orig.changedTouches[0].pageX;slider.touch.end.y=orig.changedTouches[0].pageY;if(slider.settings.mode=='fade'){var distance=Math.abs(slider.touch.start.x-slider.touch.end.x);if(distance>=slider.settings.swipeThreshold){slider.touch.start.x>slider.touch.end.x?el.goToNextSlide():el.goToPrevSlide();el.stopAuto();}}else{var distance=0;if(slider.settings.mode=='horizontal'){distance=slider.touch.end.x-slider.touch.start.x;value=slider.touch.originalPos.left;}else{distance=slider.touch.end.y-slider.touch.start.y;value=slider.touch.originalPos.top;}if(!slider.settings.infiniteLoop&&((slider.active.index==0&&distance>0)||(slider.active.last&&distance<0))){setPositionProperty(value,'reset',200);}else{if(Math.abs(distance)>=slider.settings.swipeThreshold){distance<0?el.goToNextSlide():el.goToPrevSlide();el.stopAuto();}else{setPositionProperty(value,'reset',200);}}}slider.viewport.unbind('touchend',onTouchEnd);};var resizeWindow=function(e){var windowWidthNew=$(window).width();var windowHeightNew=$(window).height();if(windowWidth!=windowWidthNew||windowHeight!=windowHeightNew){windowWidth=windowWidthNew;windowHeight=windowHeightNew;el.redrawSlider();}};el.goToSlide=function(slideIndex,direction){if(slider.working||slider.active.index==slideIndex)return;slider.working=true;slider.oldIndex=slider.active.index;if(slideIndex<0){slider.active.index=getPagerQty()-1;}else if(slideIndex>=getPagerQty()){slider.active.index=0;}else{slider.active.index=slideIndex;}slider.settings.onSlideBefore(slider.children.eq(slider.active.index),slider.oldIndex,slider.active.index);if(direction=='next'){slider.settings.onSlideNext(slider.children.eq(slider.active.index),slider.oldIndex,slider.active.index);}else if(direction=='prev'){slider.settings.onSlidePrev(slider.children.eq(slider.active.index),slider.oldIndex,slider.active.index);}slider.active.last=slider.active.index>=getPagerQty()-1;if(slider.settings.pager)updatePagerActive(slider.active.index);if(slider.settings.controls)updateDirectionControls();if(slider.settings.mode=='fade'){if(slider.settings.adaptiveHeight&&slider.viewport.height()!=getViewportHeight()){slider.viewport.animate({height:getViewportHeight()},slider.settings.adaptiveHeightSpeed);}slider.children.filter(':visible').fadeOut(slider.settings.speed).css({zIndex:0});slider.children.eq(slider.active.index).css('zIndex',51).fadeIn(slider.settings.speed,function(){$(this).css('zIndex',50);updateAfterSlideTransition();});}else{if(slider.settings.adaptiveHeight&&slider.viewport.height()!=getViewportHeight()){slider.viewport.animate({height:getViewportHeight()},slider.settings.adaptiveHeightSpeed);}var moveBy=0;var position={left:0,top:0};if(!slider.settings.infiniteLoop&&slider.carousel&&slider.active.last){if(slider.settings.mode=='horizontal'){var lastChild=slider.children.eq(slider.children.length-1);position=lastChild.position();moveBy=slider.viewport.width()-lastChild.outerWidth();}else{var lastShowingIndex=slider.children.length-slider.settings.minSlides;position=slider.children.eq(lastShowingIndex).position();}}else if(slider.carousel&&slider.active.last&&direction=='prev'){var eq=slider.settings.moveSlides==1?slider.settings.maxSlides-getMoveBy():((getPagerQty()-1)*getMoveBy())-(slider.children.length-slider.settings.maxSlides);var lastChild=el.children('.bx-clone').eq(eq);position=lastChild.position();}else if(direction=='next'&&slider.active.index==0){position=el.find('> .bx-clone').eq(slider.settings.maxSlides).position();slider.active.last=false;}else if(slideIndex>=0){var requestEl=slideIndex*getMoveBy();position=slider.children.eq(requestEl).position();}if("undefined"!==typeof(position)){var value=slider.settings.mode=='horizontal'?-(position.left-moveBy):-position.top;setPositionProperty(value,'slide',slider.settings.speed);}}};el.goToNextSlide=function(){if(!slider.settings.infiniteLoop&&slider.active.last)return;var pagerIndex=parseInt(slider.active.index)+1;el.goToSlide(pagerIndex,'next');};el.goToPrevSlide=function(){if(!slider.settings.infiniteLoop&&slider.active.index==0)return;var pagerIndex=parseInt(slider.active.index)-1;el.goToSlide(pagerIndex,'prev');};el.startAuto=function(preventControlUpdate){if(slider.interval)return;slider.interval=setInterval(function(){slider.settings.autoDirection=='next'?el.goToNextSlide():el.goToPrevSlide();},slider.settings.pause);if(slider.settings.autoControls&&preventControlUpdate!=true)updateAutoControls('stop');};el.stopAuto=function(preventControlUpdate){if(!slider.interval)return;clearInterval(slider.interval);slider.interval=null;if(slider.settings.autoControls&&preventControlUpdate!=true)updateAutoControls('start');};el.getCurrentSlide=function(){return slider.active.index;};el.getSlideCount=function(){return slider.children.length;};el.redrawSlider=function(){slider.children.add(el.find('.bx-clone')).outerWidth(getSlideWidth());slider.viewport.css('height',getViewportHeight());if(!slider.settings.ticker)setSlidePosition();if(slider.active.last)slider.active.index=getPagerQty()-1;if(slider.active.index>=getPagerQty())slider.active.last=true;if(slider.settings.pager&&!slider.settings.pagerCustom){populatePager();updatePagerActive(slider.active.index);}};el.destroySlider=function(){if(!slider.initialized)return;slider.initialized=false;$('.bx-clone',this).remove();slider.children.each(function(){$(this).data("origStyle")!=undefined?$(this).attr("style",$(this).data("origStyle")):$(this).removeAttr('style');});$(this).data("origStyle")!=undefined?this.attr("style",$(this).data("origStyle")):$(this).removeAttr('style');$(this).unwrap().unwrap();if(slider.controls.el)slider.controls.el.remove();if(slider.controls.next)slider.controls.next.remove();if(slider.controls.prev)slider.controls.prev.remove();if(slider.pagerEl)slider.pagerEl.remove();$('.bx-caption',this).remove();if(slider.controls.autoEl)slider.controls.autoEl.remove();clearInterval(slider.interval);if(slider.settings.responsive)$(window).unbind('resize',resizeWindow);};el.reloadSlider=function(settings){if(settings!=undefined)options=settings;el.destroySlider();init();};init();return this;}})(jQuery);jQuery(function(){jQuery('ul.plugin_slider').bxSlider({auto:true,autoHover:true});});function tb_dialog(btn,props,edid){var content=props['html'];jQuery(content).dialog({autoOpen:false,modal:false,width:475,height:295}).dialog("open");return false;}jQuery(function(){'use strict';jQuery('li.open, li.close').find('> div.li').each(function(index,element){var link=jQuery(element).find('a').attr('href');var $arrowSpan=jQuery('').click(function(event){window.location=link;});$arrowSpan.addClass('arrowUnderlay');jQuery(element).append($arrowSpan);});});var syntax_plugin_code=function(){var _cH=' codeHidden',_cS=' codeShown',_reH=/\s*\bcodeHidden\b/gi,_reS=/\s*\bcodeShown\b/gi,_Divs=function(){var d,e,l,r=[],re=/\bcode\b/i;try{if((d=window.document.getElementsByTagName('div'))&&(l=d.length)){do{if((e=d[--l])&&(e.className)&&re.test(e.className)){r[r.length]=e;}}while(l);}}catch(X){}return r;},_Ps=function(){var d=_Divs(),e,fc,fcn,l,lc,lcn,p='p',pf='pre',r=[];_Divs=0;if((l=d.length)){try{do{if((e=d[--l])&&(fc=e.firstChild)&&(fcn=fc.tagName.toLowerCase())&&(lc=e.lastChild)&&(lcn=lc.tagName.toLowerCase())){if((pf===fcn)&&(p===lcn)){lc._PRE=fc;r[r.length]=lc;}else if((pf===lcn)&&(p===fcn)){fc._PRE=lc;r[r.length]=fc;}}d.length=l;}while(l);}catch(X){}}return r;},_r;function _sw(O,R2d,C2a){R2d.lastIndex=0;if(R2d.test(O.className)){R2d.lastIndex=0;O.className=(C2a)?O.className.replace(R2d,C2a):O.className.replace(R2d,'');}else if(C2a){O.className+=C2a;}R2d.lastIndex=0;}function _t(E){if((E=E||window.event)){E.cancelBubble=true;E.returnValue=false;}if(this.className){if(_reH.test(this.className)){_sw(this._PRE,_reH,_cS);_sw(this,_reH,_cS);}else{_sw(this,_reS,_cH);_sw(this._PRE,_reS,_cH);}}else{this.className=this._PRE.className=_cH;}return false;}function ini(){if(!_Ps){return;}var d=_Ps(),l=d.length,p,re=/\s*\bHideOnInit\b/ig;_Ps=0;while(l){if((p=d[--l])&&(p._PRE)){if(re.test(p.className)){re.lastIndex=0;p._PRE.className+=_cH;p.className=p.className.replace(re,_cH);}else{p._PRE.className+=_cS;p.className+=_cS;}p.onclick=_t;re.lastIndex=0;}}}if('undefined'!==typeof(window.addEvent)){try{window.addEvent(window,'load',ini);}catch(X){window.setTimeout(ini,512);}}else{window.setTimeout(ini,512);}return _r;}();var selectControl;function onFeatureSelect(feature){var selectedFeature=feature;var pPos=selectedFeature.geometry.getBounds().getCenterLonLat();if(selectedFeature.geometry.CLASS_NAME==="OpenLayers.Geometry.LineString"){try{pPos=feature.layer.map .getLonLatFromViewPortPx(this.handlers.feature.evt.xy);}catch(anErr){OpenLayers.Console .warn("unable to get event position; reverting to boundingbox center.");pPos=selectedFeature.geometry.getBounds().getCenterLonLat();}}var pContent='
     
    ';if(feature.data.rowId!==undefined){pContent+=''+feature.data.rowId+': ';}if(feature.data.name!==undefined){pContent+=''+feature.data.name+'';}if(feature.data.ele!==undefined){pContent+='
    elevation: '+feature.data.ele+'
    ';}if(feature.data.type!==undefined){pContent+='
    '+feature.data.type+'
    ';}if(feature.data.time!==undefined){pContent+='
    time: '+feature.data.time+'
    ';}if(feature.data.description!==undefined){pContent+='
    '+feature.data.description+'
    ';}if(pContent.length>0){var popup=new OpenLayers.Popup.FramedCloud("olPopup",pPos,null,pContent,null,!0,function(){selectControl.unselect(selectedFeature);});feature.popup=popup;feature.layer.map.addPopup(popup);}}function onFeatureUnselect(feature){if(feature.popup!==null){feature.layer.map.removePopup(feature.popup);feature.popup.destroy();feature.popup=null;}}function olTestCSSsupport(){return(jQuery('.olCSSsupported').length>0);}function olCreateMaptag(mapid,width,height){var mEl=''+'
    '+'
    '+'
    '+'
    '+'
    '+'
    scale
    '+''+'
    '+'
    proj
    '+'
    txt
    '+'
    ',frag=document.createDocumentFragment(),temp=document.createElement('div');temp.innerHTML=mEl;while(temp.firstChild){frag.appendChild(temp.firstChild);}return frag;}function createMap(mapOpts,OLmapPOI){if(!olEnable){return;}if(!olTestCSSsupport()){olEnable=!1;return;}var DocBase=DOKU_BASE;OpenLayers.IMAGE_RELOAD_ATTEMPTS=3;var cleartag=document.getElementById(mapOpts.id+'-clearer');if(cleartag===null){return;}var fragment=olCreateMaptag(mapOpts.id,mapOpts.width,mapOpts.height);cleartag.parentNode.insertBefore(fragment,cleartag);var extent=new OpenLayers.Bounds(),m=new OpenLayers.Map({div:mapOpts.id,projection:'EPSG:900913',displayProjection:new OpenLayers.Projection("EPSG:4326"),numZoomLevels:22,controls:[new OpenLayers.Control.ArgParser(),new OpenLayers.Control.KeyboardDefaults({observeElement:mapOpts.id}),new OpenLayers.Control.Navigation({dragPanOptions:{enableKinetic:!0}}),new OpenLayers.Control.ScaleLine({geodesic:!0})],theme:null});if(osmEnable){m.addLayer(new OpenLayers.Layer.OSM("OpenStreetMap",null,{transitionEffect:"resize",visibility:mapOpts.baselyr==="OpenStreetMap"}));m.addLayer(new OpenLayers.Layer.OSM("transport",["http://a.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png","http://b.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png","http://c.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png"],{transitionEffect:"resize",attribution:'Data CC-By-SA OpenStreetMap, '+'Tiles OpenCycleMap'+'OpenCycleMap logo',visibility:mapOpts.baselyr==="transport",tileOptions:{crossOriginKeyword:null}}));m.addLayer(new OpenLayers.Layer.OSM("landscape",["http://a.tile3.opencyclemap.org/landscape/${z}/${x}/${y}.png","http://b.tile3.opencyclemap.org/landscape/${z}/${x}/${y}.png","http://c.tile3.opencyclemap.org/landscape/${z}/${x}/${y}.png"],{transitionEffect:"resize",attribution:'Data CC-By-SA OpenStreetMap, '+'Tiles OpenCycleMap'+'OpenCycleMap logo',visibility:mapOpts.baselyr==="transport",tileOptions:{crossOriginKeyword:null}}));m.addLayer(new OpenLayers.Layer.OSM("cycle map",["http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png","http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png","http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png"],{transitionEffect:"resize",attribution:'Data CC-By-SA OpenStreetMap, '+'Tiles OpenCycleMap'+'OpenCycleMap logo',visibility:mapOpts.baselyr==="cycle map",tileOptions:{crossOriginKeyword:null}}));m.addLayer(new OpenLayers.Layer.OSM("cloudmade map",["http://a.tile.cloudmade.com/2f59745a6b525b4ebdb100891d5b6711/3/256/${z}/${x}/${y}.png","http://b.tile.cloudmade.com/2f59745a6b525b4ebdb100891d5b6711/3/256/${z}/${x}/${y}.png","http://c.tile.cloudmade.com/2f59745a6b525b4ebdb100891d5b6711/3/256/${z}/${x}/${y}.png"],{transitionEffect:"resize",attribution:'Tiles © 2012 CloudMade'+'CloudMade logo'+' Data CC-BY-SA OpenStreetMap',visibility:mapOpts.baselyr==="cloudmade map",tileOptions:{crossOriginKeyword:null}}));m.addLayer(new OpenLayers.Layer.OSM("hike and bike map","http://toolserver.org/tiles/hikebike/${z}/${x}/${y}.png",{transitionEffect:"resize",visibility:mapOpts.baselyr==="hike and bike map",tileOptions:{crossOriginKeyword:null}}));}if(mqEnable){m.addLayer(new OpenLayers.Layer.OSM("mapquest road",["http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png","http://otile2.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png","http://otile3.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png","http://otile4.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png"],{transitionEffect:"resize",attribution:'Data CC-By-SA OpenStreetMap, '+'Tiles MapQuest'+'MapQuest logo',visibility:mapOpts.baselyr==="mapquest road",tileOptions:{crossOriginKeyword:null}}));m.addLayer(new OpenLayers.Layer.OSM("mapquest sat",["http://oatile1.mqcdn.com/naip/${z}/${x}/${y}.jpg","http://oatile2.mqcdn.com/naip/${z}/${x}/${y}.jpg","http://oatile3.mqcdn.com/naip/${z}/${x}/${y}.jpg","http://oatile4.mqcdn.com/naip/${z}/${x}/${y}.jpg"],{transitionEffect:"resize",attribution:'Tiles Courtesy of MapQuest'+'MapQuest logo',visibility:mapOpts.baselyr==="mapquest sat",numZoomLevels:12,tileOptions:{crossOriginKeyword:null}}));}if(gEnable){try{m.addLayer(new OpenLayers.Layer.Google("google relief",{type:google.maps.MapTypeId.TERRAIN,numZoomLevels:16,animationEnabled:!0,visibility:mapOpts.baselyr==="google relief"}));m.addLayer(new OpenLayers.Layer.Google("google sat",{type:google.maps.MapTypeId.SATELLITE,animationEnabled:!0,visibility:mapOpts.baselyr==="google sat"}));m.addLayer(new OpenLayers.Layer.Google("google hybrid",{type:google.maps.MapTypeId.HYBRID,animationEnabled:!0,visibility:mapOpts.baselyr==="google hybrid"}));m.addLayer(new OpenLayers.Layer.Google("google road",{animationEnabled:!0,visibility:mapOpts.baselyr==="google road"}));}catch(ol_err1){Openlayers.Console.userError('Error loading Google maps'+ol_err1);}}if(bEnable&&bApiKey!==''){try{m.addLayer(new OpenLayers.Layer.Bing({key:bApiKey,type:"Road",name:"bing road",transitionEffect:"resize",visibility:mapOpts.baselyr==="bing road",wrapDateLine:!0,attributionTemplate:''+'Bing™Bing logo ${copyrights}'+'Terms of Use'}));m.addLayer(new OpenLayers.Layer.Bing({key:bApiKey,type:"Aerial",name:"bing sat",transitionEffect:"resize",visibility:mapOpts.baselyr==="bing sat",wrapDateLine:!0,attributionTemplate:''+'Bing™Bing logo ${copyrights}'+'Terms of Use'}));m.addLayer(new OpenLayers.Layer.Bing({key:bApiKey,type:"AerialWithLabels",name:"bing hybrid",transitionEffect:"resize",visibility:mapOpts.baselyr==="bing hybrid",wrapDateLine:!0,attributionTemplate:''+'Bing™Bing logo ${copyrights}'+'Terms of Use'}));}catch(ol_errBing){Openlayers.Console.userError('Error loading Bing maps: '+ol_errBing);}}m.setCenter(new OpenLayers.LonLat(mapOpts.lon,mapOpts.lat).transform(m.displayProjection,m.projection),mapOpts.zoom);extent.extend(m.getExtent());try{m.setBaseLayer(((m.getLayersByName(mapOpts.baselyr))[0]));}catch(ol_err4){m.setBaseLayer(m.layers[0]);}if(mapOpts.controls===1){m.addControl(new OpenLayers.Control.LayerSwitcher());m.addControl(new OpenLayers.Control.PanZoomBar());m.addControl(new OpenLayers.Control.Graticule({visible:!1}));m.addLayer(new OpenLayers.Layer.OSM("Hillshade","http://toolserver.org/~cmarqu/hill/${z}/${x}/${y}.png",{transitionEffect:"resize",isBaseLayer:!1,transparent:!0,visibility:!1,displayOutsideMaxExtent:!0,attribution:'',tileOptions:{crossOriginKeyword:null}}));m.addControl(new OpenLayers.Control.OverviewMap({size:new OpenLayers.Size(140,140),minRectSize:10}));}if(mapOpts.statusbar===1){m.addControl(new OpenLayers.Control.Permalink(mapOpts.id+'-statusbar-link-ref'));m.addControl(new OpenLayers.Control.MousePosition({'div':OpenLayers.Util.getElement(mapOpts.id+'-statusbar-mouseposition')}));m.addControl(new OpenLayers.Control.Scale(mapOpts.id+'-statusbar-scale'));m.addControl(new OpenLayers.Control.Attribution({'div':OpenLayers.Util.getElement(mapOpts.id+'-statusbar-text')}));OpenLayers.Util.getElement(mapOpts.id+'-statusbar-projection').innerHTML=m.displayProjection;}else{OpenLayers.Util.getElement(mapOpts.id+'-olStatusBar').display='none';}if(mapOpts.toolbar===1){var zoomin=new OpenLayers.Control.ZoomBox({title:"Zoom in"}),zoomout=new OpenLayers.Control.ZoomBox({out:!0,title:"Zoom uit",displayClass:"olControlZoomOut"}),pan=new OpenLayers.Control.DragPan({title:"Verschuif"}),info=new OpenLayers.Control.Button({type:OpenLayers.Control.TYPE_TOOL,displayClass:"olControlFeatureInfo",title:"Info"}),nav=new OpenLayers.Control.NavigationHistory();m.addControl(nav);var panel=new OpenLayers.Control.Panel({defaultControl:pan,displayClass:"olToolbar","div":OpenLayers.Util.getElement(mapOpts.id+"-olToolbar")});panel.addControls([zoomin,zoomout,pan,info,nav.next,nav.previous]);m.addControl(panel);}else{OpenLayers.Util.getElement(mapOpts.id+'-olToolbar').display='none';}if(OLmapPOI.length>0){var markers=new OpenLayers.Layer.Vector("POI",{styleMap:new OpenLayers.StyleMap({"default":{externalGraphic:"${img}",graphicHeight:16,graphicWidth:16,graphicXOffset:0,graphicYOffset:-8,graphicOpacity:"${opacity}",rotation:"${angle}",backgroundGraphic:DocBase+"lib/plugins/openlayersmap/icons/marker_shadow.png",backgroundXOffset:0,backgroundYOffset:-4,backgroundRotation:"${angle}",pointRadius:10,labelXOffset:8,labelYOffset:8,labelAlign:"lb",label:"${label}",fontFamily:"monospace",fontSize:"12px",fontWeight:"bold"},"select":{cursor:"crosshair",externalGraphic:DocBase+"lib/plugins/openlayersmap/icons/marker-red.png",graphicHeight:16,graphicWidth:16,graphicXOffset:0,graphicYOffset:-8,graphicOpacity:1.0,rotation:"${angle}"}}),isBaseLayer:!1,rendererOptions:{yOrdering:!0}});m.addLayer(markers);var features=[];var lonLat;for(var j=0;j0){var layerGPX=new OpenLayers.Layer.Vector("GPS route",{protocol:new OpenLayers.Protocol.HTTP({url:DocBase+"lib/exe/fetch.php?media="+mapOpts.gpxfile,format:new OpenLayers.Format.GPX({extractWaypoints:!0,extractTracks:!0,extractStyles:!0,extractAttributes:!0,handleHeight:!0,maxDepth:3})}),style:{strokeColor:"#0000FF",strokeWidth:3,strokeOpacity:0.7,pointRadius:4,fillColor:"#0099FF",fillOpacity:0.7},projection:new OpenLayers.Projection("EPSG:4326"),strategies:[new OpenLayers.Strategy.Fixed()]});m.addLayer(layerGPX);layerGPX.events.register('loadend',m,function(){extent.extend(layerGPX.getDataExtent());m.zoomToExtent(extent);});}if(mapOpts.kmlfile.length>0){var layerKML=new OpenLayers.Layer.Vector("KML file",{protocol:new OpenLayers.Protocol.HTTP({url:DocBase+"lib/exe/fetch.php?media="+mapOpts.kmlfile,format:new OpenLayers.Format.KML({extractStyles:!0,extractAttributes:!0,maxDepth:3})}),style:{label:"${name}"},projection:new OpenLayers.Projection("EPSG:4326"),strategies:[new OpenLayers.Strategy.Fixed()]});m.addLayer(layerKML);layerKML.events.register('loadend',m,function(){extent.extend(layerKML.getDataExtent());m.zoomToExtent(extent);});}if((m.getLayersByClass('OpenLayers.Layer.GML').length>0)||m.getLayersByClass('OpenLayers.Layer.Vector').length>0){selectControl=new OpenLayers.Control.SelectFeature((m .getLayersByClass('OpenLayers.Layer.Vector')).concat(m .getLayersByClass('OpenLayers.Layer.GML')),{hover:mapOpts.poihoverstyle,onSelect:onFeatureSelect,onUnselect:onFeatureUnselect});m.addControl(selectControl);selectControl.activate();}return m;}var olTimerId=-1;function olInit(){if(navigator.userAgent.indexOf('MSIE')!==-1){if(olTimerId===-1){olTimerId=setTimeout("olInit()",3000);olEnable=!1;}else{clearTimeout(olTimerId);olEnable=!0;}}if(olEnable){var _i=0;for(_i=0;_i

    Click to close

    ').appendTo(jQuery('body')).hide().click(function(){$lightbox.hide();});}$lightbox .show().find('div').html('');return false;});$extmgr.find('input.disable, input.enable').click(function(e){e.preventDefault();var $btn=jQuery(this);var extension=$btn.attr('name').split('[')[2];extension=extension.substr(0,extension.length-1);var act=($btn.hasClass('disable'))?'disable':'enable';$btn.attr('disabled','disabled');$btn.css('cursor','wait');jQuery.get(DOKU_BASE+'lib/exe/ajax.php',{call:'plugin_extension',ext:extension,act:act},function(data){$btn.css('cursor','').removeAttr('disabled').removeClass('disable').removeClass('enable').val(data.label).addClass(data.reverse).parents('li').removeClass('disabled').removeClass('enabled').addClass(data.state);});});$extmgr.find('a.info').click(function(e){e.preventDefault();var $link=jQuery(this);var $details=$link.parent().find('dl.details');if($details.length){$link.toggleClass('close');$details.toggle();return;}$link.addClass('close');jQuery.get(DOKU_BASE+'lib/exe/ajax.php',{call:'plugin_extension',ext:$link.data('extid'),act:'info'},function(data){$link.parent().append(data);});});});function epub_show_throbber(user,client){var dom=document.getElementById('epub_throbber');if(!dom||!user||!epub_title)return;dom.style.display='block';var params="user="+encodeURIComponent(user);params+="&location="+encodeURIComponent(window.location);params+="&title="+encodeURIComponent(epub_title);params+="&epub_ids="+epub_stringifyArray(epub_id);params+="&epub_titles="+epub_stringifyArray(epub_wikilink);if(client){params+="&client="+encodeURIComponent(client);}if(book_id){params+="&book_page="+encodeURIComponent(book_id);}jQuery.post(DOKU_BASE+'lib/plugins/epub/scripts/ebook.php',params,function(data){dom.innerHTML='
    '+decodeURIComponent(decodeURIComponent(data))+'
    ';regex=/Ebook:\s+(:?epub.*?\.epub)/;result=regex.exec(dom.innerHTML);if(result){var epub='http://'+location.host+DOKU_BASE+'lib/exe/fetch.php?media='+result[1];dom.innerHTML+='';}},'html');}function epub_stringifyArray(ar){ar=ar.join(';;');ar=ar.replace(/^;;/,"");ar=ar.replace(/;;$/,"");return encodeURIComponent(ar);}function epub_remove_creator(id){var params="remove="+encodeURIComponent(id);jQuery.post(DOKU_BASE+'lib/plugins/epub/scripts/update_files.php',params,function(data){alert(data);},'html');}function _epub_show_throbber(user,client){epub_show_throbber(user,client);var dom=document.getElementById('show_throbberbutton');dom.style.display='none';epub_check_progress(client,user);}function epub_check_progress(client,user){var dom=document.getElementById('epub_progress');var params="user="+encodeURIComponent(user);if(client){params+="&client="+encodeURIComponent(client);}var secs=0;var t=window.setInterval(function(){jQuery.post(DOKU_BASE+'lib/plugins/epub/scripts/check_progess.php',params,function(data){if(!data)window.clearInterval(t);secs++;dom.innerHTML=data+'[seconds: '+secs*15+']';},'html');},15000);}function epub_admin_confirm(which){var f=document.epub_admin;var epubs=new Array();var msg="";for(var i=0;i","close":""},{"type":"format","title":"Rose Highlighted Text","icon":color_icobase+"picker_rose.png","open":"","close":""},{"type":"format","title":"Red Highlighted Text","icon":color_icobase+"picker_red.png","open":"","close":""},{"type":"format","title":"Orange Highlighted Text","icon":color_icobase+"picker_orange.png","open":"","close":""},{"type":"format","title":"Gold Highlighted Text","icon":color_icobase+"picker_gold.png","open":"","close":""},{"type":"format","title":"Yellow Highlighted Text","icon":color_icobase+"picker_yellow.png","open":"","close":""},{"type":"format","title":"Light Yellow Highlighted Text","icon":color_icobase+"picker_light_yellow.png","open":"","close":""},{"type":"format","title":"Green Highlighted Text","icon":color_icobase+"picker_green.png","open":"","close":""},{"type":"format","title":"Lime Highlighted Text","icon":color_icobase+"picker_lime.png","open":"","close":""},{"type":"format","title":"Turquoise Highlighted Text","icon":color_icobase+"picker_turquoise.png","open":"","close":""},{"type":"format","title":"Light Turquoise Highlighted Text","icon":color_icobase+"picker_light_turquoise.png","open":"","close":""},{"type":"format","title":"Blue-Gray Highlighted Text","icon":color_icobase+"picker_blue_gray.png","open":"","close":""},{"type":"format","title":"Lavender Highlighted Text","icon":color_icobase+"picker_lavender.png","open":"","close":""}]};}var dw_acl={init:function(){var $tree;if(jQuery('#acl_manager').length===0){return;}jQuery('#acl__user select').change(dw_acl.userselhandler);jQuery('#acl__user input[type=submit]').click(dw_acl.loadinfo);$tree=jQuery('#acl__tree');$tree.dw_tree({toggle_selector:'img',load_data:function(show_sublist,$clicky){var $frm=jQuery('#acl__detail form');jQuery.post(DOKU_BASE+'lib/exe/ajax.php',jQuery.extend(dw_acl.parseatt($clicky.parent().find('a')[0].search),{call:'plugin_acl',ajax:'tree',current_ns:$frm.find('input[name=ns]').val(),current_id:$frm.find('input[name=id]').val()}),show_sublist,'html');},toggle_display:function($clicky,opening){$clicky.attr('src',DOKU_BASE+'lib/images/'+(opening?'minus':'plus')+'.gif');}});$tree.delegate('a','click',dw_acl.treehandler);},userselhandler:function(){jQuery('#acl__user input').toggle(this.value==='__g__'||this.value==='__u__');dw_acl.loadinfo();},loadinfo:function(){jQuery('#acl__info').attr('role','alert').html('...').load(DOKU_BASE+'lib/exe/ajax.php',jQuery('#acl__detail form').serialize()+'&call=plugin_acl&ajax=info');return false;},parseatt:function(str){if(str[0]==='?'){str=str.substr(1);}var attributes={};var all=str.split('&');for(var i=0;i","close":""};toolbar[toolbar.length]={"type":"format","title":"tip","key":"","icon":"../../plugins/note/images/tb_tip.png","open":"","close":""};toolbar[toolbar.length]={"type":"format","title":"important","key":"","icon":"../../plugins/note/images/tb_important.png","open":"","close":""};toolbar[toolbar.length]={"type":"format","title":"warning","key":"","icon":"../../plugins/note/images/tb_warning.png","open":"","close":""};}function newshandler(){var prev_del=document.getElementById("prev_del");var inputs=document.getElementsByTagName("input");var prev="";for(var i=0;i