--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">\r
+<head>\r
+<title>How Angular Lost its JS</title>\r
+<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />\r
+<meta name="copyright" content="Copyright © Bill Erickson, Software Development Engineer, King County Library System" />\r
+<meta name="generator" content="AsciiDoc 8.6.9" />\r
+<meta name="duration" content="50" />\r
+<style type="text/css">\r
+/* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
+\r
+/* Default font. */\r
+body {\r
+ font-family: Georgia,serif;\r
+}\r
+\r
+/* Title font. */\r
+h1, h2, h3, h4, h5, h6,\r
+div.title, caption.title,\r
+thead, p.table.header,\r
+#toctitle,\r
+#author, #revnumber, #revdate, #revremark,\r
+#footer {\r
+ font-family: Arial,Helvetica,sans-serif;\r
+}\r
+\r
+body {\r
+ margin: 1em 5% 1em 5%;\r
+}\r
+\r
+a {\r
+ color: blue;\r
+ text-decoration: underline;\r
+}\r
+a:visited {\r
+ color: fuchsia;\r
+}\r
+\r
+em {\r
+ font-style: italic;\r
+ color: navy;\r
+}\r
+\r
+strong {\r
+ font-weight: bold;\r
+ color: #083194;\r
+}\r
+\r
+h1, h2, h3, h4, h5, h6 {\r
+ color: #527bbd;\r
+ margin-top: 1.2em;\r
+ margin-bottom: 0.5em;\r
+ line-height: 1.3;\r
+}\r
+\r
+h1, h2, h3 {\r
+ border-bottom: 2px solid silver;\r
+}\r
+h2 {\r
+ padding-top: 0.5em;\r
+}\r
+h3 {\r
+ float: left;\r
+}\r
+h3 + * {\r
+ clear: left;\r
+}\r
+h5 {\r
+ font-size: 1.0em;\r
+}\r
+\r
+div.sectionbody {\r
+ margin-left: 0;\r
+}\r
+\r
+hr {\r
+ border: 1px solid silver;\r
+}\r
+\r
+p {\r
+ margin-top: 0.5em;\r
+ margin-bottom: 0.5em;\r
+}\r
+\r
+ul, ol, li > p {\r
+ margin-top: 0;\r
+}\r
+ul > li { color: #aaa; }\r
+ul > li > * { color: black; }\r
+\r
+.monospaced, code, pre {\r
+ font-family: "Courier New", Courier, monospace;\r
+ font-size: inherit;\r
+ color: navy;\r
+ padding: 0;\r
+ margin: 0;\r
+}\r
+pre {\r
+ white-space: pre-wrap;\r
+}\r
+\r
+#author {\r
+ color: #527bbd;\r
+ font-weight: bold;\r
+ font-size: 1.1em;\r
+}\r
+#email {\r
+}\r
+#revnumber, #revdate, #revremark {\r
+}\r
+\r
+#footer {\r
+ font-size: small;\r
+ border-top: 2px solid silver;\r
+ padding-top: 0.5em;\r
+ margin-top: 4.0em;\r
+}\r
+#footer-text {\r
+ float: left;\r
+ padding-bottom: 0.5em;\r
+}\r
+#footer-badges {\r
+ float: right;\r
+ padding-bottom: 0.5em;\r
+}\r
+\r
+#preamble {\r
+ margin-top: 1.5em;\r
+ margin-bottom: 1.5em;\r
+}\r
+div.imageblock, div.exampleblock, div.verseblock,\r
+div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,\r
+div.admonitionblock {\r
+ margin-top: 1.0em;\r
+ margin-bottom: 1.5em;\r
+}\r
+div.admonitionblock {\r
+ margin-top: 2.0em;\r
+ margin-bottom: 2.0em;\r
+ margin-right: 10%;\r
+ color: #606060;\r
+}\r
+\r
+div.content { /* Block element content. */\r
+ padding: 0;\r
+}\r
+\r
+/* Block element titles. */\r
+div.title, caption.title {\r
+ color: #527bbd;\r
+ font-weight: bold;\r
+ text-align: left;\r
+ margin-top: 1.0em;\r
+ margin-bottom: 0.5em;\r
+}\r
+div.title + * {\r
+ margin-top: 0;\r
+}\r
+\r
+td div.title:first-child {\r
+ margin-top: 0.0em;\r
+}\r
+div.content div.title:first-child {\r
+ margin-top: 0.0em;\r
+}\r
+div.content + div.title {\r
+ margin-top: 0.0em;\r
+}\r
+\r
+div.sidebarblock > div.content {\r
+ background: #ffffee;\r
+ border: 1px solid #dddddd;\r
+ border-left: 4px solid #f0f0f0;\r
+ padding: 0.5em;\r
+}\r
+\r
+div.listingblock > div.content {\r
+ border: 1px solid #dddddd;\r
+ border-left: 5px solid #f0f0f0;\r
+ background: #f8f8f8;\r
+ padding: 0.5em;\r
+}\r
+\r
+div.quoteblock, div.verseblock {\r
+ padding-left: 1.0em;\r
+ margin-left: 1.0em;\r
+ margin-right: 10%;\r
+ border-left: 5px solid #f0f0f0;\r
+ color: #888;\r
+}\r
+\r
+div.quoteblock > div.attribution {\r
+ padding-top: 0.5em;\r
+ text-align: right;\r
+}\r
+\r
+div.verseblock > pre.content {\r
+ font-family: inherit;\r
+ font-size: inherit;\r
+}\r
+div.verseblock > div.attribution {\r
+ padding-top: 0.75em;\r
+ text-align: left;\r
+}\r
+/* DEPRECATED: Pre version 8.2.7 verse style literal block. */\r
+div.verseblock + div.attribution {\r
+ text-align: left;\r
+}\r
+\r
+div.admonitionblock .icon {\r
+ vertical-align: top;\r
+ font-size: 1.1em;\r
+ font-weight: bold;\r
+ text-decoration: underline;\r
+ color: #527bbd;\r
+ padding-right: 0.5em;\r
+}\r
+div.admonitionblock td.content {\r
+ padding-left: 0.5em;\r
+ border-left: 3px solid #dddddd;\r
+}\r
+\r
+div.exampleblock > div.content {\r
+ border-left: 3px solid #dddddd;\r
+ padding-left: 0.5em;\r
+}\r
+\r
+div.imageblock div.content { padding-left: 0; }\r
+span.image img { border-style: none; vertical-align: text-bottom; }\r
+a.image:visited { color: white; }\r
+\r
+dl {\r
+ margin-top: 0.8em;\r
+ margin-bottom: 0.8em;\r
+}\r
+dt {\r
+ margin-top: 0.5em;\r
+ margin-bottom: 0;\r
+ font-style: normal;\r
+ color: navy;\r
+}\r
+dd > *:first-child {\r
+ margin-top: 0.1em;\r
+}\r
+\r
+ul, ol {\r
+ list-style-position: outside;\r
+}\r
+ol.arabic {\r
+ list-style-type: decimal;\r
+}\r
+ol.loweralpha {\r
+ list-style-type: lower-alpha;\r
+}\r
+ol.upperalpha {\r
+ list-style-type: upper-alpha;\r
+}\r
+ol.lowerroman {\r
+ list-style-type: lower-roman;\r
+}\r
+ol.upperroman {\r
+ list-style-type: upper-roman;\r
+}\r
+\r
+div.compact ul, div.compact ol,\r
+div.compact p, div.compact p,\r
+div.compact div, div.compact div {\r
+ margin-top: 0.1em;\r
+ margin-bottom: 0.1em;\r
+}\r
+\r
+tfoot {\r
+ font-weight: bold;\r
+}\r
+td > div.verse {\r
+ white-space: pre;\r
+}\r
+\r
+div.hdlist {\r
+ margin-top: 0.8em;\r
+ margin-bottom: 0.8em;\r
+}\r
+div.hdlist tr {\r
+ padding-bottom: 15px;\r
+}\r
+dt.hdlist1.strong, td.hdlist1.strong {\r
+ font-weight: bold;\r
+}\r
+td.hdlist1 {\r
+ vertical-align: top;\r
+ font-style: normal;\r
+ padding-right: 0.8em;\r
+ color: navy;\r
+}\r
+td.hdlist2 {\r
+ vertical-align: top;\r
+}\r
+div.hdlist.compact tr {\r
+ margin: 0;\r
+ padding-bottom: 0;\r
+}\r
+\r
+.comment {\r
+ background: yellow;\r
+}\r
+\r
+.footnote, .footnoteref {\r
+ font-size: 0.8em;\r
+}\r
+\r
+span.footnote, span.footnoteref {\r
+ vertical-align: super;\r
+}\r
+\r
+#footnotes {\r
+ margin: 20px 0 20px 0;\r
+ padding: 7px 0 0 0;\r
+}\r
+\r
+#footnotes div.footnote {\r
+ margin: 0 0 5px 0;\r
+}\r
+\r
+#footnotes hr {\r
+ border: none;\r
+ border-top: 1px solid silver;\r
+ height: 1px;\r
+ text-align: left;\r
+ margin-left: 0;\r
+ width: 20%;\r
+ min-width: 100px;\r
+}\r
+\r
+div.colist td {\r
+ padding-right: 0.5em;\r
+ padding-bottom: 0.3em;\r
+ vertical-align: top;\r
+}\r
+div.colist td img {\r
+ margin-top: 0.3em;\r
+}\r
+\r
+@media print {\r
+ #footer-badges { display: none; }\r
+}\r
+\r
+#toc {\r
+ margin-bottom: 2.5em;\r
+}\r
+\r
+#toctitle {\r
+ color: #527bbd;\r
+ font-size: 1.1em;\r
+ font-weight: bold;\r
+ margin-top: 1.0em;\r
+ margin-bottom: 0.1em;\r
+}\r
+\r
+div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {\r
+ margin-top: 0;\r
+ margin-bottom: 0;\r
+}\r
+div.toclevel2 {\r
+ margin-left: 2em;\r
+ font-size: 0.9em;\r
+}\r
+div.toclevel3 {\r
+ margin-left: 4em;\r
+ font-size: 0.9em;\r
+}\r
+div.toclevel4 {\r
+ margin-left: 6em;\r
+ font-size: 0.9em;\r
+}\r
+\r
+span.aqua { color: aqua; }\r
+span.black { color: black; }\r
+span.blue { color: blue; }\r
+span.fuchsia { color: fuchsia; }\r
+span.gray { color: gray; }\r
+span.green { color: green; }\r
+span.lime { color: lime; }\r
+span.maroon { color: maroon; }\r
+span.navy { color: navy; }\r
+span.olive { color: olive; }\r
+span.purple { color: purple; }\r
+span.red { color: red; }\r
+span.silver { color: silver; }\r
+span.teal { color: teal; }\r
+span.white { color: white; }\r
+span.yellow { color: yellow; }\r
+\r
+span.aqua-background { background: aqua; }\r
+span.black-background { background: black; }\r
+span.blue-background { background: blue; }\r
+span.fuchsia-background { background: fuchsia; }\r
+span.gray-background { background: gray; }\r
+span.green-background { background: green; }\r
+span.lime-background { background: lime; }\r
+span.maroon-background { background: maroon; }\r
+span.navy-background { background: navy; }\r
+span.olive-background { background: olive; }\r
+span.purple-background { background: purple; }\r
+span.red-background { background: red; }\r
+span.silver-background { background: silver; }\r
+span.teal-background { background: teal; }\r
+span.white-background { background: white; }\r
+span.yellow-background { background: yellow; }\r
+\r
+span.big { font-size: 2em; }\r
+span.small { font-size: 0.6em; }\r
+\r
+span.underline { text-decoration: underline; }\r
+span.overline { text-decoration: overline; }\r
+span.line-through { text-decoration: line-through; }\r
+\r
+div.unbreakable { page-break-inside: avoid; }\r
+\r
+\r
+/*\r
+ * xhtml11 specific\r
+ *\r
+ * */\r
+\r
+div.tableblock {\r
+ margin-top: 1.0em;\r
+ margin-bottom: 1.5em;\r
+}\r
+div.tableblock > table {\r
+ border: 3px solid #527bbd;\r
+}\r
+thead, p.table.header {\r
+ font-weight: bold;\r
+ color: #527bbd;\r
+}\r
+p.table {\r
+ margin-top: 0;\r
+}\r
+/* Because the table frame attribute is overriden by CSS in most browsers. */\r
+div.tableblock > table[frame="void"] {\r
+ border-style: none;\r
+}\r
+div.tableblock > table[frame="hsides"] {\r
+ border-left-style: none;\r
+ border-right-style: none;\r
+}\r
+div.tableblock > table[frame="vsides"] {\r
+ border-top-style: none;\r
+ border-bottom-style: none;\r
+}\r
+\r
+\r
+/*\r
+ * html5 specific\r
+ *\r
+ * */\r
+\r
+table.tableblock {\r
+ margin-top: 1.0em;\r
+ margin-bottom: 1.5em;\r
+}\r
+thead, p.tableblock.header {\r
+ font-weight: bold;\r
+ color: #527bbd;\r
+}\r
+p.tableblock {\r
+ margin-top: 0;\r
+}\r
+table.tableblock {\r
+ border-width: 3px;\r
+ border-spacing: 0px;\r
+ border-style: solid;\r
+ border-color: #527bbd;\r
+ border-collapse: collapse;\r
+}\r
+th.tableblock, td.tableblock {\r
+ border-width: 1px;\r
+ padding: 4px;\r
+ border-style: solid;\r
+ border-color: #527bbd;\r
+}\r
+\r
+table.tableblock.frame-topbot {\r
+ border-left-style: hidden;\r
+ border-right-style: hidden;\r
+}\r
+table.tableblock.frame-sides {\r
+ border-top-style: hidden;\r
+ border-bottom-style: hidden;\r
+}\r
+table.tableblock.frame-none {\r
+ border-style: hidden;\r
+}\r
+\r
+th.tableblock.halign-left, td.tableblock.halign-left {\r
+ text-align: left;\r
+}\r
+th.tableblock.halign-center, td.tableblock.halign-center {\r
+ text-align: center;\r
+}\r
+th.tableblock.halign-right, td.tableblock.halign-right {\r
+ text-align: right;\r
+}\r
+\r
+th.tableblock.valign-top, td.tableblock.valign-top {\r
+ vertical-align: top;\r
+}\r
+th.tableblock.valign-middle, td.tableblock.valign-middle {\r
+ vertical-align: middle;\r
+}\r
+th.tableblock.valign-bottom, td.tableblock.valign-bottom {\r
+ vertical-align: bottom;\r
+}\r
+\r
+\r
+/*\r
+ * manpage specific\r
+ *\r
+ * */\r
+\r
+body.manpage h1 {\r
+ padding-top: 0.5em;\r
+ padding-bottom: 0.5em;\r
+ border-top: 2px solid silver;\r
+ border-bottom: 2px solid silver;\r
+}\r
+body.manpage h2 {\r
+ border-style: none;\r
+}\r
+body.manpage div.sectionbody {\r
+ margin-left: 3em;\r
+}\r
+\r
+@media print {\r
+ body.manpage div#toc { display: none; }\r
+}\r
+/* slidy.css\r
+\r
+ Copyright (c) 2005-2010 W3C (MIT, ERCIM, Keio), All Rights Reserved.\r
+ W3C liability, trademark, document use and software licensing\r
+ rules apply, see:\r
+\r
+ http://www.w3.org/Consortium/Legal/copyright-documents\r
+ http://www.w3.org/Consortium/Legal/copyright-software\r
+*/\r
+\r
+/*\r
+ SJR: 2010-09-29: Modified for AsciiDoc slidy backend.\r
+ Mostly just commented out stuff that is handled by AsciiDoc's CSS files.\r
+*/\r
+\r
+body\r
+{\r
+ margin: 0 0 0 0;\r
+ padding: 0 0 0 0;\r
+ width: 100%;\r
+ height: 100%;\r
+ color: black;\r
+ background-color: white;\r
+/*\r
+ font-family: "Gill Sans MT", "Gill Sans", GillSans, sans-serif;\r
+*/\r
+ font-size: 14pt;\r
+}\r
+\r
+div.toolbar {\r
+ position: fixed; z-index: 200;\r
+ top: auto; bottom: 0; left: 0; right: 0;\r
+ height: 1.2em; text-align: right;\r
+ padding-left: 1em;\r
+ padding-right: 1em;\r
+ font-size: 60%;\r
+ color: red;\r
+ background-color: rgb(240,240,240);\r
+ border-top: solid 1px rgb(180,180,180);\r
+}\r
+\r
+div.toolbar span.copyright {\r
+ color: black;\r
+ margin-left: 0.5em;\r
+}\r
+\r
+div.initial_prompt {\r
+ position: absolute;\r
+ z-index: 1000;\r
+ bottom: 1.2em;\r
+ width: 90%;\r
+ background-color: rgb(200,200,200);\r
+ opacity: 0.35;\r
+ background-color: rgb(200,200,200, 0.35);\r
+ cursor: pointer;\r
+}\r
+\r
+div.initial_prompt p.help {\r
+ text-align: center;\r
+}\r
+\r
+div.initial_prompt p.close {\r
+ text-align: right;\r
+ font-style: italic;\r
+}\r
+\r
+div.slidy_toc {\r
+ position: absolute;\r
+ z-index: 300;\r
+ width: 60%;\r
+ max-width: 30em;\r
+ height: 30em;\r
+ overflow: auto;\r
+ top: auto;\r
+ right: auto;\r
+ left: 4em;\r
+ bottom: 4em;\r
+ padding: 1em;\r
+ background: rgb(240,240,240);\r
+ border-style: solid;\r
+ border-width: 2px;\r
+ font-size: 60%;\r
+}\r
+\r
+div.slidy_toc .toc_heading {\r
+ text-align: center;\r
+ width: 100%;\r
+ margin: 0;\r
+ margin-bottom: 1em;\r
+ border-bottom-style: solid;\r
+ border-bottom-color: rgb(180,180,180);\r
+ border-bottom-width: 1px;\r
+}\r
+\r
+div.slide {\r
+ z-index: 20;\r
+ margin: 0 0 0 0;\r
+ padding-top: 0;\r
+ padding-bottom: 0;\r
+ padding-left: 20px;\r
+ padding-right: 20px;\r
+ border-width: 0;\r
+ clear: both;\r
+ top: 0;\r
+ bottom: 0;\r
+ left: 0;\r
+ right: 0;\r
+ line-height: 120%;\r
+ background-color: transparent;\r
+}\r
+\r
+div.background {\r
+ display: none;\r
+}\r
+\r
+div.handout {\r
+ margin-left: 20px;\r
+ margin-right: 20px;\r
+}\r
+\r
+div.slide.titlepage {\r
+ text-align: center;\r
+}\r
+\r
+div.slide.titlepage.h1 {\r
+ padding-top: 10%;\r
+}\r
+\r
+div.slide h1 {\r
+ padding-left: 0;\r
+ padding-right: 20pt;\r
+ padding-top: 4pt;\r
+ padding-bottom: 4pt;\r
+ margin-top: 0;\r
+ margin-left: 0;\r
+ margin-right: 60pt;\r
+ margin-bottom: 0.5em;\r
+ display: block;\r
+ font-size: 160%;\r
+ line-height: 1.2em;\r
+ background: transparent;\r
+}\r
+\r
+div.toc {\r
+ position: absolute;\r
+ top: auto;\r
+ bottom: 4em;\r
+ left: 4em;\r
+ right: auto;\r
+ width: 60%;\r
+ max-width: 30em;\r
+ height: 30em;\r
+ border: solid thin black;\r
+ padding: 1em;\r
+ background: rgb(240,240,240);\r
+ color: black;\r
+ z-index: 300;\r
+ overflow: auto;\r
+ display: block;\r
+ visibility: visible;\r
+}\r
+\r
+div.toc-heading {\r
+ width: 100%;\r
+ border-bottom: solid 1px rgb(180,180,180);\r
+ margin-bottom: 1em;\r
+ text-align: center;\r
+}\r
+\r
+/*\r
+pre {\r
+ font-size: 80%;\r
+ font-weight: bold;\r
+ line-height: 120%;\r
+ padding-top: 0.2em;\r
+ padding-bottom: 0.2em;\r
+ padding-left: 1em;\r
+ padding-right: 1em;\r
+ border-style: solid;\r
+ border-left-width: 1em;\r
+ border-top-width: thin;\r
+ border-right-width: thin;\r
+ border-bottom-width: thin;\r
+ border-color: #95ABD0;\r
+ color: #00428C;\r
+ background-color: #E4E5E7;\r
+}\r
+*/\r
+\r
+/*\r
+li pre { margin-left: 0; }\r
+\r
+blockquote { font-style: italic }\r
+\r
+img { background-color: transparent }\r
+\r
+p.copyright { font-size: smaller }\r
+*/\r
+\r
+.center { text-align: center }\r
+.footnote { font-size: smaller; margin-left: 2em; }\r
+\r
+/*\r
+a img { border-width: 0; border-style: none }\r
+*/\r
+\r
+a:visited { color: navy }\r
+a:link { color: navy }\r
+a:hover { color: red; text-decoration: underline }\r
+a:active { color: red; text-decoration: underline }\r
+\r
+a {text-decoration: none}\r
+.navbar a:link {color: white}\r
+.navbar a:visited {color: yellow}\r
+.navbar a:active {color: red}\r
+.navbar a:hover {color: red}\r
+\r
+/*\r
+ul { list-style-type: square; }\r
+ul ul { list-style-type: disc; }\r
+ul ul ul { list-style-type: circle; }\r
+ul ul ul ul { list-style-type: disc; }\r
+li { margin-left: 0.5em; margin-top: 0.5em; }\r
+li li { font-size: 85%; font-style: italic }\r
+li li li { font-size: 85%; font-style: normal }\r
+*/\r
+\r
+div dt\r
+{\r
+ margin-left: 0;\r
+ margin-top: 1em;\r
+ margin-bottom: 0.5em;\r
+ font-weight: bold;\r
+}\r
+div dd\r
+{\r
+ margin-left: 2em;\r
+ margin-bottom: 0.5em;\r
+}\r
+\r
+\r
+/*\r
+p,pre,ul,ol,blockquote,h2,h3,h4,h5,h6,dl,table {\r
+ margin-left: 1em;\r
+ margin-right: 1em;\r
+}\r
+*/\r
+\r
+p.subhead { font-weight: bold; margin-top: 2em; }\r
+\r
+.smaller { font-size: smaller }\r
+.bigger { font-size: 130% }\r
+\r
+/*\r
+td,th { padding: 0.2em }\r
+*/\r
+\r
+ul {\r
+ margin: 0.5em 1.5em 0.5em 1.5em;\r
+ padding: 0;\r
+}\r
+\r
+ol {\r
+ margin: 0.5em 1.5em 0.5em 1.5em;\r
+ padding: 0;\r
+}\r
+\r
+ul { list-style-type: square; }\r
+ul ul { list-style-type: disc; }\r
+ul ul ul { list-style-type: circle; }\r
+ul ul ul ul { list-style-type: disc; }\r
+\r
+/*\r
+ul li {\r
+ list-style: square;\r
+ margin: 0.1em 0em 0.6em 0;\r
+ padding: 0 0 0 0;\r
+ line-height: 140%;\r
+}\r
+\r
+ol li {\r
+ margin: 0.1em 0em 0.6em 1.5em;\r
+ padding: 0 0 0 0px;\r
+ line-height: 140%;\r
+ list-style-type: decimal;\r
+}\r
+\r
+li ul li {\r
+ font-size: 85%;\r
+ font-style: italic;\r
+ list-style-type: disc;\r
+ background: transparent;\r
+ padding: 0 0 0 0;\r
+}\r
+li li ul li {\r
+ font-size: 85%;\r
+ font-style: normal;\r
+ list-style-type: circle;\r
+ background: transparent;\r
+ padding: 0 0 0 0;\r
+}\r
+li li li ul li {\r
+ list-style-type: disc;\r
+ background: transparent;\r
+ padding: 0 0 0 0;\r
+}\r
+\r
+li ol li {\r
+ list-style-type: decimal;\r
+}\r
+\r
+\r
+li li ol li {\r
+ list-style-type: decimal;\r
+}\r
+*/\r
+\r
+/*\r
+ setting class="outline" on ol or ul makes it behave as an\r
+ ouline list where blocklevel content in li elements is\r
+ hidden by default and can be expanded or collapsed with\r
+ mouse click. Set class="expand" on li to override default\r
+*/\r
+\r
+ol.outline li:hover { cursor: pointer }\r
+ol.outline li.nofold:hover { cursor: default }\r
+\r
+ul.outline li:hover { cursor: pointer }\r
+ul.outline li.nofold:hover { cursor: default }\r
+\r
+ol.outline { list-style:decimal; }\r
+ol.outline ol { list-style-type:lower-alpha }\r
+\r
+ol.outline li.nofold {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/nofold-dim.gif) no-repeat 0px 0.5em;\r
+}\r
+ol.outline li.unfolded {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/fold-dim.gif) no-repeat 0px 0.5em;\r
+}\r
+ol.outline li.folded {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/unfold-dim.gif) no-repeat 0px 0.5em;\r
+}\r
+ol.outline li.unfolded:hover {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/fold.gif) no-repeat 0px 0.5em;\r
+}\r
+ol.outline li.folded:hover {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/unfold.gif) no-repeat 0px 0.5em;\r
+}\r
+\r
+ul.outline li.nofold {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/nofold-dim.gif) no-repeat 0px 0.5em;\r
+}\r
+ul.outline li.unfolded {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/fold-dim.gif) no-repeat 0px 0.5em;\r
+}\r
+ul.outline li.folded {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/unfold-dim.gif) no-repeat 0px 0.5em;\r
+}\r
+ul.outline li.unfolded:hover {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/fold.gif) no-repeat 0px 0.5em;\r
+}\r
+ul.outline li.folded:hover {\r
+ padding: 0 0 0 20px;\r
+ background: transparent url(../graphics/unfold.gif) no-repeat 0px 0.5em;\r
+}\r
+\r
+/* for slides with class "title" in table of contents */\r
+a.titleslide { font-weight: bold; font-style: italic }\r
+\r
+/*\r
+ hide images for work around for save as bug\r
+ where browsers fail to save images used by CSS\r
+*/\r
+img.hidden { display: none; visibility: hidden }\r
+div.initial_prompt { display: none; visibility: hidden }\r
+\r
+ div.slide {\r
+ visibility: visible;\r
+ position: inherit;\r
+ }\r
+ div.handout {\r
+ border-top-style: solid;\r
+ border-top-width: thin;\r
+ border-top-color: black;\r
+ }\r
+\r
+@media screen {\r
+ .hidden { display: none; visibility: visible }\r
+\r
+ div.slide.hidden { display: block; visibility: visible }\r
+ div.handout.hidden { display: block; visibility: visible }\r
+ div.background { display: none; visibility: hidden }\r
+ body.single_slide div.initial_prompt { display: block; visibility: visible }\r
+ body.single_slide div.background { display: block; visibility: visible }\r
+ body.single_slide div.background.hidden { display: none; visibility: hidden }\r
+ body.single_slide .invisible { visibility: hidden }\r
+ body.single_slide .hidden { display: none; visibility: hidden }\r
+ body.single_slide div.slide { position: absolute }\r
+ body.single_slide div.handout { display: none; visibility: hidden }\r
+}\r
+\r
+@media print {\r
+ .hidden { display: block; visibility: visible }\r
+\r
+/*\r
+ div.slide pre { font-size: 60%; padding-left: 0.5em; }\r
+*/\r
+ div.toolbar { display: none; visibility: hidden; }\r
+ div.slidy_toc { display: none; visibility: hidden; }\r
+ div.background { display: none; visibility: hidden; }\r
+ div.slide { page-break-before: always }\r
+ /* :first-child isn't reliable for print media */\r
+ div.slide.first-slide { page-break-before: avoid }\r
+}\r
+\r
+\r
+/* SJR: AsciiDoc slidy backend tweaks */\r
+\r
+ol, ul {\r
+ margin: 0.8em 1.5em 0.8em 1.8em;\r
+}\r
+li > ul, li > ol {\r
+ margin-top: 0.5em;\r
+}\r
+\r
+.outline > li.folded,\r
+.outline > li.unfolded {\r
+ color: #527bbd;\r
+}\r
+ul > li{ color: #aaa; }\r
+ul > li > *, ol > li > * { color: black; }\r
+\r
+li {\r
+ margin-top: 0.5em;\r
+ margin-bottom: 0.5em;\r
+}\r
+\r
+\r
+</style>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/* slidy.js\r
+\r
+ Copyright (c) 2005-2010 W3C (MIT, ERCIM, Keio), All Rights Reserved.\r
+ W3C liability, trademark, document use and software licensing\r
+ rules apply, see:\r
+\r
+ http://www.w3.org/Consortium/Legal/copyright-documents\r
+ http://www.w3.org/Consortium/Legal/copyright-software\r
+*/\r
+\r
+// the slidy object implementation\r
+var w3c_slidy = {\r
+ // classify which kind of browser we're running under\r
+ ns_pos: (typeof window.pageYOffset!='undefined'),\r
+ khtml: ((navigator.userAgent).indexOf("KHTML") >= 0 ? true : false),\r
+ opera: ((navigator.userAgent).indexOf("Opera") >= 0 ? true : false),\r
+ ipad: ((navigator.userAgent).indexOf("iPad") >= 0 ? true : false),\r
+ iphone: ((navigator.userAgent).indexOf("iPhone") >= 0 ? true : false),\r
+ ie: (typeof document.all != "undefined" && !this.opera),\r
+ ie6: (!this.ns_pos && navigator.userAgent.indexOf("MSIE 6") != -1),\r
+ ie7: (!this.ns_pos && navigator.userAgent.indexOf("MSIE 7") != -1),\r
+ ie8: (!this.ns_pos && navigator.userAgent.indexOf("MSIE 8") != -1),\r
+ ie9: (!this.ns_pos && navigator.userAgent.indexOf("MSIE 9") != -1),\r
+ keyboardless: (this.ipad || this.iphone),\r
+\r
+ // are we running as XHTML? (doesn't work on Opera)\r
+ is_xhtml: /xml/.test(document.contentType),\r
+\r
+ slide_number: 0, // integer slide count: 0, 1, 2, ...\r
+ slide_number_element: null, // element containing slide number\r
+ slides: [], // set to array of slide div's\r
+ notes: [], // set to array of handout div's\r
+ backgrounds: [], // set to array of background div's\r
+ toolbar: null, // element containing toolbar\r
+ title: null, // document title\r
+ last_shown: null, // last incrementally shown item\r
+ eos: null, // span element for end of slide indicator\r
+ toc: null, // table of contents\r
+ outline: null, // outline element with the focus\r
+ selected_text_len: 0, // length of drag selection on document\r
+ view_all: 0, // 1 to view all slides + handouts\r
+ want_toolbar: true, // user preference to show/hide toolbar\r
+ mouse_click_enabled: true, // enables left click for next slide\r
+ scroll_hack: 0, // IE work around for position: fixed\r
+ disable_slide_click: false, // used by clicked anchors\r
+\r
+ lang: "en", // updated to language specified by html file\r
+\r
+ help_anchor: null, // used for keyboard focus hack in showToolbar()\r
+ help_page: "http://www.w3.org/Talks/Tools/Slidy2/help/help.html",\r
+ help_text: "Navigate with mouse click, space bar, Cursor Left/Right, " +\r
+ "or Pg Up and Pg Dn. Use S and B to change font size.",\r
+\r
+ size_index: 0,\r
+ size_adjustment: 0,\r
+ sizes: new Array("10pt", "12pt", "14pt", "16pt", "18pt", "20pt",\r
+ "22pt", "24pt", "26pt", "28pt", "30pt", "32pt"),\r
+\r
+ // needed for efficient resizing\r
+ last_width: 0,\r
+ last_height: 0,\r
+\r
+\r
+ // Needed for cross browser support for relative width/height on\r
+ // object elements. The work around is to save width/height attributes\r
+ // and then to recompute absolute width/height dimensions on resizing\r
+ objects: [],\r
+\r
+ // attach initialiation event handlers\r
+ set_up: function () {\r
+ var init = function() { w3c_slidy.init(); };\r
+ if (typeof window.addEventListener != "undefined")\r
+ window.addEventListener("load", init, false);\r
+ else\r
+ window.attachEvent("onload", init);\r
+ },\r
+\r
+ hide_slides: function () {\r
+ if (document.body && !w3c_slidy.initialized)\r
+ document.body.style.visibility = "hidden";\r
+ else\r
+ setTimeout(w3c_slidy.hide_slides, 50);\r
+ },\r
+\r
+ // hack to persuade IE to compute correct document height\r
+ // as needed for simulating fixed positioning of toolbar\r
+ ie_hack: function () {\r
+ window.resizeBy(0,-1);\r
+ window.resizeBy(0, 1);\r
+ },\r
+\r
+ init: function () {\r
+ //alert("slidy starting test 10");\r
+ document.body.style.visibility = "visible";\r
+ w3c_slidy_i18n.init();\r
+ this.add_toolbar();\r
+ this.wrap_implicit_slides();\r
+ this.collect_slides();\r
+ this.collect_notes();\r
+ this.collect_backgrounds();\r
+ this.objects = document.body.getElementsByTagName("object");\r
+ this.patch_anchors();\r
+ this.slide_number = this.find_slide_number(location.href);\r
+ window.offscreenbuffering = true;\r
+ this.size_adjustment = this.find_size_adjust();\r
+ this.time_left = this.find_duration();\r
+ this.hide_image_toolbar(); // suppress IE image toolbar popup\r
+ this.init_outliner(); // activate fold/unfold support\r
+ this.title = document.title;\r
+\r
+ // work around for opera bug\r
+ this.is_xhtml = (document.body.tagName == "BODY" ? false : true);\r
+\r
+ if (this.slides.length > 0)\r
+ {\r
+ var slide = this.slides[this.slide_number];\r
+\r
+ if (this.slide_number > 0)\r
+ {\r
+ this.set_visibility_all_incremental("visible");\r
+ this.last_shown = this.previous_incremental_item(null);\r
+ this.set_eos_status(true);\r
+ }\r
+ else\r
+ {\r
+ this.last_shown = null;\r
+ this.set_visibility_all_incremental("hidden");\r
+ this.set_eos_status(!this.next_incremental_item(this.last_shown));\r
+ }\r
+\r
+ this.set_location();\r
+ this.add_class(this.slides[0], "first-slide");\r
+ w3c_slidy.show_slide(slide);\r
+ }\r
+\r
+ this.toc = this.table_of_contents();\r
+\r
+ this.add_initial_prompt();\r
+\r
+ // bind event handlers without interfering with custom page scripts\r
+ // Tap events behave too weirdly to support clicks reliably on\r
+ // iPhone and iPad, so exclude these from click handler\r
+\r
+ if (!this.keyboardless)\r
+ this.add_listener(document.body, "click", this.mouse_button_click);\r
+\r
+ this.add_listener(document, "keydown", this.key_down);\r
+ this.add_listener(document, "keypress", this.key_press);\r
+ this.add_listener(window, "resize", this.resized);\r
+ this.add_listener(window, "scroll", this.scrolled);\r
+ this.add_listener(window, "unload", this.unloaded);\r
+\r
+ if (!document.body.onclick)\r
+ document.body.onclick = function () { };\r
+\r
+ this.single_slide_view();\r
+\r
+ //this.set_location();\r
+\r
+ this.resized();\r
+\r
+ if (this.ie7)\r
+ setTimeout(w3c_slidy.ie_hack, 100);\r
+\r
+ this.show_toolbar();\r
+\r
+ // for back button detection\r
+ setInterval(function () { w3c_slidy.check_location(); }, 200);\r
+ w3c_slidy.initialized = true;\r
+ },\r
+\r
+ // create div element with links to each slide\r
+ table_of_contents: function () {\r
+ var toc = this.create_element("div");\r
+ this.add_class(toc, "slidy_toc hidden");\r
+ //toc.setAttribute("tabindex", "0");\r
+\r
+ var heading = this.create_element("div");\r
+ this.add_class(heading, "toc-heading");\r
+ heading.innerHTML = "Table of Contents".localize();\r
+\r
+ toc.appendChild(heading);\r
+ var previous = null;\r
+\r
+ for (var i = 0; i < this.slides.length; ++i)\r
+ {\r
+ var title = this.has_class(this.slides[i], "title");\r
+ var num = document.createTextNode((i + 1) + ". ");\r
+\r
+ toc.appendChild(num);\r
+\r
+ var a = this.create_element("a");\r
+ a.setAttribute("href", "#(" + (i+1) + ")");\r
+\r
+ if (title)\r
+ this.add_class(a, "titleslide");\r
+\r
+ var name = document.createTextNode(this.slide_name(i));\r
+ a.appendChild(name);\r
+ a.onclick = w3c_slidy.toc_click;\r
+ a.onkeydown = w3c_slidy.toc_keydown;\r
+ a.previous = previous;\r
+\r
+ if (previous)\r
+ previous.next = a;\r
+\r
+ toc.appendChild(a);\r
+\r
+ if (i == 0)\r
+ toc.first = a;\r
+\r
+ if (i < this.slides.length - 1)\r
+ {\r
+ var br = this.create_element("br");\r
+ toc.appendChild(br);\r
+ }\r
+\r
+ previous = a;\r
+ }\r
+\r
+ toc.focus = function () {\r
+ if (this.first)\r
+ this.first.focus();\r
+ }\r
+\r
+ toc.onmouseup = w3c_slidy.mouse_button_up;\r
+\r
+ toc.onclick = function (e) {\r
+ e||(e=window.event);\r
+\r
+ if (w3c_slidy.selected_text_len <= 0)\r
+ w3c_slidy.hide_table_of_contents();\r
+\r
+ w3c_slidy.stop_propagation(e);\r
+\r
+ if (e.cancel != undefined)\r
+ e.cancel = true;\r
+\r
+ if (e.returnValue != undefined)\r
+ e.returnValue = false;\r
+\r
+ return false;\r
+ };\r
+\r
+ document.body.insertBefore(toc, document.body.firstChild);\r
+ return toc;\r
+ },\r
+\r
+ is_shown_toc: function () {\r
+ return !w3c_slidy.has_class(w3c_slidy.toc, "hidden");\r
+ },\r
+\r
+ show_table_of_contents: function () {\r
+ w3c_slidy.remove_class(w3c_slidy.toc, "hidden");\r
+ var toc = w3c_slidy.toc;\r
+ toc.focus();\r
+\r
+ if (w3c_slidy.ie7 && w3c_slidy.slide_number == 0)\r
+ setTimeout(w3c_slidy.ie_hack, 100);\r
+ },\r
+\r
+ hide_table_of_contents: function () {\r
+ w3c_slidy.add_class(w3c_slidy.toc, "hidden");\r
+\r
+ if (!w3c_slidy.opera)\r
+ w3c_slidy.help_anchor.focus();\r
+ },\r
+\r
+ toggle_table_of_contents: function () {\r
+ if (w3c_slidy.is_shown_toc())\r
+ w3c_slidy.hide_table_of_contents();\r
+ else\r
+ w3c_slidy.show_table_of_contents();\r
+ },\r
+\r
+ // called on clicking toc entry\r
+ toc_click: function (e) {\r
+ if (!e)\r
+ e = window.event;\r
+\r
+ var target = w3c_slidy.get_target(e);\r
+\r
+ if (target && target.nodeType == 1)\r
+ {\r
+ var uri = target.getAttribute("href");\r
+\r
+ if (uri)\r
+ {\r
+ //alert("going to " + uri);\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+ w3c_slidy.slide_number = w3c_slidy.find_slide_number(uri);\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.last_shown = null;\r
+ w3c_slidy.set_location();\r
+ w3c_slidy.set_visibility_all_incremental("hidden");\r
+ w3c_slidy.set_eos_status(!w3c_slidy.next_incremental_item(w3c_slidy.last_shown));\r
+ w3c_slidy.show_slide(slide);\r
+ //target.focus();\r
+\r
+ try\r
+ {\r
+ if (!w3c_slidy.opera)\r
+ w3c_slidy.help_anchor.focus();\r
+ }\r
+ catch (e)\r
+ {\r
+ }\r
+ }\r
+ }\r
+\r
+ w3c_slidy.hide_table_of_contents(e);\r
+ if (w3c_slidy.ie7) w3c_slidy.ie_hack();\r
+ w3c_slidy.stop_propagation(e);\r
+ return w3c_slidy.cancel(e);\r
+ },\r
+\r
+ // called onkeydown for toc entry\r
+ toc_keydown: function (event) {\r
+ var key;\r
+\r
+ if (!event)\r
+ var event = window.event;\r
+\r
+ // kludge around NS/IE differences\r
+ if (window.event)\r
+ key = window.event.keyCode;\r
+ else if (event.which)\r
+ key = event.which;\r
+ else\r
+ return true; // Yikes! unknown browser\r
+\r
+ // ignore event if key value is zero\r
+ // as for alt on Opera and Konqueror\r
+ if (!key)\r
+ return true;\r
+\r
+ // check for concurrent control/command/alt key\r
+ // but are these only present on mouse events?\r
+\r
+ if (event.ctrlKey || event.altKey)\r
+ return true;\r
+\r
+ if (key == 13)\r
+ {\r
+ var uri = this.getAttribute("href");\r
+\r
+ if (uri)\r
+ {\r
+ //alert("going to " + uri);\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+ w3c_slidy.slide_number = w3c_slidy.find_slide_number(uri);\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.last_shown = null;\r
+ w3c_slidy.set_location();\r
+ w3c_slidy.set_visibility_all_incremental("hidden");\r
+ w3c_slidy.set_eos_status(!w3c_slidy.next_incremental_item(w3c_slidy.last_shown));\r
+ w3c_slidy.show_slide(slide);\r
+ //target.focus();\r
+\r
+ try\r
+ {\r
+ if (!w3c_slidy.opera)\r
+ w3c_slidy.help_anchor.focus();\r
+ }\r
+ catch (e)\r
+ {\r
+ }\r
+ }\r
+\r
+ w3c_slidy.hide_table_of_contents();\r
+\r
+ if (self.ie7)\r
+ w3c_slidy.ie_hack();\r
+\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+\r
+ if (key == 40 && this.next)\r
+ {\r
+ this.next.focus();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+\r
+ if (key == 38 && this.previous)\r
+ {\r
+ this.previous.focus();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+\r
+ return true;\r
+ },\r
+\r
+\r
+ // ### OBSOLETE ###\r
+ before_print: function () {\r
+ this.show_all_slides();\r
+ this.hide_toolbar();\r
+ alert("before print");\r
+ },\r
+\r
+ // ### OBSOLETE ###\r
+ after_print: function () {\r
+ if (!this.view_all)\r
+ {\r
+ this.single_slide_view();\r
+ this.show_toolbar();\r
+ }\r
+ alert("after print");\r
+ },\r
+\r
+ // ### OBSOLETE ###\r
+ print_slides: function () {\r
+ this.before_print();\r
+ window.print();\r
+ this.after_print();\r
+ },\r
+\r
+ // ### OBSOLETE ?? ###\r
+ toggle_view: function () {\r
+ if (this.view_all)\r
+ {\r
+ this.single_slide_view();\r
+ this.show_toolbar();\r
+ this.view_all = 0;\r
+ }\r
+ else\r
+ {\r
+ this.show_all_slides();\r
+ this.hide_toolbar();\r
+ this.view_all = 1;\r
+ }\r
+ },\r
+\r
+ // prepare for printing ### OBSOLETE ###\r
+ show_all_slides: function () {\r
+ this.remove_class(document.body, "single_slide");\r
+ this.set_visibility_all_incremental("visible");\r
+ },\r
+\r
+ // restore after printing ### OBSOLETE ###\r
+ single_slide_view: function () {\r
+ this.add_class(document.body, "single_slide");\r
+ this.set_visibility_all_incremental("visible");\r
+ this.last_shown = this.previous_incremental_item(null);\r
+ },\r
+\r
+ // suppress IE's image toolbar pop up\r
+ hide_image_toolbar: function () {\r
+ if (!this.ns_pos)\r
+ {\r
+ var images = document.getElementsByTagName("IMG");\r
+\r
+ for (var i = 0; i < images.length; ++i)\r
+ images[i].setAttribute("galleryimg", "no");\r
+ }\r
+ },\r
+\r
+ unloaded: function (e) {\r
+ //alert("unloaded");\r
+ },\r
+\r
+ // Safari and Konqueror don't yet support getComputedStyle()\r
+ // and they always reload page when location.href is updated\r
+ is_KHTML: function () {\r
+ var agent = navigator.userAgent;\r
+ return (agent.indexOf("KHTML") >= 0 ? true : false);\r
+ },\r
+\r
+ // find slide name from first h1 element\r
+ // default to document title + slide number\r
+ slide_name: function (index) {\r
+ var name = null;\r
+ var slide = this.slides[index];\r
+\r
+ var heading = this.find_heading(slide);\r
+\r
+ if (heading)\r
+ name = this.extract_text(heading);\r
+\r
+ if (!name)\r
+ name = this.title + "(" + (index + 1) + ")";\r
+\r
+ name.replace(/\&/g, "&");\r
+ name.replace(/\</g, "<");\r
+ name.replace(/\>/g, ">");\r
+\r
+ return name;\r
+ },\r
+\r
+ // find first h1 element in DOM tree\r
+ find_heading: function (node) {\r
+ if (!node || node.nodeType != 1)\r
+ return null;\r
+\r
+ if (node.nodeName == "H1" || node.nodeName == "h1")\r
+ return node;\r
+\r
+ var child = node.firstChild;\r
+\r
+ while (child)\r
+ {\r
+ node = this.find_heading(child);\r
+\r
+ if (node)\r
+ return node;\r
+\r
+ child = child.nextSibling;\r
+ }\r
+\r
+ return null;\r
+ },\r
+\r
+ // recursively extract text from DOM tree\r
+ extract_text: function (node) {\r
+ if (!node)\r
+ return "";\r
+\r
+ // text nodes\r
+ if (node.nodeType == 3)\r
+ return node.nodeValue;\r
+\r
+ // elements\r
+ if (node.nodeType == 1)\r
+ {\r
+ node = node.firstChild;\r
+ var text = "";\r
+\r
+ while (node)\r
+ {\r
+ text = text + this.extract_text(node);\r
+ node = node.nextSibling;\r
+ }\r
+\r
+ return text;\r
+ }\r
+\r
+ return "";\r
+ },\r
+\r
+ // find copyright text from meta element\r
+ find_copyright: function () {\r
+ var name, content;\r
+ var meta = document.getElementsByTagName("meta");\r
+\r
+ for (var i = 0; i < meta.length; ++i)\r
+ {\r
+ name = meta[i].getAttribute("name");\r
+ content = meta[i].getAttribute("content");\r
+\r
+ if (name == "copyright")\r
+ return content;\r
+ }\r
+\r
+ return null;\r
+ },\r
+\r
+ find_size_adjust: function () {\r
+ var name, content, offset;\r
+ var meta = document.getElementsByTagName("meta");\r
+\r
+ for (var i = 0; i < meta.length; ++i)\r
+ {\r
+ name = meta[i].getAttribute("name");\r
+ content = meta[i].getAttribute("content");\r
+\r
+ if (name == "font-size-adjustment")\r
+ return 1 * content;\r
+ }\r
+\r
+ return 1;\r
+ },\r
+\r
+ // <meta name="duration" content="20" /> for 20 minutes\r
+ find_duration: function () {\r
+ var name, content, offset;\r
+ var meta = document.getElementsByTagName("meta");\r
+\r
+ for (var i = 0; i < meta.length; ++i)\r
+ {\r
+ name = meta[i].getAttribute("name");\r
+ content = meta[i].getAttribute("content");\r
+\r
+ if (name == "duration")\r
+ return 60000 * content;\r
+ }\r
+\r
+ return null;\r
+ },\r
+\r
+ replace_by_non_breaking_space: function (str) {\r
+ for (var i = 0; i < str.length; ++i)\r
+ str[i] = 160;\r
+ },\r
+\r
+ // ### CHECK ME ### is use of "li" okay for text/html?\r
+ // for XHTML do we also need to specify namespace?\r
+ init_outliner: function () {\r
+ var items = document.getElementsByTagName("li");\r
+\r
+ for (var i = 0; i < items.length; ++i)\r
+ {\r
+ var target = items[i];\r
+\r
+ if (!this.has_class(target.parentNode, "outline"))\r
+ continue;\r
+\r
+ target.onclick = this.outline_click;\r
+/* ### more work needed for IE6\r
+ if (!this.ns_pos)\r
+ {\r
+ target.onmouseover = this.hover_outline;\r
+ target.onmouseout = this.unhover_outline;\r
+ }\r
+*/\r
+ if (this.foldable(target))\r
+ {\r
+ target.foldable = true;\r
+ target.onfocus = function () {w3c_slidy.outline = this;};\r
+ target.onblur = function () {w3c_slidy.outline = null;};\r
+\r
+ if (!target.getAttribute("tabindex"))\r
+ target.setAttribute("tabindex", "0");\r
+\r
+ if (this.has_class(target, "expand"))\r
+ this.unfold(target);\r
+ else\r
+ this.fold(target);\r
+ }\r
+ else\r
+ {\r
+ this.add_class(target, "nofold");\r
+ target.visible = true;\r
+ target.foldable = false;\r
+ }\r
+ }\r
+ },\r
+\r
+ foldable: function (item) {\r
+ if (!item || item.nodeType != 1)\r
+ return false;\r
+\r
+ var node = item.firstChild;\r
+\r
+ while (node)\r
+ {\r
+ if (node.nodeType == 1 && this.is_block(node))\r
+ return true;\r
+\r
+ node = node.nextSibling;\r
+ }\r
+\r
+ return false;\r
+ },\r
+\r
+ // ### CHECK ME ### switch to add/remove "hidden" class\r
+ fold: function (item) {\r
+ if (item)\r
+ {\r
+ this.remove_class(item, "unfolded");\r
+ this.add_class(item, "folded");\r
+ }\r
+\r
+ var node = item ? item.firstChild : null;\r
+\r
+ while (node)\r
+ {\r
+ if (node.nodeType == 1 && this.is_block(node)) // element\r
+ {\r
+ w3c_slidy.add_class(node, "hidden");\r
+ }\r
+\r
+ node = node.nextSibling;\r
+ }\r
+\r
+ item.visible = false;\r
+ },\r
+\r
+ // ### CHECK ME ### switch to add/remove "hidden" class\r
+ unfold: function (item) {\r
+ if (item)\r
+ {\r
+ this.add_class(item, "unfolded");\r
+ this.remove_class(item, "folded");\r
+ }\r
+\r
+ var node = item ? item.firstChild : null;\r
+\r
+ while (node)\r
+ {\r
+ if (node.nodeType == 1 && this.is_block(node)) // element\r
+ {\r
+ w3c_slidy.remove_class(node, "hidden");\r
+ }\r
+\r
+ node = node.nextSibling;\r
+ }\r
+\r
+ item.visible = true;\r
+ },\r
+\r
+ outline_click: function (e) {\r
+ if (!e)\r
+ e = window.event;\r
+\r
+ var rightclick = false;\r
+ var target = w3c_slidy.get_target(e);\r
+\r
+ while (target && target.visible == undefined)\r
+ target = target.parentNode;\r
+\r
+ if (!target)\r
+ return true;\r
+\r
+ if (e.which)\r
+ rightclick = (e.which == 3);\r
+ else if (e.button)\r
+ rightclick = (e.button == 2);\r
+\r
+ if (!rightclick && target.visible != undefined)\r
+ {\r
+ if (target.foldable)\r
+ {\r
+ if (target.visible)\r
+ w3c_slidy.fold(target);\r
+ else\r
+ w3c_slidy.unfold(target);\r
+ }\r
+\r
+ w3c_slidy.stop_propagation(e);\r
+ e.cancel = true;\r
+ e.returnValue = false;\r
+ }\r
+\r
+ return false;\r
+ },\r
+\r
+ add_initial_prompt: function () {\r
+ var prompt = this.create_element("div");\r
+ prompt.setAttribute("class", "initial_prompt");\r
+\r
+ var p1 = this.create_element("p");\r
+ prompt.appendChild(p1);\r
+ p1.setAttribute("class", "help");\r
+\r
+ if (this.keyboardless)\r
+ p1.innerHTML = "Tap footer to move to next slide";\r
+ else\r
+ p1.innerHTML = "Space or Right Arrow to move to next " +\r
+ "slide, click help below for more details";\r
+\r
+ this.add_listener(prompt, "click", function (e) {\r
+ document.body.removeChild(prompt);\r
+ w3c_slidy.stop_propagation(e);\r
+\r
+ if (e.cancel != undefined)\r
+ e.cancel = true;\r
+\r
+ if (e.returnValue != undefined)\r
+ e.returnValue = false;\r
+\r
+ return false;\r
+ });\r
+\r
+ document.body.appendChild(prompt);\r
+ this.initial_prompt = prompt;\r
+ setTimeout(function() {document.body.removeChild(prompt);}, 5000);\r
+ },\r
+\r
+ add_toolbar: function () {\r
+ var counter, page;\r
+\r
+ this.toolbar = this.create_element("div");\r
+ this.toolbar.setAttribute("class", "toolbar");\r
+\r
+ // a reasonably behaved browser\r
+ if (this.ns_pos || !this.ie6)\r
+ {\r
+ var right = this.create_element("div");\r
+ right.setAttribute("style", "float: right; text-align: right");\r
+\r
+ counter = this.create_element("span")\r
+ counter.innerHTML = "slide".localize() + " n/m";\r
+ right.appendChild(counter);\r
+ this.toolbar.appendChild(right);\r
+\r
+ var left = this.create_element("div");\r
+ left.setAttribute("style", "text-align: left");\r
+\r
+ // global end of slide indicator\r
+ this.eos = this.create_element("span");\r
+ this.eos.innerHTML = "* ";\r
+ left.appendChild(this.eos);\r
+\r
+ var help = this.create_element("a");\r
+ help.setAttribute("href", this.help_page);\r
+ help.setAttribute("title", this.help_text.localize());\r
+ help.innerHTML = "help?".localize();\r
+ left.appendChild(help);\r
+ this.help_anchor = help; // save for focus hack\r
+\r
+ var gap1 = document.createTextNode(" ");\r
+ left.appendChild(gap1);\r
+\r
+ var contents = this.create_element("a");\r
+ contents.setAttribute("href", "javascript:w3c_slidy.toggle_table_of_contents()");\r
+ contents.setAttribute("title", "table of contents".localize());\r
+ contents.innerHTML = "contents?".localize();\r
+ left.appendChild(contents);\r
+\r
+ var gap2 = document.createTextNode(" ");\r
+ left.appendChild(gap2);\r
+\r
+ var copyright = this.find_copyright();\r
+\r
+ if (copyright)\r
+ {\r
+ var span = this.create_element("span");\r
+ span.className = "copyright";\r
+ span.innerHTML = copyright;\r
+ left.appendChild(span);\r
+ }\r
+\r
+ this.toolbar.setAttribute("tabindex", "0");\r
+ this.toolbar.appendChild(left);\r
+ }\r
+ else // IE6 so need to work around its poor CSS support\r
+ {\r
+ this.toolbar.style.position = (this.ie7 ? "fixed" : "absolute");\r
+ this.toolbar.style.zIndex = "200";\r
+ this.toolbar.style.width = "99.9%";\r
+ this.toolbar.style.height = "1.2em";\r
+ this.toolbar.style.top = "auto";\r
+ this.toolbar.style.bottom = "0";\r
+ this.toolbar.style.left = "0";\r
+ this.toolbar.style.right = "0";\r
+ this.toolbar.style.textAlign = "left";\r
+ this.toolbar.style.fontSize = "60%";\r
+ this.toolbar.style.color = "red";\r
+ this.toolbar.borderWidth = 0;\r
+ this.toolbar.className = "toolbar";\r
+ this.toolbar.style.background = "rgb(240,240,240)";\r
+\r
+ // would like to have help text left aligned\r
+ // and page counter right aligned, floating\r
+ // div's don't work, so instead use nested\r
+ // absolutely positioned div's.\r
+\r
+ var sp = this.create_element("span");\r
+ sp.innerHTML = " * ";\r
+ this.toolbar.appendChild(sp);\r
+ this.eos = sp; // end of slide indicator\r
+\r
+ var help = this.create_element("a");\r
+ help.setAttribute("href", this.help_page);\r
+ help.setAttribute("title", this.help_text.localize());\r
+ help.innerHTML = "help?".localize();\r
+ this.toolbar.appendChild(help);\r
+ this.help_anchor = help; // save for focus hack\r
+\r
+ var gap1 = document.createTextNode(" ");\r
+ this.toolbar.appendChild(gap1);\r
+\r
+ var contents = this.create_element("a");\r
+ contents.setAttribute("href", "javascript:toggleTableOfContents()");\r
+ contents.setAttribute("title", "table of contents".localize());\r
+ contents.innerHTML = "contents?".localize();\r
+ this.toolbar.appendChild(contents);\r
+\r
+ var gap2 = document.createTextNode(" ");\r
+ this.toolbar.appendChild(gap2);\r
+\r
+ var copyright = this.find_copyright();\r
+\r
+ if (copyright)\r
+ {\r
+ var span = this.create_element("span");\r
+ span.innerHTML = copyright;\r
+ span.style.color = "black";\r
+ span.style.marginLeft = "0.5em";\r
+ this.toolbar.appendChild(span);\r
+ }\r
+\r
+ counter = this.create_element("div")\r
+ counter.style.position = "absolute";\r
+ counter.style.width = "auto"; //"20%";\r
+ counter.style.height = "1.2em";\r
+ counter.style.top = "auto";\r
+ counter.style.bottom = 0;\r
+ counter.style.right = "0";\r
+ counter.style.textAlign = "right";\r
+ counter.style.color = "red";\r
+ counter.style.background = "rgb(240,240,240)";\r
+\r
+ counter.innerHTML = "slide".localize() + " n/m";\r
+ this.toolbar.appendChild(counter);\r
+ }\r
+\r
+ // ensure that click isn't passed through to the page\r
+ this.toolbar.onclick =\r
+ function (e) {\r
+ if (!e)\r
+ e = window.event;\r
+\r
+ var target = e.target;\r
+\r
+ if (!target && e.srcElement)\r
+ target = e.srcElement;\r
+\r
+ // work around Safari bug\r
+ if (target && target.nodeType == 3)\r
+ target = target.parentNode;\r
+\r
+ w3c_slidy.stop_propagation(e);\r
+\r
+ if (target && target.nodeName.toLowerCase() != "a")\r
+ w3c_slidy.mouse_button_click(e);\r
+ };\r
+\r
+ this.slide_number_element = counter;\r
+ this.set_eos_status(false);\r
+ document.body.appendChild(this.toolbar);\r
+ },\r
+\r
+ // wysiwyg editors make it hard to use div elements\r
+ // e.g. amaya loses the div when you copy and paste\r
+ // this function wraps div elements around implicit\r
+ // slides which start with an h1 element and continue\r
+ // up to the next heading or div element\r
+ wrap_implicit_slides: function () {\r
+ var i, heading, node, next, div;\r
+ var headings = document.getElementsByTagName("h1");\r
+\r
+ if (!headings)\r
+ return;\r
+\r
+ for (i = 0; i < headings.length; ++i)\r
+ {\r
+ heading = headings[i];\r
+\r
+ if (heading.parentNode != document.body)\r
+ continue;\r
+\r
+ node = heading.nextSibling;\r
+\r
+ div = document.createElement("div");\r
+ this.add_class(div, "slide");\r
+ document.body.replaceChild(div, heading);\r
+ div.appendChild(heading);\r
+\r
+ while (node)\r
+ {\r
+ if (node.nodeType == 1 && // an element\r
+ (node.nodeName == "H1" ||\r
+ node.nodeName == "h1" ||\r
+ node.nodeName == "DIV" ||\r
+ node.nodeName == "div"))\r
+ break;\r
+\r
+ next = node.nextSibling;\r
+ node = document.body.removeChild(node);\r
+ div.appendChild(node);\r
+ node = next;\r
+ }\r
+ }\r
+ },\r
+\r
+// return new array of all slides\r
+ collect_slides: function () {\r
+ var slides = new Array();\r
+ var divs = document.body.getElementsByTagName("div");\r
+\r
+ for (var i = 0; i < divs.length; ++i)\r
+ {\r
+ div = divs.item(i);\r
+\r
+ if (this.has_class(div, "slide"))\r
+ {\r
+ // add slide to collection\r
+ slides[slides.length] = div;\r
+\r
+ // hide each slide as it is found\r
+ this.add_class(div, "hidden");\r
+\r
+ // add dummy <br/> at end for scrolling hack\r
+ var node1 = document.createElement("br");\r
+ div.appendChild(node1);\r
+ var node2 = document.createElement("br");\r
+ div.appendChild(node2);\r
+ }\r
+ else if (this.has_class(div, "background"))\r
+ { // work around for Firefox SVG reload bug\r
+ // which otherwise replaces 1st SVG graphic with 2nd\r
+ div.style.display = "block";\r
+ }\r
+ }\r
+\r
+ this.slides = slides;\r
+ },\r
+\r
+ // return new array of all <div class="handout">\r
+ collect_notes: function () {\r
+ var notes = new Array();\r
+ var divs = document.body.getElementsByTagName("div");\r
+\r
+ for (var i = 0; i < divs.length; ++i)\r
+ {\r
+ div = divs.item(i);\r
+\r
+ if (this.has_class(div, "handout"))\r
+ {\r
+ // add note to collection\r
+ notes[notes.length] = div;\r
+\r
+ // and hide it\r
+ this.add_class(div, "hidden");\r
+ }\r
+ }\r
+\r
+ this.notes = notes;\r
+ },\r
+\r
+ // return new array of all <div class="background">\r
+ // including named backgrounds e.g. class="background titlepage"\r
+ collect_backgrounds: function () {\r
+ var backgrounds = new Array();\r
+ var divs = document.body.getElementsByTagName("div");\r
+\r
+ for (var i = 0; i < divs.length; ++i)\r
+ {\r
+ div = divs.item(i);\r
+\r
+ if (this.has_class(div, "background"))\r
+ {\r
+ // add background to collection\r
+ backgrounds[backgrounds.length] = div;\r
+\r
+ // and hide it\r
+ this.add_class(div, "hidden");\r
+ }\r
+ }\r
+\r
+ this.backgrounds = backgrounds;\r
+ },\r
+\r
+ // set click handlers on all anchors\r
+ patch_anchors: function () {\r
+ var self = w3c_slidy;\r
+ var handler = function (event) {\r
+ // compare this.href with location.href\r
+ // for link to another slide in this doc\r
+\r
+ if (self.page_address(this.href) == self.page_address(location.href))\r
+ {\r
+ // yes, so find new slide number\r
+ var newslidenum = self.find_slide_number(this.href);\r
+\r
+ if (newslidenum != self.slide_number)\r
+ {\r
+ var slide = self.slides[self.slide_number];\r
+ self.hide_slide(slide);\r
+ self.slide_number = newslidenum;\r
+ slide = self.slides[self.slide_number];\r
+ self.show_slide(slide);\r
+ self.set_location();\r
+ }\r
+ }\r
+ else if (this.target == null)\r
+ location.href = this.href;\r
+\r
+ this.blur();\r
+ self.disable_slide_click = true;\r
+ };\r
+\r
+ var anchors = document.body.getElementsByTagName("a");\r
+\r
+ for (var i = 0; i < anchors.length; ++i)\r
+ {\r
+ if (window.addEventListener)\r
+ anchors[i].addEventListener("click", handler, false);\r
+ else\r
+ anchors[i].attachEvent("onclick", handler);\r
+ }\r
+ },\r
+\r
+ // ### CHECK ME ### see which functions are invoked via setTimeout\r
+ // either directly or indirectly for use of w3c_slidy vs this\r
+ show_slide_number: function () {\r
+ var timer = w3c_slidy.get_timer();\r
+ w3c_slidy.slide_number_element.innerHTML = timer + "slide".localize() + " " +\r
+ (w3c_slidy.slide_number + 1) + "/" + w3c_slidy.slides.length;\r
+ },\r
+\r
+ // every 200mS check if the location has been changed as a\r
+ // result of the user activating the Back button/menu item\r
+ // doesn't work for Opera < 9.5\r
+ check_location: function () {\r
+ var hash = location.hash;\r
+\r
+ if (w3c_slidy.slide_number > 0 && (hash == "" || hash == "#"))\r
+ w3c_slidy.goto_slide(0);\r
+ else if (hash.length > 2 && hash != "#("+(w3c_slidy.slide_number+1)+")")\r
+ {\r
+ var num = parseInt(location.hash.substr(2));\r
+\r
+ if (!isNaN(num))\r
+ w3c_slidy.goto_slide(num-1);\r
+ }\r
+\r
+ if (w3c_slidy.time_left && w3c_slidy.slide_number > 0)\r
+ {\r
+ w3c_slidy.show_slide_number();\r
+\r
+ if (w3c_slidy.time_left > 0)\r
+ w3c_slidy.time_left -= 200;\r
+ }\r
+ },\r
+\r
+ get_timer: function () {\r
+ var timer = "";\r
+ if (w3c_slidy.time_left)\r
+ {\r
+ var mins, secs;\r
+ secs = Math.floor(w3c_slidy.time_left/1000);\r
+ mins = Math.floor(secs / 60);\r
+ secs = secs % 60;\r
+ timer = (mins ? mins+"m" : "") + secs + "s ";\r
+ }\r
+\r
+ return timer;\r
+ },\r
+\r
+ // this doesn't push location onto history stack for IE\r
+ // for which a hidden iframe hack is needed: load page into\r
+ // the iframe with script that set's parent's location.hash\r
+ // but that won't work for standalone use unless we can\r
+ // create the page dynamically via a javascript: URL\r
+ set_location: function () {\r
+ var uri = w3c_slidy.page_address(location.href);\r
+ var hash = "#(" + (w3c_slidy.slide_number+1) + ")";\r
+\r
+ if (w3c_slidy.slide_number >= 0)\r
+ uri = uri + hash;\r
+\r
+ if (w3c_slidy.ie && !w3c_slidy.ie8)\r
+ w3c_slidy.push_hash(hash);\r
+\r
+ if (uri != location.href) // && !khtml\r
+ location.href = uri;\r
+\r
+ if (this.khtml)\r
+ hash = "(" + (w3c_slidy.slide_number+1) + ")";\r
+\r
+ if (!this.ie && location.hash != hash && location.hash != "")\r
+ location.hash = hash;\r
+\r
+ document.title = w3c_slidy.title + " (" + (w3c_slidy.slide_number+1) + ")";\r
+ w3c_slidy.show_slide_number();\r
+ },\r
+\r
+ page_address: function (uri) {\r
+ var i = uri.indexOf("#");\r
+\r
+ if (i < 0)\r
+ i = uri.indexOf("%23");\r
+\r
+ // check if anchor is entire page\r
+\r
+ if (i < 0)\r
+ return uri; // yes\r
+\r
+ return uri.substr(0, i);\r
+ },\r
+\r
+ // only used for IE6 and IE7\r
+ on_frame_loaded: function (hash) {\r
+ location.hash = hash;\r
+ var uri = w3c_slidy.page_address(location.href);\r
+ location.href = uri + hash;\r
+ },\r
+\r
+ // history hack with thanks to Bertrand Le Roy\r
+ push_hash: function (hash) {\r
+ if (hash == "") hash = "#(1)";\r
+ window.location.hash = hash;\r
+\r
+ var doc = document.getElementById("historyFrame").contentWindow.document;\r
+ doc.open("javascript:'<html></html>'");\r
+ // PWL modified this string literal to break the close script tag\r
+ // which otherwise gets parsed when incorporated\r
+ doc.write("<html><head><script type=\"text/javascript\">window.parent.w3c_slidy.on_frame_loaded('"+\r
+ (hash) + "');</" + "script></head><body>hello mum</body></html>");\r
+ doc.close();\r
+ },\r
+\r
+ // find current slide based upon location\r
+ // first find target anchor and then look\r
+ // for associated div element enclosing it\r
+ // finally map that to slide number\r
+ find_slide_number: function (uri) {\r
+ // first get anchor from page location\r
+\r
+ var i = uri.indexOf("#");\r
+\r
+ // check if anchor is entire page\r
+ if (i < 0)\r
+ return 0; // yes\r
+\r
+ var anchor = unescape(uri.substr(i+1));\r
+\r
+ // now use anchor as XML ID to find target\r
+ var target = document.getElementById(anchor);\r
+\r
+ if (!target)\r
+ {\r
+ // does anchor look like "(2)" for slide 2 ??\r
+ // where first slide is (1)\r
+ var re = /\((\d)+\)/;\r
+\r
+ if (anchor.match(re))\r
+ {\r
+ var num = parseInt(anchor.substring(1, anchor.length-1));\r
+\r
+ if (num > this.slides.length)\r
+ num = 1;\r
+\r
+ if (--num < 0)\r
+ num = 0;\r
+\r
+ return num;\r
+ }\r
+\r
+ // accept [2] for backwards compatibility\r
+ re = /\[(\d)+\]/;\r
+\r
+ if (anchor.match(re))\r
+ {\r
+ var num = parseInt(anchor.substring(1, anchor.length-1));\r
+\r
+ if (num > this.slides.length)\r
+ num = 1;\r
+\r
+ if (--num < 0)\r
+ num = 0;\r
+\r
+ return num;\r
+ }\r
+\r
+ // oh dear unknown anchor\r
+ return 0;\r
+ }\r
+\r
+ // search for enclosing slide\r
+\r
+ while (true)\r
+ {\r
+ // browser coerces html elements to uppercase!\r
+ if (target.nodeName.toLowerCase() == "div" &&\r
+ this.has_class(target, "slide"))\r
+ {\r
+ // found the slide element\r
+ break;\r
+ }\r
+\r
+ // otherwise try parent element if any\r
+\r
+ target = target.parentNode;\r
+\r
+ if (!target)\r
+ {\r
+ return 0; // no luck!\r
+ }\r
+ };\r
+\r
+ for (i = 0; i < slides.length; ++i)\r
+ {\r
+ if (slides[i] == target)\r
+ return i; // success\r
+ }\r
+\r
+ // oh dear still no luck\r
+ return 0;\r
+ },\r
+\r
+ previous_slide: function (incremental) {\r
+ if (!w3c_slidy.view_all)\r
+ {\r
+ var slide;\r
+\r
+ if ((incremental || w3c_slidy.slide_number == 0) && w3c_slidy.last_shown != null)\r
+ {\r
+ w3c_slidy.last_shown = w3c_slidy.hide_previous_item(w3c_slidy.last_shown);\r
+ w3c_slidy.set_eos_status(false);\r
+ }\r
+ else if (w3c_slidy.slide_number > 0)\r
+ {\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+\r
+ w3c_slidy.slide_number = w3c_slidy.slide_number - 1;\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.set_visibility_all_incremental("visible");\r
+ w3c_slidy.last_shown = w3c_slidy.previous_incremental_item(null);\r
+ w3c_slidy.set_eos_status(true);\r
+ w3c_slidy.show_slide(slide);\r
+ }\r
+\r
+ w3c_slidy.set_location();\r
+\r
+ if (!w3c_slidy.ns_pos)\r
+ w3c_slidy.refresh_toolbar(200);\r
+ }\r
+ },\r
+\r
+ next_slide: function (incremental) {\r
+ if (!w3c_slidy.view_all)\r
+ {\r
+ var slide, last = w3c_slidy.last_shown;\r
+\r
+ if (incremental || w3c_slidy.slide_number == w3c_slidy.slides.length - 1)\r
+ w3c_slidy.last_shown = w3c_slidy.reveal_next_item(w3c_slidy.last_shown);\r
+\r
+ if ((!incremental || w3c_slidy.last_shown == null) &&\r
+ w3c_slidy.slide_number < w3c_slidy.slides.length - 1)\r
+ {\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+\r
+ w3c_slidy.slide_number = w3c_slidy.slide_number + 1;\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.last_shown = null;\r
+ w3c_slidy.set_visibility_all_incremental("hidden");\r
+ w3c_slidy.show_slide(slide);\r
+ }\r
+ else if (!w3c_slidy.last_shown)\r
+ {\r
+ if (last && incremental)\r
+ w3c_slidy.last_shown = last;\r
+ }\r
+\r
+ w3c_slidy.set_location();\r
+\r
+ w3c_slidy.set_eos_status(!w3c_slidy.next_incremental_item(w3c_slidy.last_shown));\r
+\r
+ if (!w3c_slidy.ns_pos)\r
+ w3c_slidy.refresh_toolbar(200);\r
+ }\r
+ },\r
+\r
+ // to first slide with nothing revealed\r
+ // i.e. state at start of presentation\r
+ first_slide: function () {\r
+ if (!w3c_slidy.view_all)\r
+ {\r
+ var slide;\r
+\r
+ if (w3c_slidy.slide_number != 0)\r
+ {\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+\r
+ w3c_slidy.slide_number = 0;\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.last_shown = null;\r
+ w3c_slidy.set_visibility_all_incremental("hidden");\r
+ w3c_slidy.show_slide(slide);\r
+ }\r
+\r
+ w3c_slidy.set_eos_status(\r
+ !w3c_slidy.next_incremental_item(w3c_slidy.last_shown));\r
+ w3c_slidy.set_location();\r
+ }\r
+ },\r
+\r
+ // goto last slide with everything revealed\r
+ // i.e. state at end of presentation\r
+ last_slide: function () {\r
+ if (!w3c_slidy.view_all)\r
+ {\r
+ var slide;\r
+\r
+ w3c_slidy.last_shown = null; //revealNextItem(lastShown);\r
+\r
+ if (w3c_slidy.last_shown == null &&\r
+ w3c_slidy.slide_number < w3c_slidy.slides.length - 1)\r
+ {\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+ w3c_slidy.slide_number = w3c_slidy.slides.length - 1;\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.set_visibility_all_incremental("visible");\r
+ w3c_slidy.last_shown = w3c_slidy.previous_incremental_item(null);\r
+\r
+ w3c_slidy.show_slide(slide);\r
+ }\r
+ else\r
+ {\r
+ w3c_slidy.set_visibility_all_incremental("visible");\r
+ w3c_slidy.last_shown = w3c_slidy.previous_incremental_item(null);\r
+ }\r
+\r
+ w3c_slidy.set_eos_status(true);\r
+ w3c_slidy.set_location();\r
+ }\r
+ },\r
+\r
+\r
+ // ### check this and consider add/remove class\r
+ set_eos_status: function (state) {\r
+ if (this.eos)\r
+ this.eos.style.color = (state ? "rgb(240,240,240)" : "red");\r
+ },\r
+\r
+ // first slide is 0\r
+ goto_slide: function (num) {\r
+ //alert("going to slide " + (num+1));\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+ w3c_slidy.slide_number = num;\r
+ slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.last_shown = null;\r
+ w3c_slidy.set_visibility_all_incremental("hidden");\r
+ w3c_slidy.set_eos_status(!w3c_slidy.next_incremental_item(w3c_slidy.last_shown));\r
+ document.title = w3c_slidy.title + " (" + (w3c_slidy.slide_number+1) + ")";\r
+ w3c_slidy.show_slide(slide);\r
+ w3c_slidy.show_slide_number();\r
+ },\r
+\r
+\r
+ show_slide: function (slide) {\r
+ this.sync_background(slide);\r
+ window.scrollTo(0,0);\r
+ this.remove_class(slide, "hidden");\r
+ },\r
+\r
+ hide_slide: function (slide) {\r
+ this.add_class(slide, "hidden");\r
+ },\r
+\r
+ // show just the backgrounds pertinent to this slide\r
+ // when slide background-color is transparent\r
+ // this should now work with rgba color values\r
+ sync_background: function (slide) {\r
+ var background;\r
+ var bgColor;\r
+\r
+ if (slide.currentStyle)\r
+ bgColor = slide.currentStyle["backgroundColor"];\r
+ else if (document.defaultView)\r
+ {\r
+ var styles = document.defaultView.getComputedStyle(slide,null);\r
+\r
+ if (styles)\r
+ bgColor = styles.getPropertyValue("background-color");\r
+ else // broken implementation probably due Safari or Konqueror\r
+ {\r
+ //alert("defective implementation of getComputedStyle()");\r
+ bgColor = "transparent";\r
+ }\r
+ }\r
+ else\r
+ bgColor == "transparent";\r
+\r
+ if (bgColor == "transparent" ||\r
+ bgColor.indexOf("rgba") >= 0 ||\r
+ bgColor.indexOf("opacity") >= 0)\r
+ {\r
+ var slideClass = this.get_class_list(slide);\r
+\r
+ for (var i = 0; i < this.backgrounds.length; i++)\r
+ {\r
+ background = this.backgrounds[i];\r
+\r
+ var bgClass = this.get_class_list(background);\r
+\r
+ if (this.matching_background(slideClass, bgClass))\r
+ this.remove_class(background, "hidden");\r
+ else\r
+ this.add_class(background, "hidden");\r
+ }\r
+ }\r
+ else // forcibly hide all backgrounds\r
+ this.hide_backgrounds();\r
+ },\r
+\r
+ hide_backgrounds: function () {\r
+ for (var i = 0; i < this.backgrounds.length; i++)\r
+ {\r
+ background = this.backgrounds[i];\r
+ this.add_class(background, "hidden");\r
+ }\r
+ },\r
+\r
+ // compare classes for slide and background\r
+ matching_background: function (slideClass, bgClass) {\r
+ var i, count, pattern, result;\r
+\r
+ // define pattern as regular expression\r
+ pattern = /\w+/g;\r
+\r
+ // check background class names\r
+ result = bgClass.match(pattern);\r
+\r
+ for (i = count = 0; i < result.length; i++)\r
+ {\r
+ if (result[i] == "hidden")\r
+ continue;\r
+\r
+ if (result[i] == "background")\r
+ continue;\r
+\r
+ ++count;\r
+ }\r
+\r
+ if (count == 0) // default match\r
+ return true;\r
+\r
+ // check for matches and place result in array\r
+ result = slideClass.match(pattern);\r
+\r
+ // now check if desired name is present for background\r
+ for (i = count = 0; i < result.length; i++)\r
+ {\r
+ if (result[i] == "hidden")\r
+ continue;\r
+\r
+ if (this.has_token(bgClass, result[i]))\r
+ return true;\r
+ }\r
+\r
+ return false;\r
+ },\r
+\r
+ resized: function () {\r
+ var width = 0;\r
+\r
+ if ( typeof( window.innerWidth ) == 'number' )\r
+ width = window.innerWidth; // Non IE browser\r
+ else if (document.documentElement && document.documentElement.clientWidth)\r
+ width = document.documentElement.clientWidth; // IE6\r
+ else if (document.body && document.body.clientWidth)\r
+ width = document.body.clientWidth; // IE4\r
+\r
+ var height = 0;\r
+\r
+ if ( typeof( window.innerHeight ) == 'number' )\r
+ height = window.innerHeight; // Non IE browser\r
+ else if (document.documentElement && document.documentElement.clientHeight)\r
+ height = document.documentElement.clientHeight; // IE6\r
+ else if (document.body && document.body.clientHeight)\r
+ height = document.body.clientHeight; // IE4\r
+\r
+ if (height && (width/height > 1.05*1024/768))\r
+ {\r
+ width = height * 1024.0/768;\r
+ }\r
+\r
+ // IE fires onresize even when only font size is changed!\r
+ // so we do a check to avoid blocking < and > actions\r
+ if (width != w3c_slidy.last_width || height != w3c_slidy.last_height)\r
+ {\r
+ if (width >= 1100)\r
+ w3c_slidy.size_index = 5; // 4\r
+ else if (width >= 1000)\r
+ w3c_slidy.size_index = 4; // 3\r
+ else if (width >= 800)\r
+ w3c_slidy.size_index = 3; // 2\r
+ else if (width >= 600)\r
+ w3c_slidy.size_index = 2; // 1\r
+ else if (width)\r
+ w3c_slidy.size_index = 0;\r
+\r
+ // add in font size adjustment from meta element e.g.\r
+ // <meta name="font-size-adjustment" content="-2" />\r
+ // useful when slides have too much content ;-)\r
+\r
+ if (0 <= w3c_slidy.size_index + w3c_slidy.size_adjustment &&\r
+ w3c_slidy.size_index + w3c_slidy.size_adjustment < w3c_slidy.sizes.length)\r
+ w3c_slidy.size_index = w3c_slidy.size_index + w3c_slidy.size_adjustment;\r
+\r
+ // enables cross browser use of relative width/height\r
+ // on object elements for use with SVG and Flash media\r
+ w3c_slidy.adjust_object_dimensions(width, height);\r
+\r
+ if (document.body.style.fontSize != w3c_slidy.sizes[w3c_slidy.size_index])\r
+ {\r
+ document.body.style.fontSize = w3c_slidy.sizes[w3c_slidy.size_index];\r
+ }\r
+\r
+ w3c_slidy.last_width = width;\r
+ w3c_slidy.last_height = height;\r
+\r
+ // force reflow to work around Mozilla bug\r
+ if (w3c_slidy.ns_pos)\r
+ {\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+ w3c_slidy.show_slide(slide);\r
+ }\r
+\r
+ // force correct positioning of toolbar\r
+ w3c_slidy.refresh_toolbar(200);\r
+ }\r
+ },\r
+\r
+ scrolled: function () {\r
+ if (w3c_slidy.toolbar && !w3c_slidy.ns_pos && !w3c_slidy.ie7)\r
+ {\r
+ w3c_slidy.hack_offset = w3c_slidy.scroll_x_offset();\r
+ // hide toolbar\r
+ w3c_slidy.toolbar.style.display = "none";\r
+\r
+ // make it reappear later\r
+ if (w3c_slidy.scrollhack == 0 && !w3c_slidy.view_all)\r
+ {\r
+ setTimeout(function () {w3c_slidy.show_toolbar(); }, 1000);\r
+ w3c_slidy.scrollhack = 1;\r
+ }\r
+ }\r
+ },\r
+\r
+ hide_toolbar: function () {\r
+ w3c_slidy.add_class(w3c_slidy.toolbar, "hidden");\r
+ window.focus();\r
+ },\r
+\r
+ // used to ensure IE refreshes toolbar in correct position\r
+ refresh_toolbar: function (interval) {\r
+ if (!w3c_slidy.ns_pos && !w3c_slidy.ie7)\r
+ {\r
+ w3c_slidy.hide_toolbar();\r
+ setTimeout(function () {w3c_slidy.show_toolbar(); }, interval);\r
+ }\r
+ },\r
+\r
+ // restores toolbar after short delay\r
+ show_toolbar: function () {\r
+ if (w3c_slidy.want_toolbar)\r
+ {\r
+ w3c_slidy.toolbar.style.display = "block";\r
+\r
+ if (!w3c_slidy.ns_pos)\r
+ {\r
+ // adjust position to allow for scrolling\r
+ var xoffset = w3c_slidy.scroll_x_offset();\r
+ w3c_slidy.toolbar.style.left = xoffset;\r
+ w3c_slidy.toolbar.style.right = xoffset;\r
+\r
+ // determine vertical scroll offset\r
+ //var yoffset = scrollYOffset();\r
+\r
+ // bottom is doc height - window height - scroll offset\r
+ //var bottom = documentHeight() - lastHeight - yoffset\r
+\r
+ //if (yoffset > 0 || documentHeight() > lastHeight)\r
+ // bottom += 16; // allow for height of scrollbar\r
+\r
+ w3c_slidy.toolbar.style.bottom = 0; //bottom;\r
+ }\r
+\r
+ w3c_slidy.remove_class(w3c_slidy.toolbar, "hidden");\r
+ }\r
+\r
+ w3c_slidy.scrollhack = 0;\r
+\r
+\r
+ // set the keyboard focus to the help link on the\r
+ // toolbar to ensure that document has the focus\r
+ // IE doesn't always work with window.focus()\r
+ // and this hack has benefit of Enter for help\r
+\r
+ try\r
+ {\r
+ if (!w3c_slidy.opera)\r
+ w3c_slidy.help_anchor.focus();\r
+ }\r
+ catch (e)\r
+ {\r
+ }\r
+ },\r
+\r
+// invoked via F key\r
+ toggle_toolbar: function () {\r
+ if (!w3c_slidy.view_all)\r
+ {\r
+ if (w3c_slidy.has_class(w3c_slidy.toolbar, "hidden"))\r
+ {\r
+ w3c_slidy.remove_class(w3c_slidy.toolbar, "hidden")\r
+ w3c_slidy.want_toolbar = 1;\r
+ }\r
+ else\r
+ {\r
+ w3c_slidy.add_class(w3c_slidy.toolbar, "hidden")\r
+ w3c_slidy.want_toolbar = 0;\r
+ }\r
+ }\r
+ },\r
+\r
+ scroll_x_offset: function () {\r
+ if (window.pageXOffset)\r
+ return self.pageXOffset;\r
+\r
+ if (document.documentElement &&\r
+ document.documentElement.scrollLeft)\r
+ return document.documentElement.scrollLeft;\r
+\r
+ if (document.body)\r
+ return document.body.scrollLeft;\r
+\r
+ return 0;\r
+ },\r
+\r
+ scroll_y_offset: function () {\r
+ if (window.pageYOffset)\r
+ return self.pageYOffset;\r
+\r
+ if (document.documentElement &&\r
+ document.documentElement.scrollTop)\r
+ return document.documentElement.scrollTop;\r
+\r
+ if (document.body)\r
+ return document.body.scrollTop;\r
+\r
+ return 0;\r
+ },\r
+\r
+ // looking for a way to determine height of slide content\r
+ // the slide itself is set to the height of the window\r
+ optimize_font_size: function () {\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+\r
+ //var dh = documentHeight(); //getDocHeight(document);\r
+ var dh = slide.scrollHeight;\r
+ var wh = getWindowHeight();\r
+ var u = 100 * dh / wh;\r
+\r
+ alert("window utilization = " + u + "% (doc "\r
+ + dh + " win " + wh + ")");\r
+ },\r
+\r
+ // from document object\r
+ get_doc_height: function (doc) {\r
+ if (!doc)\r
+ doc = document;\r
+\r
+ if (doc && doc.body && doc.body.offsetHeight)\r
+ return doc.body.offsetHeight; // ns/gecko syntax\r
+\r
+ if (doc && doc.body && doc.body.scrollHeight)\r
+ return doc.body.scrollHeight;\r
+\r
+ alert("couldn't determine document height");\r
+ },\r
+\r
+ get_window_height: function () {\r
+ if ( typeof( window.innerHeight ) == 'number' )\r
+ return window.innerHeight; // Non IE browser\r
+\r
+ if (document.documentElement && document.documentElement.clientHeight)\r
+ return document.documentElement.clientHeight; // IE6\r
+\r
+ if (document.body && document.body.clientHeight)\r
+ return document.body.clientHeight; // IE4\r
+ },\r
+\r
+ document_height: function () {\r
+ var sh, oh;\r
+\r
+ sh = document.body.scrollHeight;\r
+ oh = document.body.offsetHeight;\r
+\r
+ if (sh && oh)\r
+ {\r
+ return (sh > oh ? sh : oh);\r
+ }\r
+\r
+ // no idea!\r
+ return 0;\r
+ },\r
+\r
+ smaller: function () {\r
+ if (w3c_slidy.size_index > 0)\r
+ {\r
+ --w3c_slidy.size_index;\r
+ }\r
+\r
+ w3c_slidy.toolbar.style.display = "none";\r
+ document.body.style.fontSize = w3c_slidy.sizes[w3c_slidy.size_index];\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+ w3c_slidy.show_slide(slide);\r
+ setTimeout(function () {w3c_slidy.show_toolbar(); }, 50);\r
+ },\r
+\r
+ bigger: function () {\r
+ if (w3c_slidy.size_index < w3c_slidy.sizes.length - 1)\r
+ {\r
+ ++w3c_slidy.size_index;\r
+ }\r
+\r
+ w3c_slidy.toolbar.style.display = "none";\r
+ document.body.style.fontSize = w3c_slidy.sizes[w3c_slidy.size_index];\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+ w3c_slidy.hide_slide(slide);\r
+ w3c_slidy.show_slide(slide);\r
+ setTimeout(function () {w3c_slidy.show_toolbar(); }, 50);\r
+ },\r
+\r
+ // enables cross browser use of relative width/height\r
+ // on object elements for use with SVG and Flash media\r
+ // with thanks to Ivan Herman for the suggestion\r
+ adjust_object_dimensions: function (width, height) {\r
+ for( var i = 0; i < w3c_slidy.objects.length; i++ )\r
+ {\r
+ var obj = this.objects[i];\r
+ var mimeType = obj.getAttribute("type");\r
+\r
+ if (mimeType == "image/svg+xml" || mimeType == "application/x-shockwave-flash")\r
+ {\r
+ if ( !obj.initialWidth )\r
+ obj.initialWidth = obj.getAttribute("width");\r
+\r
+ if ( !obj.initialHeight )\r
+ obj.initialHeight = obj.getAttribute("height");\r
+\r
+ if ( obj.initialWidth && obj.initialWidth.charAt(obj.initialWidth.length-1) == "%" )\r
+ {\r
+ var w = parseInt(obj.initialWidth.slice(0, obj.initialWidth.length-1));\r
+ var newW = width * (w/100.0);\r
+ obj.setAttribute("width",newW);\r
+ }\r
+\r
+ if ( obj.initialHeight &&\r
+ obj.initialHeight.charAt(obj.initialHeight.length-1) == "%" )\r
+ {\r
+ var h = parseInt(obj.initialHeight.slice(0, obj.initialHeight.length-1));\r
+ var newH = height * (h/100.0);\r
+ obj.setAttribute("height", newH);\r
+ }\r
+ }\r
+ }\r
+ },\r
+\r
+ // needed for Opera to inhibit default behavior\r
+ // since Opera delivers keyPress even if keyDown\r
+ // was cancelled\r
+ key_press: function (event) {\r
+ if (!event)\r
+ event = window.event;\r
+\r
+ if (!w3c_slidy.key_wanted)\r
+ return w3c_slidy.cancel(event);\r
+\r
+ return true;\r
+ },\r
+\r
+ // See e.g. http://www.quirksmode.org/js/events/keys.html for keycodes\r
+ key_down: function (event) {\r
+ var key;\r
+\r
+ w3c_slidy.key_wanted = true;\r
+\r
+ if (!event)\r
+ event = window.event;\r
+\r
+ // kludge around NS/IE differences\r
+ if (window.event)\r
+ key = window.event.keyCode;\r
+ else if (event.which)\r
+ key = event.which;\r
+ else\r
+ return true; // Yikes! unknown browser\r
+\r
+ // ignore event if key value is zero\r
+ // as for alt on Opera and Konqueror\r
+ if (!key)\r
+ return true;\r
+\r
+ // check for concurrent control/command/alt key\r
+ // but are these only present on mouse events?\r
+\r
+ if (event.ctrlKey || event.altKey || event.metaKey)\r
+ return true;\r
+\r
+ // dismiss table of contents if visible\r
+ if (w3c_slidy.is_shown_toc() && key != 9 && key != 16 && key != 38 && key != 40)\r
+ {\r
+ w3c_slidy.hide_table_of_contents();\r
+\r
+ if (key == 27 || key == 84 || key == 67)\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+\r
+ if (key == 34) // Page Down\r
+ {\r
+ if (w3c_slidy.view_all)\r
+ return true;\r
+\r
+ w3c_slidy.next_slide(false);\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 33) // Page Up\r
+ {\r
+ if (w3c_slidy.view_all)\r
+ return true;\r
+\r
+ w3c_slidy.previous_slide(false);\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 32) // space bar\r
+ {\r
+ w3c_slidy.next_slide(true);\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 37) // Left arrow\r
+ {\r
+ w3c_slidy.previous_slide(!event.shiftKey);\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 36) // Home\r
+ {\r
+ w3c_slidy.first_slide();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 35) // End\r
+ {\r
+ w3c_slidy.last_slide();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 39) // Right arrow\r
+ {\r
+ w3c_slidy.next_slide(!event.shiftKey);\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 13) // Enter\r
+ {\r
+ if (w3c_slidy.outline)\r
+ {\r
+ if (w3c_slidy.outline.visible)\r
+ w3c_slidy.fold(w3c_slidy.outline);\r
+ else\r
+ w3c_slidy.unfold(w3c_slidy.outline);\r
+\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ }\r
+ else if (key == 188) // < for smaller fonts\r
+ {\r
+ w3c_slidy.smaller();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 190) // > for larger fonts\r
+ {\r
+ w3c_slidy.bigger();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 189 || key == 109) // - for smaller fonts\r
+ {\r
+ w3c_slidy.smaller();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 187 || key == 191 || key == 107) // = + for larger fonts\r
+ {\r
+ w3c_slidy.bigger();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 83) // S for smaller fonts\r
+ {\r
+ w3c_slidy.smaller();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 66) // B for larger fonts\r
+ {\r
+ w3c_slidy.bigger();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 90) // Z for last slide\r
+ {\r
+ w3c_slidy.last_slide();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 70) // F for toggle toolbar\r
+ {\r
+ w3c_slidy.toggle_toolbar();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 65) // A for toggle view single/all slides\r
+ {\r
+ w3c_slidy.toggle_view();\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 75) // toggle action of left click for next page\r
+ {\r
+ w3c_slidy.mouse_click_enabled = !w3c_slidy.mouse_click_enabled;\r
+ var alert_msg = (w3c_slidy.mouse_click_enabled ?\r
+ "enabled" : "disabled") + " mouse click advance";\r
+\r
+ alert(alert_msg.localize());\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 84 || key == 67) // T or C for table of contents\r
+ {\r
+ if (w3c_slidy.toc)\r
+ w3c_slidy.toggle_table_of_contents();\r
+\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ else if (key == 72) // H for help\r
+ {\r
+ window.location = w3c_slidy.help_page;\r
+ return w3c_slidy.cancel(event);\r
+ }\r
+ //else alert("key code is "+ key);\r
+\r
+ return true;\r
+ },\r
+\r
+ // safe for both text/html and application/xhtml+xml\r
+ create_element: function (name) {\r
+ if (this.xhtml && (typeof document.createElementNS != 'undefined'))\r
+ return document.createElementNS("http://www.w3.org/1999/xhtml", name)\r
+\r
+ return document.createElement(name);\r
+ },\r
+\r
+ get_element_style: function (elem, IEStyleProp, CSSStyleProp) {\r
+ if (elem.currentStyle)\r
+ {\r
+ return elem.currentStyle[IEStyleProp];\r
+ }\r
+ else if (window.getComputedStyle)\r
+ {\r
+ var compStyle = window.getComputedStyle(elem, "");\r
+ return compStyle.getPropertyValue(CSSStyleProp);\r
+ }\r
+ return "";\r
+ },\r
+\r
+ // the string str is a whitespace separated list of tokens\r
+ // test if str contains a particular token, e.g. "slide"\r
+ has_token: function (str, token) {\r
+ if (str)\r
+ {\r
+ // define pattern as regular expression\r
+ var pattern = /\w+/g;\r
+\r
+ // check for matches\r
+ // place result in array\r
+ var result = str.match(pattern);\r
+\r
+ // now check if desired token is present\r
+ for (var i = 0; i < result.length; i++)\r
+ {\r
+ if (result[i] == token)\r
+ return true;\r
+ }\r
+ }\r
+\r
+ return false;\r
+ },\r
+\r
+ get_class_list: function (element) {\r
+ if (typeof element.className != 'undefined')\r
+ return element.className;\r
+\r
+ return element.getAttribute("class");\r
+ },\r
+\r
+ has_class: function (element, name) {\r
+ if (element.nodeType != 1)\r
+ return false;\r
+\r
+ var regexp = new RegExp("(^| )" + name + "\W*");\r
+\r
+ if (typeof element.className != 'undefined')\r
+ return regexp.test(element.className);\r
+\r
+ return regexp.test(element.getAttribute("class"));\r
+ },\r
+\r
+ remove_class: function (element, name) {\r
+ var regexp = new RegExp("(^| )" + name + "\W*");\r
+ var clsval = "";\r
+\r
+ if (typeof element.className != 'undefined')\r
+ {\r
+ clsval = element.className;\r
+\r
+ if (clsval)\r
+ {\r
+ clsval = clsval.replace(regexp, "");\r
+ element.className = clsval;\r
+ }\r
+ }\r
+ else\r
+ {\r
+ clsval = element.getAttribute("class");\r
+\r
+ if (clsval)\r
+ {\r
+ clsval = clsval.replace(regexp, "");\r
+ element.setAttribute("class", clsval);\r
+ }\r
+ }\r
+ },\r
+\r
+ add_class: function (element, name) {\r
+ if (!this.has_class(element, name))\r
+ {\r
+ if (typeof element.className != 'undefined')\r
+ element.className += " " + name;\r
+ else\r
+ {\r
+ var clsval = element.getAttribute("class");\r
+ clsval = clsval ? clsval + " " + name : name;\r
+ element.setAttribute("class", clsval);\r
+ }\r
+ }\r
+ },\r
+\r
+ // HTML elements that can be used with class="incremental"\r
+ // note that you can also put the class on containers like\r
+ // up, ol, dl, and div to make their contents appear\r
+ // incrementally. Upper case is used since this is what\r
+ // browsers report for HTML node names (text/html).\r
+ incremental_elements: null,\r
+ okay_for_incremental: function (name) {\r
+ if (!this.incremental_elements)\r
+ {\r
+ var inclist = new Array();\r
+ inclist["p"] = true;\r
+ inclist["pre"] = true;\r
+ inclist["li"] = true;\r
+ inclist["blockquote"] = true;\r
+ inclist["dt"] = true;\r
+ inclist["dd"] = true;\r
+ inclist["h2"] = true;\r
+ inclist["h3"] = true;\r
+ inclist["h4"] = true;\r
+ inclist["h5"] = true;\r
+ inclist["h6"] = true;\r
+ inclist["span"] = true;\r
+ inclist["address"] = true;\r
+ inclist["table"] = true;\r
+ inclist["tr"] = true;\r
+ inclist["th"] = true;\r
+ inclist["td"] = true;\r
+ inclist["img"] = true;\r
+ inclist["object"] = true;\r
+ this.incremental_elements = inclist;\r
+ }\r
+ return this.incremental_elements[name.toLowerCase()];\r
+ },\r
+\r
+ next_incremental_item: function (node) {\r
+ var br = this.is_xhtml ? "br" : "BR";\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+\r
+ for (;;)\r
+ {\r
+ node = w3c_slidy.next_node(slide, node);\r
+\r
+ if (node == null || node.parentNode == null)\r
+ break;\r
+\r
+ if (node.nodeType == 1) // ELEMENT\r
+ {\r
+ if (node.nodeName == br)\r
+ continue;\r
+\r
+ if (w3c_slidy.has_class(node, "incremental")\r
+ && w3c_slidy.okay_for_incremental(node.nodeName))\r
+ return node;\r
+\r
+ if (w3c_slidy.has_class(node.parentNode, "incremental")\r
+ && !w3c_slidy.has_class(node, "non-incremental"))\r
+ return node;\r
+ }\r
+ }\r
+\r
+ return node;\r
+ },\r
+\r
+ previous_incremental_item: function (node) {\r
+ var br = this.is_xhtml ? "br" : "BR";\r
+ var slide = w3c_slidy.slides[w3c_slidy.slide_number];\r
+\r
+ for (;;)\r
+ {\r
+ node = w3c_slidy.previous_node(slide, node);\r
+\r
+ if (node == null || node.parentNode == null)\r
+ break;\r
+\r
+ if (node.nodeType == 1)\r
+ {\r
+ if (node.nodeName == br)\r
+ continue;\r
+\r
+ if (w3c_slidy.has_class(node, "incremental")\r
+ && w3c_slidy.okay_for_incremental(node.nodeName))\r
+ return node;\r
+\r
+ if (w3c_slidy.has_class(node.parentNode, "incremental")\r
+ && !w3c_slidy.has_class(node, "non-incremental"))\r
+ return node;\r
+ }\r
+ }\r
+\r
+ return node;\r
+ },\r
+\r
+ // set visibility for all elements on current slide with\r
+ // a parent element with attribute class="incremental"\r
+ set_visibility_all_incremental: function (value) {\r
+ var node = this.next_incremental_item(null);\r
+\r
+ if (value == "hidden")\r
+ {\r
+ while (node)\r
+ {\r
+ w3c_slidy.add_class(node, "invisible");\r
+ node = w3c_slidy.next_incremental_item(node);\r
+ }\r
+ }\r
+ else // value == "visible"\r
+ {\r
+ while (node)\r
+ {\r
+ w3c_slidy.remove_class(node, "invisible");\r
+ node = w3c_slidy.next_incremental_item(node);\r
+ }\r
+ }\r
+ },\r
+\r
+ // reveal the next hidden item on the slide\r
+ // node is null or the node that was last revealed\r
+ reveal_next_item: function (node) {\r
+ node = w3c_slidy.next_incremental_item(node);\r
+\r
+ if (node && node.nodeType == 1) // an element\r
+ w3c_slidy.remove_class(node, "invisible");\r
+\r
+ return node;\r
+ },\r
+\r
+ // exact inverse of revealNextItem(node)\r
+ hide_previous_item: function (node) {\r
+ if (node && node.nodeType == 1) // an element\r
+ w3c_slidy.add_class(node, "invisible");\r
+\r
+ return this.previous_incremental_item(node);\r
+ },\r
+\r
+ // left to right traversal of root's content\r
+ next_node: function (root, node) {\r
+ if (node == null)\r
+ return root.firstChild;\r
+\r
+ if (node.firstChild)\r
+ return node.firstChild;\r
+\r
+ if (node.nextSibling)\r
+ return node.nextSibling;\r
+\r
+ for (;;)\r
+ {\r
+ node = node.parentNode;\r
+\r
+ if (!node || node == root)\r
+ break;\r
+\r
+ if (node && node.nextSibling)\r
+ return node.nextSibling;\r
+ }\r
+\r
+ return null;\r
+ },\r
+\r
+ // right to left traversal of root's content\r
+ previous_node: function (root, node) {\r
+ if (node == null)\r
+ {\r
+ node = root.lastChild;\r
+\r
+ if (node)\r
+ {\r
+ while (node.lastChild)\r
+ node = node.lastChild;\r
+ }\r
+\r
+ return node;\r
+ }\r
+\r
+ if (node.previousSibling)\r
+ {\r
+ node = node.previousSibling;\r
+\r
+ while (node.lastChild)\r
+ node = node.lastChild;\r
+\r
+ return node;\r
+ }\r
+\r
+ if (node.parentNode != root)\r
+ return node.parentNode;\r
+\r
+ return null;\r
+ },\r
+\r
+ previous_sibling_element: function (el) {\r
+ el = el.previousSibling;\r
+\r
+ while (el && el.nodeType != 1)\r
+ el = el.previousSibling;\r
+\r
+ return el;\r
+ },\r
+\r
+ next_sibling_element: function (el) {\r
+ el = el.nextSibling;\r
+\r
+ while (el && el.nodeType != 1)\r
+ el = el.nextSibling;\r
+\r
+ return el;\r
+ },\r
+\r
+ first_child_element: function (el) {\r
+ var node;\r
+\r
+ for (node = el.firstChild; node; node = node.nextSibling)\r
+ {\r
+ if (node.nodeType == 1)\r
+ break;\r
+ }\r
+\r
+ return node;\r
+ },\r
+\r
+ first_tag: function (element, tag) {\r
+ var node;\r
+\r
+ if (!this.is_xhtml)\r
+ tag = tag.toUpperCase();\r
+\r
+ for (node = element.firstChild; node; node = node.nextSibling)\r
+ {\r
+ if (node.nodeType == 1 && node.nodeName == tag)\r
+ break;\r
+ }\r
+\r
+ return node;\r
+ },\r
+\r
+ hide_selection: function () {\r
+ if (window.getSelection) // Firefox, Chromium, Safari, Opera\r
+ {\r
+ var selection = window.getSelection();\r
+\r
+ if (selection.rangeCount > 0)\r
+ {\r
+ var range = selection.getRangeAt(0);\r
+ range.collapse (false);\r
+ }\r
+ }\r
+ else // Internet Explorer\r
+ {\r
+ var textRange = document.selection.createRange ();\r
+ textRange.collapse (false);\r
+ }\r
+ },\r
+\r
+ get_selected_text: function () {\r
+ try\r
+ {\r
+ if (window.getSelection)\r
+ return window.getSelection().toString();\r
+\r
+ if (document.getSelection)\r
+ return document.getSelection().toString();\r
+\r
+ if (document.selection)\r
+ return document.selection.createRange().text;\r
+ }\r
+ catch (e)\r
+ {\r
+ }\r
+\r
+ return "";\r
+ },\r
+\r
+ // make note of length of selected text\r
+ // as this evaluates to zero in click event\r
+ mouse_button_up: function (e) {\r
+ w3c_slidy.selected_text_len = w3c_slidy.get_selected_text().length;\r
+ },\r
+\r
+ // right mouse button click is reserved for context menus\r
+ // it is more reliable to detect rightclick than leftclick\r
+ mouse_button_click: function (e) {\r
+ var rightclick = false;\r
+ var leftclick = false;\r
+ var middleclick = false;\r
+ var target;\r
+\r
+ if (!e)\r
+ var e = window.event;\r
+\r
+ if (e.target)\r
+ target = e.target;\r
+ else if (e.srcElement)\r
+ target = e.srcElement;\r
+\r
+ // work around Safari bug\r
+ if (target.nodeType == 3)\r
+ target = target.parentNode;\r
+\r
+ if (e.which) // all browsers except IE\r
+ {\r
+ leftclick = (e.which == 1);\r
+ middleclick = (e.which == 2);\r
+ rightclick = (e.which == 3);\r
+ }\r
+ else if (e.button)\r
+ {\r
+ // Konqueror gives 1 for left, 4 for middle\r
+ // IE6 gives 0 for left and not 1 as I expected\r
+\r
+ if (e.button == 4)\r
+ middleclick = true;\r
+\r
+ // all browsers agree on 2 for right button\r
+ rightclick = (e.button == 2);\r
+ }\r
+ else leftclick = true;\r
+/*\r
+ alert("you clicked over a " + target.nodeName + " element\n" +\r
+ "w3c_slidy.mouse_click_enabled = " + w3c_slidy.mouse_click_enabled + "\n" +\r
+ "leftclick = " + leftclick + "\n" +\r
+ "selected text length = " + w3c_slidy.selected_text_len);\r
+ //alert("selected text length = " + w3c_slidy.selected_text_len);\r
+*/\r
+ if (w3c_slidy.selected_text_len > 0)\r
+ {\r
+ w3c_slidy.stop_propagation(e);\r
+ e.cancel = true;\r
+ e.returnValue = false;\r
+ return false;\r
+ }\r
+\r
+ // dismiss table of contents\r
+ w3c_slidy.hide_table_of_contents();\r
+\r
+ // check if target is something that probably want's clicks\r
+ // e.g. a, embed, object, input, textarea, select, option\r
+ var tag = target.nodeName.toLowerCase();\r
+\r
+ if (w3c_slidy.mouse_click_enabled && leftclick &&\r
+ tag != "a" &&\r
+ tag != "embed" &&\r
+ tag != "object" &&\r
+ tag != "video" &&\r
+ tag != "input" &&\r
+ tag != "textarea" &&\r
+ tag != "select" &&\r
+ tag != "option" &&\r
+ !target.onclick)\r
+ {\r
+ w3c_slidy.next_slide(true);\r
+ w3c_slidy.stop_propagation(e);\r
+ e.cancel = true;\r
+ e.returnValue = false;\r
+ return false;\r
+ }\r
+ },\r
+\r
+ get_key: function (e)\r
+ {\r
+ var key;\r
+\r
+ // kludge around NS/IE differences\r
+ if (typeof window.event != "undefined")\r
+ key = window.event.keyCode;\r
+ else if (e.which)\r
+ key = e.which;\r
+\r
+ return key;\r
+ },\r
+\r
+ get_target: function (e) {\r
+ var target;\r
+\r
+ if (!e)\r
+ e = window.event;\r
+\r
+ if (e.target)\r
+ target = e.target;\r
+ else if (e.srcElement)\r
+ target = e.srcElement;\r
+\r
+ if (target.nodeType != 1)\r
+ target = target.parentNode;\r
+\r
+ return target;\r
+ },\r
+\r
+ // does display property provide correct defaults?\r
+ is_block: function (elem) {\r
+ var tag = elem.nodeName.toLowerCase();\r
+\r
+ return tag == "ol" || tag == "ul" || tag == "p" ||\r
+ tag == "li" || tag == "table" || tag == "pre" ||\r
+ tag == "h1" || tag == "h2" || tag == "h3" ||\r
+ tag == "h4" || tag == "h5" || tag == "h6" ||\r
+ tag == "blockquote" || tag == "address";\r
+ },\r
+\r
+ add_listener: function (element, event, handler) {\r
+ if (window.addEventListener)\r
+ element.addEventListener(event, handler, false);\r
+ else\r
+ element.attachEvent("on"+event, handler);\r
+ },\r
+\r
+ // used to prevent event propagation from field controls\r
+ stop_propagation: function (event) {\r
+ event = event ? event : window.event;\r
+ event.cancelBubble = true; // for IE\r
+\r
+ if (event.stopPropagation)\r
+ event.stopPropagation();\r
+\r
+ return true;\r
+ },\r
+\r
+ cancel: function (event) {\r
+ if (event)\r
+ {\r
+ event.cancel = true;\r
+ event.returnValue = false;\r
+\r
+ if (event.preventDefault)\r
+ event.preventDefault();\r
+ }\r
+\r
+ w3c_slidy.key_wanted = false;\r
+ return false;\r
+ }\r
+};\r
+\r
+// for each language define an associative array\r
+// and also the help text which is longer\r
+\r
+var w3c_slidy_i18n = {\r
+ strings_es: {\r
+ "slide":"pág.",\r
+ "help?":"Ayuda",\r
+ "contents?":"Índice",\r
+ "table of contents":"tabla de contenidos",\r
+ "Table of Contents":"Tabla de Contenidos",\r
+ "restart presentation":"Reiniciar presentación",\r
+ "restart?":"Inicio"\r
+ },\r
+ help_es:\r
+ "Utilice el ratón, barra espaciadora, teclas Izda/Dcha, " +\r
+ "o Re pág y Av pág. Use S y B para cambiar el tamaño de fuente.",\r
+\r
+ strings_ca: {\r
+ "slide":"pàg..",\r
+ "help?":"Ajuda",\r
+ "contents?":"Índex",\r
+ "table of contents":"taula de continguts",\r
+ "Table of Contents":"Taula de Continguts",\r
+ "restart presentation":"Reiniciar presentació",\r
+ "restart?":"Inici"\r
+ },\r
+ help_ca:\r
+ "Utilitzi el ratolí, barra espaiadora, tecles Esq./Dta. " +\r
+ "o Re pàg y Av pàg. Usi S i B per canviar grandària de font.",\r
+\r
+ strings_cs: {\r
+ "slide":"snímek",\r
+ "help?":"nápověda",\r
+ "contents?":"obsah",\r
+ "table of contents":"obsah prezentace",\r
+ "Table of Contents":"Obsah prezentace",\r
+ "restart presentation":"znovu spustit prezentaci",\r
+ "restart?":"restart"\r
+ },\r
+ help_cs:\r
+ "Prezentaci můžete procházet pomocí kliknutí myši, mezerníku, " +\r
+ "šipek vlevo a vpravo nebo kláves PageUp a PageDown. Písmo se " +\r
+ "dá zvětšit a zmenšit pomocí kláves B a S.",\r
+\r
+ strings_nl: {\r
+ "slide":"pagina",\r
+ "help?":"Help?",\r
+ "contents?":"Inhoud?",\r
+ "table of contents":"inhoudsopgave",\r
+ "Table of Contents":"Inhoudsopgave",\r
+ "restart presentation":"herstart presentatie",\r
+ "restart?":"Herstart?"\r
+ },\r
+ help_nl:\r
+ "Navigeer d.m.v. het muis, spatiebar, Links/Rechts toetsen, " +\r
+ "of PgUp en PgDn. Gebruik S en B om de karaktergrootte te veranderen.",\r
+\r
+ strings_de: {\r
+ "slide":"Seite",\r
+ "help?":"Hilfe",\r
+ "contents?":"Übersicht",\r
+ "table of contents":"Inhaltsverzeichnis",\r
+ "Table of Contents":"Inhaltsverzeichnis",\r
+ "restart presentation":"Präsentation neu starten",\r
+ "restart?":"Neustart"\r
+ },\r
+ help_de:\r
+ "Benutzen Sie die Maus, Leerschlag, die Cursortasten links/rechts oder " +\r
+ "Page up/Page Down zum Wechseln der Seiten und S und B für die Schriftgrösse.",\r
+\r
+ strings_pl: {\r
+ "slide":"slajd",\r
+ "help?":"pomoc?",\r
+ "contents?":"spis treści?",\r
+ "table of contents":"spis treści",\r
+ "Table of Contents":"Spis Treści",\r
+ "restart presentation":"Restartuj prezentację",\r
+ "restart?":"restart?"\r
+ },\r
+ help_pl:\r
+ "Zmieniaj slajdy klikając myszą, naciskając spację, strzałki lewo/prawo" +\r
+ "lub PgUp / PgDn. Użyj klawiszy S i B, aby zmienić rozmiar czczionki.",\r
+\r
+ strings_fr: {\r
+ "slide":"page",\r
+ "help?":"Aide",\r
+ "contents?":"Index",\r
+ "table of contents":"table des matières",\r
+ "Table of Contents":"Table des matières",\r
+ "restart presentation":"Recommencer l'exposé",\r
+ "restart?":"Début"\r
+ },\r
+ help_fr:\r
+ "Naviguez avec la souris, la barre d'espace, les flèches " +\r
+ "gauche/droite ou les touches Pg Up, Pg Dn. Utilisez " +\r
+ "les touches S et B pour modifier la taille de la police.",\r
+\r
+ strings_hu: {\r
+ "slide":"oldal",\r
+ "help?":"segítség",\r
+ "contents?":"tartalom",\r
+ "table of contents":"tartalomjegyzék",\r
+ "Table of Contents":"Tartalomjegyzék",\r
+ "restart presentation":"bemutató újraindítása",\r
+ "restart?":"újraindítás"\r
+ },\r
+ help_hu:\r
+ "Az oldalak közti lépkedéshez kattintson az egérrel, vagy " +\r
+ "használja a szóköz, a bal, vagy a jobb nyíl, illetve a Page Down, " +\r
+ "Page Up billentyűket. Az S és a B billentyűkkel változtathatja " +\r
+ "a szöveg méretét.",\r
+\r
+ strings_it: {\r
+ "slide":"pag.",\r
+ "help?":"Aiuto",\r
+ "contents?":"Indice",\r
+ "table of contents":"indice",\r
+ "Table of Contents":"Indice",\r
+ "restart presentation":"Ricominciare la presentazione",\r
+ "restart?":"Inizio"\r
+ },\r
+ help_it:\r
+ "Navigare con mouse, barra spazio, frecce sinistra/destra o " +\r
+ "PgUp e PgDn. Usare S e B per cambiare la dimensione dei caratteri.",\r
+\r
+ strings_el: {\r
+ "slide":"σελίδα",\r
+ "help?":"βοήθεια;",\r
+ "contents?":"περιεχόμενα;",\r
+ "table of contents":"πίνακας περιεχομένων",\r
+ "Table of Contents":"Πίνακας Περιεχομένων",\r
+ "restart presentation":"επανεκκίνηση παρουσίασης",\r
+ "restart?":"επανεκκίνηση;"\r
+ },\r
+ help_el:\r
+ "Πλοηγηθείτε με το κλίκ του ποντικιού, το space, τα βέλη αριστερά/δεξιά, " +\r
+ "ή Page Up και Page Down. Χρησιμοποιήστε τα πλήκτρα S και B για να αλλάξετε " +\r
+ "το μέγεθος της γραμματοσειράς.",\r
+\r
+ strings_ja: {\r
+ "slide":"スライド",\r
+ "help?":"ヘルプ",\r
+ "contents?":"目次",\r
+ "table of contents":"目次を表示",\r
+ "Table of Contents":"目次",\r
+ "restart presentation":"最初から再生",\r
+ "restart?":"最初から"\r
+ },\r
+ help_ja:\r
+ "マウス左クリック ・ スペース ・ 左右キー " +\r
+ "または Page Up ・ Page Downで操作, S ・ Bでフォントサイズ変更",\r
+\r
+ strings_zh: {\r
+ "slide":"幻灯片",\r
+ "help?":"帮助?",\r
+ "contents?":"内容?",\r
+ "table of contents":"目录",\r
+ "Table of Contents":"目录",\r
+ "restart presentation":"重新启动展示",\r
+ "restart?":"重新启动?"\r
+ },\r
+ help_zh:\r
+ "用鼠标点击, 空格条, 左右箭头, Pg Up 和 Pg Dn 导航. " +\r
+ "用 S, B 改变字体大小.",\r
+\r
+ strings_ru: {\r
+ "slide":"слайд",\r
+ "help?":"помощь?",\r
+ "contents?":"содержание?",\r
+ "table of contents":"оглавление",\r
+ "Table of Contents":"Оглавление",\r
+ "restart presentation":"перезапустить презентацию",\r
+ "restart?":"перезапуск?"\r
+ },\r
+ help_ru:\r
+ "Перемещайтесь кликая мышкой, используя клавишу пробел, стрелки" +\r
+ "влево/вправо или Pg Up и Pg Dn. Клавиши S и B меняют размер шрифта.",\r
+\r
+ strings_sv: {\r
+ "slide":"sida",\r
+ "help?":"hjälp",\r
+ "contents?":"innehåll",\r
+ "table of contents":"innehållsförteckning",\r
+ "Table of Contents":"Innehållsförteckning",\r
+ "restart presentation":"visa presentationen från början",\r
+ "restart?":"börja om"\r
+ },\r
+ help_sv:\r
+ "Bläddra med ett klick med vänstra musknappen, mellanslagstangenten, " +\r
+ "vänster- och högerpiltangenterna eller tangenterna Pg Up, Pg Dn. " +\r
+ "Använd tangenterna S och B för att ändra textens storlek.",\r
+\r
+// each such language array is declared in the localize array\r
+// which is set on string prototype and used as in "foo".localize();\r
+ localize: {\r
+ "es":this.strings_es,\r
+ "ca":this.strings_ca,\r
+ "cs":this.strings_cs,\r
+ "nl":this.strings_nl,\r
+ "de":this.strings_de,\r
+ "pl":this.strings_pl,\r
+ "fr":this.strings_fr,\r
+ "hu":this.strings_hu,\r
+ "it":this.strings_it,\r
+ "el":this.strings_el,\r
+ "jp":this.strings_ja,\r
+ "zh":this.strings_zh,\r
+ "ru":this.strings_ru,\r
+ "sv":this.strings_sv\r
+ },\r
+\r
+ init: function () {\r
+ var i18n = w3c_slidy_i18n;\r
+ var help_text = w3c_slidy.help_text;\r
+ i18n.strings_es[help_text] = i18n.help_es;\r
+ i18n.strings_ca[help_text] = i18n.help_ca;\r
+ i18n.strings_cs[help_text] = i18n.help_cs;\r
+ i18n.strings_nl[help_text] = i18n.help_nl;\r
+ i18n.strings_de[help_text] = i18n.help_de;\r
+ i18n.strings_pl[help_text] = i18n.help_pl;\r
+ i18n.strings_fr[help_text] = i18n.help_fr;\r
+ i18n.strings_hu[help_text] = i18n.help_hu;\r
+ i18n.strings_it[help_text] = i18n.help_it;\r
+ i18n.strings_el[help_text] = i18n.help_el;\r
+ i18n.strings_ja[help_text] = i18n.help_ja;\r
+ i18n.strings_zh[help_text] = i18n.help_zh;\r
+ i18n.strings_ru[help_text] = i18n.help_ru;\r
+ i18n.strings_sv[help_text] = i18n.help_sv;\r
+\r
+ w3c_slidy.lang = document.body.parentNode.getAttribute("lang");\r
+\r
+ if (!w3c_slidy.lang)\r
+ w3c_slidy.lang = document.body.parentNode.getAttribute("xml:lang");\r
+\r
+ if (!w3c_slidy.lang)\r
+ w3c_slidy.lang = "en";\r
+\r
+ // add localize method to all strings\r
+ // for use as in "contents".localize()\r
+ String.prototype.localize = function() {\r
+ if (this == "")\r
+ return this;\r
+\r
+ // try full language code, e.g. en-US\r
+ var s, lookup = w3c_slidy_i18n.localize[w3c_slidy.lang];\r
+\r
+ if (lookup)\r
+ {\r
+ s = lookup[this];\r
+\r
+ if (s)\r
+ return s;\r
+ }\r
+\r
+ // strip country code suffix, e.g.\r
+ // try en if undefined for en-US\r
+ var lg = w3c_slidy.lang.split("-");\r
+\r
+ if (lg.length > 1)\r
+ {\r
+ lookup = w3c_slidy_i18n.localize[lg[0]];\r
+\r
+ if (lookup)\r
+ {\r
+ s = lookup[this];\r
+\r
+ if (s)\r
+ return s;\r
+ }\r
+ }\r
+\r
+ // otherwise string as is\r
+ return this;\r
+ };\r
+ }\r
+};\r
+\r
+// hack for back button behavior\r
+if (w3c_slidy.ie6 || w3c_slidy.ie7)\r
+{\r
+ document.write("<iframe id='historyFrame' " +\r
+ "src='javascript:\"<html"+"></"+"html>\"' " +\r
+ "height='1' width='1' " +\r
+ "style='position:absolute;left:-800px'></iframe>");\r
+}\r
+\r
+// attach event listeners for initialization\r
+w3c_slidy.set_up();\r
+\r
+// hide the slides as soon as body element is available\r
+// to reduce annoying screen mess before the onload event\r
+setTimeout(w3c_slidy.hide_slides, 50);\r
+\r
+/*]]>*/\r
+</script>\r
+</head>\r
+<body class="article" style="max-width:45em">\r
+<div id="header" class="slide">\r
+<h1>How Angular Lost its JS</h1>\r
+<span id="author">Bill Erickson, Software Development Engineer, King County Library System</span><br />\r
+<span id="email"><code><<a href="mailto:berickxx@gmail.com">berickxx@gmail.com</a>></code></span><br />\r
+<span id="revdate">Evergreen Conference 2018</span>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_recap_amp_terminology">Recap & Terminology</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Evergreen browser client uses <em>AngularJS</em> (v1.6)\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+AKA ng1\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+The future of <em>AngularJS</em> is <em>Angular</em> (v5.2)\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+AKA ng5\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_angularjs_sitrep">AngularJS SITREP</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Final release 1.7 in June 2018\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+3-year LTS\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+EG version 3.7 (March 2021)\r
+</span>\r
+</li>\r
+</ul>\r
+<div class="paragraph"><p><a href="https://blog.angular.io/stable-angularjs-and-long-term-support-7e077635ee9c">https://blog.angular.io/stable-angularjs-and-long-term-support-7e077635ee9c</a></p></div>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_angularjs_1_7_lts_support">AngularJS 1.7 LTS Support</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ol class="arabic">\r
+<li>\r
+<span>\r
+A security flaw is detected in the 1.7.x branch of the framework\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+One of the major browsers releases a version that will cause current\r
+production applications using AngularJS 1.7.x to stop working\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+The jQuery library releases a version that will cause current production\r
+applications using AngularJS 1.7.x to stop working.\r
+</span>\r
+</li>\r
+</ol>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_introducing_angular">Introducing Angular</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<div class="paragraph"><p>A complete redesign and rewrite of AngularJS.</p></div>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_key_changes_and_additions">Key Changes and Additions</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class=" incremental">\r
+<li>\r
+<span>\r
+Nested Routing and Lazy Loading\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Integrated i18n\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Use of TypeScript\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Ahead-of-Time Compilation\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Expressive component interactions / data binding\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Route-reuse for components.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Native Service Workers Module\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Integrated ReactiveX library for JavaScript (RxJS).\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+ng-cli Command line tool for compiling, testing, building.\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_integrated_i18n">Integrated I18N</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<div class="listingblock">\r
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8\r
+by Lorenzo Bettini\r
+http://www.lorenzobettini.it\r
+http://www.gnu.org/software/src-highlite -->\r
+<pre><tt><span style="font-weight: bold"><span style="color: #0000FF"><h1</span></span> <span style="color: #009900">i18</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>Hello i18n!<span style="font-weight: bold"><span style="color: #0000FF"></h1></span></span>\r
+<span style="font-weight: bold"><span style="color: #0000FF"><h1</span></span> <span style="color: #009900">i18n</span><span style="color: #990000">=</span><span style="color: #FF0000">"Section welcome header"</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>Hello i18n!<span style="font-weight: bold"><span style="color: #0000FF"></h1></span></span>\r
+<span style="font-weight: bold"><span style="color: #0000FF"><h1</span></span> <span style="color: #009900">i18n</span><span style="color: #990000">=</span><span style="color: #FF0000">"welcome|Section welcome header"</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>Hello i18n!<span style="font-weight: bold"><span style="color: #0000FF"></h1></span></span>\r
+\r
+<span style="font-weight: bold"><span style="color: #0000FF"><eg-confirm-dialog</span></span>\r
+ <span style="color: #009900">i18n</span>-<span style="color: #009900">dialogTitle</span>\r
+ <span style="color: #009900">i18n</span>-<span style="color: #009900">dialogBody</span>\r
+ <span style="color: #009900">dialogTitle</span><span style="color: #990000">=</span><span style="color: #FF0000">"Workstation Exists"</span>\r
+ <span style="color: #009900">dialogBody</span><span style="color: #990000">=</span><span style="color: #FF0000">'Workstation "{{newName}}" already exists. Use it anyway?'</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>\r
+<span style="font-weight: bold"><span style="color: #0000FF"></eg-confirm-dialog></span></span></tt></pre></div></div>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_integrated_i18n_2">Integrated I18N</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+ng xi18n\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+<a href="https://en.wikipedia.org/wiki/XLIFF — default">https://en.wikipedia.org/wiki/XLIFF — default</a> format\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+Supports XLIFF 1.2 (default), XLIFF 2, XML Message Bundle (XMB)\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+PO files not supported, but XLIFF/PO translators exist\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+<a href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/xliff2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/xliff2po.html</a>\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_i18n_xliff_sample">I18N XLIFF Sample</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<div class="listingblock">\r
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8\r
+by Lorenzo Bettini\r
+http://www.lorenzobettini.it\r
+http://www.gnu.org/software/src-highlite -->\r
+<pre><tt><span style="font-weight: bold"><span style="color: #0000FF"><trans-unit</span></span> <span style="color: #009900">id</span><span style="color: #990000">=</span><span style="color: #FF0000">"ac0e8358232537233600051cfca69a2e0e1ba1d7"</span> <span style="color: #009900">datatype</span><span style="color: #990000">=</span><span style="color: #FF0000">"html"</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>\r
+ <span style="font-weight: bold"><span style="color: #0000FF"><source></span></span>\r
+ Welcome to Webby, <span style="font-weight: bold"><span style="color: #0000FF"><x</span></span> <span style="color: #009900">id</span><span style="color: #990000">=</span><span style="color: #FF0000">"INTERPOLATION"</span> <span style="color: #009900">equiv-text</span><span style="color: #990000">=</span><span style="color: #FF0000">"{{name}}"</span><span style="font-weight: bold"><span style="color: #0000FF">/></span></span>\r
+ <span style="font-weight: bold"><span style="color: #0000FF"></source></span></span>\r
+ <span style="font-weight: bold"><span style="color: #0000FF"><context-group</span></span> <span style="color: #009900">purpose</span><span style="color: #990000">=</span><span style="color: #FF0000">"location"</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>\r
+ <span style="font-weight: bold"><span style="color: #0000FF"><context</span></span> <span style="color: #009900">context-type</span><span style="color: #990000">=</span><span style="color: #FF0000">"sourcefile"</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>app/welcome.component.ts<span style="font-weight: bold"><span style="color: #0000FF"></context></span></span>\r
+ <span style="font-weight: bold"><span style="color: #0000FF"><context</span></span> <span style="color: #009900">context-type</span><span style="color: #990000">=</span><span style="color: #FF0000">"linenumber"</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>2<span style="font-weight: bold"><span style="color: #0000FF"></context></span></span>\r
+ <span style="font-weight: bold"><span style="color: #0000FF"></context-group></span></span>\r
+ <span style="font-weight: bold"><span style="color: #0000FF"><note</span></span> <span style="color: #009900">priority</span><span style="color: #990000">=</span><span style="color: #FF0000">"1"</span> <span style="color: #009900">from</span><span style="color: #990000">=</span><span style="color: #FF0000">"description"</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>Home page welcome message<span style="font-weight: bold"><span style="color: #0000FF"></note></span></span>\r
+ <span style="font-weight: bold"><span style="color: #0000FF"><note</span></span> <span style="color: #009900">priority</span><span style="color: #990000">=</span><span style="color: #FF0000">"1"</span> <span style="color: #009900">from</span><span style="color: #990000">=</span><span style="color: #FF0000">"meaning"</span><span style="font-weight: bold"><span style="color: #0000FF">></span></span>welcome<span style="font-weight: bold"><span style="color: #0000FF"></note></span></span>\r
+<span style="font-weight: bold"><span style="color: #0000FF"></trans-unit></span></span></tt></pre></div></div>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_more_i18n_on_the_horizon">More I18N On the Horizon</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<div class="quoteblock">\r
+<div class="content">In v6 we will release runtime i18n: one bundle for all locale, translations\r
+resolved at runtime, and maybe <strong>code translations</strong> if we have the time\r
+(otherwise it’ll come soon after).</div>\r
+<div class="attribution">\r
+<em>https://github.com/angular/angular/issues/11405</em><br />\r
+— ocombe\r
+</div></div>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_skipping_template_toolkit">Skipping Template Toolkit?</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Using standard ng5 layout and tools\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+Mixing ng5 i18n and TT no-go.\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+Code & templates in same directory is very convenient\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Org unit template overlays possible via alternate mechanisms\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_rxjs">RxJS</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Promises are now supported by default in major browsers.\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+No "notify" support\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+rxjs.Observables handle data streams\r
+</span>\r
+</li>\r
+</ul>\r
+<div class="listingblock">\r
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8\r
+by Lorenzo Bettini\r
+http://www.lorenzobettini.it\r
+http://www.gnu.org/software/src-highlite -->\r
+<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">this</span></span><span style="color: #990000">.</span>net<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">request</span></span><span style="color: #990000">(...).</span><span style="font-weight: bold"><span style="color: #000000">subscribe</span></span><span style="color: #990000">(</span>\r
+ result <span style="color: #990000">=></span> console<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">log</span></span><span style="color: #990000">(</span>`got a result<span style="color: #990000">:</span> $<span style="color: #FF0000">{</span>result<span style="color: #FF0000">}</span>`<span style="color: #990000">),</span>\r
+ error <span style="color: #990000">=></span> console<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">error</span></span><span style="color: #990000">(</span>`got error $<span style="color: #FF0000">{</span>error<span style="color: #FF0000">}</span>`<span style="color: #990000">),</span>\r
+ <span style="color: #990000">()</span> <span style="color: #990000">=></span> console<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">log</span></span><span style="color: #990000">(</span><span style="color: #FF0000">'All done'</span><span style="color: #990000">)</span>\r
+<span style="color: #990000">);</span></tt></pre></div></div>\r
+<ul class="">\r
+<li>\r
+<span>\r
+.toPromise() resolves with the last observed value\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Observables not observered are not executed!!\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_typescript">TypeScript</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class=" incremental">\r
+<li>\r
+<span>\r
+JavaScript superset that compiles to JS.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Classes (inheritance), Interfaces, Types, etc.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+<a href="https://www.typescriptlang.org/">https://www.typescriptlang.org/</a>\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+<a href="https://github.com/Microsoft/TypeScript/">https://github.com/Microsoft/TypeScript/</a>\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_typescript_fun_interfaces">TypeScript Fun: Interfaces</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<div class="listingblock">\r
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8\r
+by Lorenzo Bettini\r
+http://www.lorenzobettini.it\r
+http://www.gnu.org/software/src-highlite -->\r
+<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">interface</span></span> SomeParams <span style="color: #FF0000">{</span>\r
+ name<span style="color: #990000">:</span> string<span style="color: #990000">,</span>\r
+ email<span style="color: #990000">?:</span> string<span style="color: #990000">,</span> <span style="font-style: italic"><span style="color: #9A1900">// optional</span></span>\r
+ valid<span style="color: #990000">:</span> boolean\r
+<span style="color: #FF0000">}</span>\r
+<span style="font-weight: bold"><span style="color: #000000">search</span></span><span style="color: #990000">(</span>params<span style="color: #990000">:</span> SomeParams<span style="color: #990000">)</span> <span style="color: #FF0000">{</span><span style="color: #990000">...</span><span style="color: #FF0000">}</span>\r
+\r
+<span style="font-style: italic"><span style="color: #9A1900">// client</span></span>\r
+<span style="font-weight: bold"><span style="color: #000000">search</span></span><span style="color: #990000">(</span><span style="color: #FF0000">{</span>name<span style="color: #990000">:</span> <span style="color: #FF0000">'jane'</span><span style="color: #990000">,</span> valid<span style="color: #990000">:</span> <span style="font-weight: bold"><span style="color: #0000FF">true</span></span><span style="color: #FF0000">}</span><span style="color: #990000">);</span></tt></pre></div></div>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_other_changes_8230_bootstrap_v4">Other Changes… Bootstrap v4</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+<a href="https://getbootstrap.com/">https://getbootstrap.com/</a>\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+<a href="https://ng-bootstrap.github.io/ — v4">https://ng-bootstrap.github.io/ — v4</a> only\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Panels, Thumbnails, and Wells replaced with "Cards"\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Expanded utility classes!\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+No more glyphicons — licensing issues.\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+<a href="https://getbootstrap.com/docs/4.0/extend/icons/">https://getbootstrap.com/docs/4.0/extend/icons/</a>\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+<a href="https://material.io/icons/ — apache">https://material.io/icons/ — apache</a> license\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_exploring_ng5">Exploring ng5</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+<a href="https://angular.io/tutorial">https://angular.io/tutorial</a>.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Build a pure ng5 app.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Using Angular style guide.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Experiment with downgrading ng5 services for use in ng1.\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_ng5_app_demo">Ng5 App Demo</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<div class="paragraph"><p><a href="https://35.186.179.218/eg2/staff/splash">https://35.186.179.218/eg2/staff/splash</a></p></div>\r
+<div class="admonitionblock">\r
+<table><tr>\r
+<td class="icon">\r
+<div class="title">Note</div>\r
+</td>\r
+<td class="content">This server will be alive for ~1 month.</td>\r
+</tr></table>\r
+</div>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_strategies_for_migrating_to_ng5">Strategies for Migrating to ng5</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Inline Replacement\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Parallel Apps with Shared Code\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Parallel Apps w/o Shared Code\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_inline_replacement">Inline Replacement</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Insert an ng5 shell to ng1 (/eg/staff/)\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Migrate services and apps in chunks.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+No new in browser paths\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Least amount of code duplication\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_inline_replacement_challenges">Inline Replacement: Challenges</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Requires a lot of steps\r
+</span>\r
+<ol class="loweralpha">\r
+<li>\r
+<span>\r
+Rearranging file structure\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Adherence to AngularJS style guide\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Integration of TypeScript\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Migrating to component directives\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Migrating from ng1 to ng5\r
+</span>\r
+</li>\r
+</ol>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_inline_replacement_challenges_continued">Inline Replacement: Challenges Continued</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Mixing ng5 and EGWeb problematic\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+Path resolution issues (TT2 vs. html)\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+New ng5 components must be Bootstrap-3 comatible.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Ties new project to /eg/staff\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Documentation assumes a single-app upgrade.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Highly customized\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_parallel_migration">Parallel Migration</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class=" incremental">\r
+<li>\r
+<span>\r
+Create a new pure ng5 app (/eg2/)\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+Use ng5 i18n, build tools, recommended structure, etc.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Framework for non-staff apps\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+Staff seamlessly navigate between /eg/staff and /eg2/staff\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Data shared via localStorage, cookies, etc.\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_parallel_migration_v1_shared_code">Parallel Migration v1: Shared Code</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Add the ng5 shell to ng1\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Migrate shared services/components to ng5 and "downgrade"\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Maintain a single copy of shared service/directive\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Can activate ng5 shell on a per-app basis.\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_shared_parallel_challenges">Shared Parallel: Challenges</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Less prep than inline, but still some gotchas for ng5 shell\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+No page-level controllers / must be <ng-view> loaded.\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+It only makes sense to share core services & components.\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+Roughly 1/4 of the webstaff codebase\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+ng5 shell requires global adoption before we benefit from shared code.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Shared components have to be BS3 compatible\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+ng1 client must also load and run ng5\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_parallel_migration_v2_no_code_sharing">Parallel Migration v2: No Code Sharing</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+No ng-upgrade\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+/eg/staff remains pure ng1\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Services, interfaces migrated in discrete units.\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+Start with core services & components\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+<li>\r
+<span>\r
+No ng5 shell requirement\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+No Bootstrap v3 requirement\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Less complicated overall\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_unshared_parallel_challenges">Unshared Parallel: Challenges</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Maintaining multiple versions of share-able code.\r
+</span>\r
+<ul class="">\r
+<li>\r
+<span>\r
+The ~1/4\r
+</span>\r
+</li>\r
+</ul>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_other_migration_tasks">Other Migration Tasks</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class="">\r
+<li>\r
+<span>\r
+Phasing out Dojo UI’s and iframes.\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_decisions">Decisions</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class=" incremental">\r
+<li>\r
+<span>\r
+Are we doing this?\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Pick a migration strategy\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Pick an icon set\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+Determine minimum requirements for initial deployment.\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_possible_migration_plan">Possible Migration Plan</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+<ul class=" incremental">\r
+<li>\r
+<span>\r
+3.2 Key services ported and navbar synchronized.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+3.3 Initial deployment. First batch of Dojo/iframe UIs migrated.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+3.4 More Dojo UI’s migrated. New UI’s.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+3.5 Dojo wrapped up, first batch of ng1 UI’s ported.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+3.6 More ng1 UI’s ported.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+3.7 ng1 migration wrapped up, ng1 deprecated.\r
+</span>\r
+</li>\r
+<li>\r
+<span>\r
+3.8 (4.0?) Purge ng1\r
+</span>\r
+</li>\r
+</ul>\r
+</div>\r
+</div>\r
+<div class="sect1 slide">\r
+<h1 id="_questions">Questions</h1>\r
+<div class="sectionbody" style="max-width:45em">\r
+</div>\r
+</div>\r
+</body>\r
+</html>\r
--- /dev/null
+<!DOCTYPE html>\r
+<html>\r
+<head>\r
+ <meta charset="utf-8">\r
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">\r
+ <title>Hatch Review</title>\r
+ <meta name="viewport" content="width=1024, user-scalable=no">\r
+ <meta name="author" content="Bill Erickson, Software Development Engineer, King County Library System" />\r
+ <meta name="generator" content="AsciiDoc 8.6.9" />\r
+ <meta name="presdate" content="Evergreen Conference, 2018" />\r
+ \r
+ <!-- Core and extension CSS files -->\r
+<style type="text/css">\r
+html, body {\r
+ height: 100%;\r
+ padding: 0;\r
+ margin: 0;\r
+}\r
+\r
+body.deck-container {\r
+ overflow-y: auto;\r
+ position: static;\r
+}\r
+\r
+.deck-container {\r
+ position: relative;\r
+ min-height: 100%;\r
+ margin: 0 auto;\r
+ padding: 0 48px;\r
+ font-size: 16px;\r
+ line-height: 1.25;\r
+ overflow: hidden;\r
+ /* Resets and base styles from HTML5 Boilerplate */\r
+ /* End HTML5 Boilerplate adaptations */\r
+}\r
+.js .deck-container {\r
+ visibility: hidden;\r
+}\r
+.ready .deck-container {\r
+ visibility: visible;\r
+}\r
+.touch .deck-container {\r
+ -webkit-text-size-adjust: none;\r
+ -moz-text-size-adjust: none;\r
+}\r
+.deck-container div, .deck-container span, .deck-container object, .deck-container iframe,\r
+.deck-container h1, .deck-container h2, .deck-container h3, .deck-container h4, .deck-container h5, .deck-container h6, .deck-container p, .deck-container blockquote, .deck-container pre,\r
+.deck-container abbr, .deck-container address, .deck-container cite, .deck-container code, .deck-container del, .deck-container dfn, .deck-container em, .deck-container img, .deck-container ins, .deck-container kbd, .deck-container q, .deck-container samp,\r
+.deck-container small, .deck-container strong, .deck-container sub, .deck-container sup, .deck-container var, .deck-container b, .deck-container i, .deck-container dl, .deck-container dt, .deck-container dd, .deck-container ol, .deck-container ul, .deck-container li,\r
+.deck-container fieldset, .deck-container form, .deck-container label, .deck-container legend,\r
+.deck-container table, .deck-container caption, .deck-container tbody, .deck-container tfoot, .deck-container thead, .deck-container tr, .deck-container th, .deck-container td,\r
+.deck-container article, .deck-container aside, .deck-container canvas, .deck-container details, .deck-container figcaption, .deck-container figure,\r
+.deck-container footer, .deck-container header, .deck-container hgroup, .deck-container menu, .deck-container nav, .deck-container section, .deck-container summary,\r
+.deck-container time, .deck-container mark, .deck-container audio, .deck-container video {\r
+ margin: 0;\r
+ padding: 0;\r
+ border: 0;\r
+ font-size: 100%;\r
+ font: inherit;\r
+ vertical-align: baseline;\r
+}\r
+.deck-container article, .deck-container aside, .deck-container details, .deck-container figcaption, .deck-container figure,\r
+.deck-container footer, .deck-container header, .deck-container hgroup, .deck-container menu, .deck-container nav, .deck-container section {\r
+ display: block;\r
+}\r
+.deck-container blockquote, .deck-container q {\r
+ quotes: none;\r
+}\r
+.deck-container blockquote:before, .deck-container blockquote:after, .deck-container q:before, .deck-container q:after {\r
+ content: "";\r
+ content: none;\r
+}\r
+.deck-container ins {\r
+ background-color: #ff9;\r
+ color: #000;\r
+ text-decoration: none;\r
+}\r
+.deck-container mark {\r
+ background-color: #ff9;\r
+ color: #000;\r
+ font-style: italic;\r
+ font-weight: bold;\r
+}\r
+.deck-container del {\r
+ text-decoration: line-through;\r
+}\r
+.deck-container abbr[title], .deck-container dfn[title] {\r
+ border-bottom: 1px dotted;\r
+ cursor: help;\r
+}\r
+.deck-container table {\r
+ border-collapse: collapse;\r
+ border-spacing: 0;\r
+}\r
+.deck-container hr {\r
+ display: block;\r
+ height: 1px;\r
+ border: 0;\r
+ border-top: 1px solid #ccc;\r
+ margin: 1em 0;\r
+ padding: 0;\r
+}\r
+.deck-container input, .deck-container select {\r
+ vertical-align: middle;\r
+}\r
+.deck-container select, .deck-container input, .deck-container textarea, .deck-container button {\r
+ font: 99% sans-serif;\r
+}\r
+.deck-container pre, .deck-container code, .deck-container kbd, .deck-container samp {\r
+ font-family: monospace, sans-serif;\r
+}\r
+.deck-container a {\r
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\r
+}\r
+.deck-container a:hover, .deck-container a:active {\r
+ outline: none;\r
+}\r
+.deck-container ul, .deck-container ol {\r
+ margin-left: 2em;\r
+ vertical-align: top;\r
+}\r
+.deck-container ol {\r
+ list-style-type: decimal;\r
+}\r
+.deck-container nav ul, .deck-container nav li {\r
+ margin: 0;\r
+ list-style: none;\r
+ list-style-image: none;\r
+}\r
+.deck-container small {\r
+ font-size: 85%;\r
+}\r
+.deck-container strong, .deck-container th {\r
+ font-weight: bold;\r
+}\r
+.deck-container td {\r
+ vertical-align: top;\r
+}\r
+.deck-container sub, .deck-container sup {\r
+ font-size: 75%;\r
+ line-height: 0;\r
+ position: relative;\r
+}\r
+.deck-container sup {\r
+ top: -0.5em;\r
+}\r
+.deck-container sub {\r
+ bottom: -0.25em;\r
+}\r
+.deck-container textarea {\r
+ overflow: auto;\r
+}\r
+.ie6 .deck-container legend, .ie7 .deck-container legend {\r
+ margin-left: -7px;\r
+}\r
+.deck-container input[type="radio"] {\r
+ vertical-align: text-bottom;\r
+}\r
+.deck-container input[type="checkbox"] {\r
+ vertical-align: bottom;\r
+}\r
+.ie7 .deck-container input[type="checkbox"] {\r
+ vertical-align: baseline;\r
+}\r
+.ie6 .deck-container input {\r
+ vertical-align: text-bottom;\r
+}\r
+.deck-container label, .deck-container input[type="button"], .deck-container input[type="submit"], .deck-container input[type="image"], .deck-container button {\r
+ cursor: pointer;\r
+}\r
+.deck-container button, .deck-container input, .deck-container select, .deck-container textarea {\r
+ margin: 0;\r
+}\r
+.deck-container input:invalid, .deck-container textarea:invalid {\r
+ border-radius: 1px;\r
+ -moz-box-shadow: 0px 0px 5px red;\r
+ -webkit-box-shadow: 0px 0px 5px red;\r
+ box-shadow: 0px 0px 5px red;\r
+}\r
+.deck-container input:invalid .no-boxshadow, .deck-container textarea:invalid .no-boxshadow {\r
+ background-color: #f0dddd;\r
+}\r
+.deck-container button {\r
+ width: auto;\r
+ overflow: visible;\r
+}\r
+.ie7 .deck-container img {\r
+ -ms-interpolation-mode: bicubic;\r
+}\r
+.deck-container, .deck-container select, .deck-container input, .deck-container textarea {\r
+ color: #444;\r
+}\r
+.deck-container a {\r
+ color: #607890;\r
+}\r
+.deck-container a:hover, .deck-container a:focus {\r
+ color: #036;\r
+}\r
+.deck-container a:link {\r
+ -webkit-tap-highlight-color: #fff;\r
+}\r
+.deck-container.deck-loading {\r
+ display: none;\r
+}\r
+\r
+.slide {\r
+ width: auto;\r
+ min-height: 100%;\r
+ position: relative;\r
+}\r
+.slide h1 {\r
+ font-size: 4.5em;\r
+}\r
+.slide h1, .slide .vcenter {\r
+ font-weight: bold;\r
+ text-align: center;\r
+ padding-top: 1em;\r
+ max-height: 100%;\r
+}\r
+.csstransforms .slide h1, .csstransforms .slide .vcenter {\r
+ padding: 0 48px;\r
+ position: absolute;\r
+ left: 0;\r
+ right: 0;\r
+ top: 50%;\r
+ -webkit-transform: translate(0, -50%);\r
+ -moz-transform: translate(0, -50%);\r
+ -ms-transform: translate(0, -50%);\r
+ -o-transform: translate(0, -50%);\r
+ transform: translate(0, -50%);\r
+}\r
+.slide .vcenter h1 {\r
+ position: relative;\r
+ top: auto;\r
+ padding: 0;\r
+ -webkit-transform: none;\r
+ -moz-transform: none;\r
+ -ms-transform: none;\r
+ -o-transform: none;\r
+ transform: none;\r
+}\r
+.slide h2 {\r
+ font-size: 2.25em;\r
+ font-weight: bold;\r
+ padding-top: .5em;\r
+ margin: 0 0 .66666em 0;\r
+ border-bottom: 3px solid #888;\r
+}\r
+.slide h3 {\r
+ font-size: 1.4375em;\r
+ font-weight: bold;\r
+ margin-bottom: .30435em;\r
+}\r
+.slide h4 {\r
+ font-size: 1.25em;\r
+ font-weight: bold;\r
+ margin-bottom: .25em;\r
+}\r
+.slide h5 {\r
+ font-size: 1.125em;\r
+ font-weight: bold;\r
+ margin-bottom: .2222em;\r
+}\r
+.slide h6 {\r
+ font-size: 1em;\r
+ font-weight: bold;\r
+}\r
+.slide img, .slide iframe, .slide video {\r
+ display: block;\r
+ max-width: 100%;\r
+}\r
+.slide video, .slide iframe, .slide img {\r
+ display: block;\r
+ margin: 0 auto;\r
+}\r
+.slide p, .slide blockquote, .slide iframe, .slide img, .slide ul, .slide ol, .slide pre, .slide video {\r
+ margin-bottom: 1em;\r
+}\r
+.slide pre {\r
+ white-space: pre;\r
+ white-space: pre-wrap;\r
+ word-wrap: break-word;\r
+ padding: 1em;\r
+ border: 1px solid #888;\r
+}\r
+.slide em {\r
+ font-style: italic;\r
+}\r
+.slide li {\r
+ padding: .25em 0;\r
+ vertical-align: middle;\r
+}\r
+\r
+.deck-before, .deck-previous, .deck-next, .deck-after {\r
+ position: absolute;\r
+ left: -999em;\r
+ top: -999em;\r
+}\r
+\r
+.deck-current {\r
+ z-index: 2;\r
+}\r
+\r
+.slide .slide {\r
+ visibility: hidden;\r
+ position: static;\r
+ min-height: 0;\r
+}\r
+\r
+.deck-child-current {\r
+ position: static;\r
+ z-index: 2;\r
+}\r
+.deck-child-current .slide {\r
+ visibility: hidden;\r
+}\r
+.deck-child-current .deck-previous, .deck-child-current .deck-before, .deck-child-current .deck-current {\r
+ visibility: visible;\r
+}\r
+\r
+@media screen and (max-device-width: 480px) {\r
+ /* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */\r
+}\r
+@media print {\r
+ * {\r
+ background: transparent !important;\r
+ color: black !important;\r
+ text-shadow: none !important;\r
+ filter: none !important;\r
+ -ms-filter: none !important;\r
+ -webkit-box-reflect: none !important;\r
+ -moz-box-reflect: none !important;\r
+ -webkit-box-shadow: none !important;\r
+ -moz-box-shadow: none !important;\r
+ box-shadow: none !important;\r
+ }\r
+ * :before, * :after {\r
+ display: none !important;\r
+ }\r
+\r
+ a, a:visited {\r
+ color: #444 !important;\r
+ text-decoration: underline;\r
+ }\r
+\r
+ a[href]:after {\r
+ content: " (" attr(href) ")";\r
+ }\r
+\r
+ abbr[title]:after {\r
+ content: " (" attr(title) ")";\r
+ }\r
+\r
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {\r
+ content: "";\r
+ }\r
+\r
+ pre, blockquote {\r
+ border: 1px solid #999;\r
+ page-break-inside: avoid;\r
+ }\r
+\r
+ thead {\r
+ display: table-header-group;\r
+ }\r
+\r
+ tr, img {\r
+ page-break-inside: avoid;\r
+ }\r
+\r
+ @page {\r
+ margin: 0.5cm;\r
+}\r
+\r
+ p, h2, h3 {\r
+ orphans: 3;\r
+ widows: 3;\r
+ }\r
+\r
+ h2, h3 {\r
+ page-break-after: avoid;\r
+ }\r
+\r
+ .slide {\r
+ position: static !important;\r
+ visibility: visible !important;\r
+ display: block !important;\r
+ -webkit-transform: none !important;\r
+ -moz-transform: none !important;\r
+ -o-transform: none !important;\r
+ -ms-transform: none !important;\r
+ transform: none !important;\r
+ opacity: 1 !important;\r
+ }\r
+\r
+ h1, .vcenter {\r
+ -webkit-transform: none !important;\r
+ -moz-transform: none !important;\r
+ -o-transform: none !important;\r
+ -ms-transform: none !important;\r
+ transform: none !important;\r
+ padding: 0 !important;\r
+ position: static !important;\r
+ }\r
+\r
+ .deck-container > .slide {\r
+ page-break-after: always;\r
+ }\r
+\r
+ .deck-container {\r
+ width: 100% !important;\r
+ height: auto !important;\r
+ padding: 0 !important;\r
+ display: block !important;\r
+ }\r
+\r
+ script {\r
+ display: none;\r
+ }\r
+}\r
+</style>\r
+<style type="text/css">\r
+.deck-container .goto-form {\r
+ position: absolute;\r
+ z-index: 3;\r
+ bottom: 10px;\r
+ left: 50%;\r
+ height: 1.75em;\r
+ margin: 0 0 0 -9.125em;\r
+ line-height: 1.75em;\r
+ padding: 0.625em;\r
+ display: none;\r
+ background: #ccc;\r
+ overflow: hidden;\r
+}\r
+.borderradius .deck-container .goto-form {\r
+ -webkit-border-radius: 10px;\r
+ -moz-border-radius: 10px;\r
+ border-radius: 10px;\r
+}\r
+.deck-container .goto-form label {\r
+ font-weight: bold;\r
+}\r
+.deck-container .goto-form label, .deck-container .goto-form input {\r
+ display: inline-block;\r
+ font-family: inherit;\r
+}\r
+\r
+.deck-goto .goto-form {\r
+ display: block;\r
+}\r
+\r
+#goto-slide {\r
+ width: 8.375em;\r
+ margin: 0 0.625em;\r
+ height: 1.4375em;\r
+}\r
+\r
+@media print {\r
+ .goto-form, #goto-slide {\r
+ display: none !important;\r
+ }\r
+}\r
+</style>\r
+<style type="text/css">\r
+.deck-menu .slide {\r
+ background: #eee;\r
+ position: relative;\r
+ left: 0;\r
+ top: 0;\r
+ visibility: visible;\r
+ cursor: pointer;\r
+}\r
+.no-csstransforms .deck-menu > .slide {\r
+ float: left;\r
+ width: 22%;\r
+ height: 22%;\r
+ min-height: 0;\r
+ margin: 1%;\r
+ font-size: 0.22em;\r
+ overflow: hidden;\r
+ padding: 0 0.5%;\r
+}\r
+.csstransforms .deck-menu > .slide {\r
+ -webkit-transform: scale(0.22) !important;\r
+ -moz-transform: scale(0.22) !important;\r
+ -o-transform: scale(0.22) !important;\r
+ -ms-transform: scale(0.22) !important;\r
+ transform: scale(0.22) !important;\r
+ -webkit-transform-origin: 0 0;\r
+ -moz-transform-origin: 0 0;\r
+ -o-transform-origin: 0 0;\r
+ -ms-transform-origin: 0 0;\r
+ transform-origin: 0 0;\r
+ -webkit-box-sizing: border-box;\r
+ -moz-box-sizing: border-box;\r
+ box-sizing: border-box;\r
+ width: 100%;\r
+ height: 100%;\r
+ overflow: hidden;\r
+ padding: 0 48px;\r
+ margin: 12px;\r
+}\r
+.deck-menu iframe, .deck-menu img, .deck-menu video {\r
+ max-width: 100%;\r
+}\r
+.deck-menu .deck-current, .no-touch .deck-menu .slide:hover {\r
+ background: #ddf;\r
+}\r
+.deck-menu.deck-container:hover .deck-prev-link, .deck-menu.deck-container:hover .deck-next-link {\r
+ display: none;\r
+}\r
+</style>\r
+<style type="text/css">\r
+.deck-container .deck-prev-link, .deck-container .deck-next-link {\r
+ display: none;\r
+ position: absolute;\r
+ z-index: 3;\r
+ top: 50%;\r
+ width: 32px;\r
+ height: 32px;\r
+ margin-top: -16px;\r
+ font-size: 20px;\r
+ font-weight: bold;\r
+ line-height: 32px;\r
+ vertical-align: middle;\r
+ text-align: center;\r
+ text-decoration: none;\r
+ color: #fff;\r
+ background: #888;\r
+}\r
+.borderradius .deck-container .deck-prev-link, .borderradius .deck-container .deck-next-link {\r
+ -webkit-border-radius: 16px;\r
+ -moz-border-radius: 16px;\r
+ border-radius: 16px;\r
+}\r
+.deck-container .deck-prev-link:hover, .deck-container .deck-prev-link:focus, .deck-container .deck-prev-link:active, .deck-container .deck-prev-link:visited, .deck-container .deck-next-link:hover, .deck-container .deck-next-link:focus, .deck-container .deck-next-link:active, .deck-container .deck-next-link:visited {\r
+ color: #fff;\r
+}\r
+.deck-container .deck-prev-link {\r
+ left: 8px;\r
+}\r
+.deck-container .deck-next-link {\r
+ right: 8px;\r
+}\r
+.deck-container:hover .deck-prev-link, .deck-container:hover .deck-next-link {\r
+ display: block;\r
+}\r
+.deck-container:hover .deck-prev-link.deck-nav-disabled, .touch .deck-container:hover .deck-prev-link, .deck-container:hover .deck-next-link.deck-nav-disabled, .touch .deck-container:hover .deck-next-link {\r
+ display: none;\r
+}\r
+\r
+@media print {\r
+ .deck-prev-link, .deck-next-link {\r
+ display: none !important;\r
+ }\r
+}\r
+</style>\r
+<style type="text/css">\r
+.deck-container .deck-status {\r
+ position: absolute;\r
+ bottom: 10px;\r
+ right: 5px;\r
+ color: #888;\r
+ z-index: 3;\r
+ margin: 0;\r
+}\r
+\r
+body.deck-container .deck-status {\r
+ position: fixed;\r
+}\r
+\r
+@media print {\r
+ .deck-status {\r
+ display: none;\r
+ }\r
+}\r
+</style>\r
+<style type="text/css">\r
+.deck-container .deck-permalink {\r
+ display: none;\r
+ position: absolute;\r
+ z-index: 4;\r
+ bottom: 30px;\r
+ right: 0;\r
+ width: 48px;\r
+ text-align: center;\r
+}\r
+\r
+.no-history .deck-container:hover .deck-permalink {\r
+ display: block;\r
+}\r
+</style>\r
+<style type="text/css">\r
+.deck-container .deck-toc {\r
+ position: absolute;\r
+ z-index: 40;\r
+ top: 0px;\r
+ bottom: 0px;\r
+ left: 0;\r
+ right: 55%;\r
+ padding: 0.625em;\r
+ display: none;\r
+ background: #ccc;\r
+ overflow-y: auto;\r
+ overflow-x: auto;\r
+ background-color: #DDE4EB;\r
+ border-right: #A9A9A9 solid 1px;\r
+ width: 500px; }\r
+ .deck-container .deck-toc ul {\r
+ list-style: none;\r
+ margin: 0px;\r
+ padding: 0px;\r
+ font-size: 1em; }\r
+ .deck-container .deck-toc ul li {\r
+ white-space: nowrap;\r
+ padding-left: 1.5em;\r
+ font-weight: normal; }\r
+ .deck-container .deck-toc ul li#toc-0 {\r
+ font-weight: bold;\r
+ padding-bottom: 1em;\r
+ padding-left: 0px; }\r
+ .deck-container .deck-toc a {\r
+ width: 100%;\r
+ display: block !important;\r
+ text-decoration: none;\r
+ color: #595959 !important; }\r
+\r
+.deck-toc-frame .deck-toc {\r
+ display: block; }\r
+\r
+@media print {\r
+ .deck-toc {\r
+ display: none; } }\r
+</style>\r
+<!-- Theme CSS files -->\r
+<style type="text/css">\r
+@charset "UTF-8";\r
+.deck-container {\r
+ font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;\r
+ font-size: 1.75em;\r
+ background: #f4fafe;\r
+ /* Old browsers */\r
+ background: -moz-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);\r
+ /* FF3.6+ */\r
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f4fafe), color-stop(100%, #ccf0f0));\r
+ /* Chrome,Safari4+ */\r
+ background: -webkit-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);\r
+ /* Chrome10+,Safari5.1+ */\r
+ background: -o-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);\r
+ /* Opera11.10+ */\r
+ background: -ms-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);\r
+ /* IE10+ */\r
+ background: linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);\r
+ /* W3C */\r
+ background-attachment: fixed;\r
+}\r
+.deck-container > .slide {\r
+ text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);\r
+}\r
+.deck-container > .slide .deck-before, .deck-container > .slide .deck-previous {\r
+ opacity: 0.4;\r
+}\r
+.deck-container > .slide .deck-before:not(.deck-child-current) .deck-before, .deck-container > .slide .deck-before:not(.deck-child-current) .deck-previous, .deck-container > .slide .deck-previous:not(.deck-child-current) .deck-before, .deck-container > .slide .deck-previous:not(.deck-child-current) .deck-previous {\r
+ opacity: 1;\r
+}\r
+.deck-container > .slide .deck-child-current {\r
+ opacity: 1;\r
+}\r
+.deck-container .slide h1, .deck-container .slide h2, .deck-container .slide h3, .deck-container .slide h4, .deck-container .slide h5, .deck-container .slide h6 {\r
+ font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;\r
+}\r
+.deck-container .slide h1 {\r
+ color: #08455f;\r
+}\r
+.deck-container .slide h2 {\r
+ color: #0b7495;\r
+ border-bottom: 0;\r
+}\r
+.cssreflections .deck-container .slide h2 {\r
+ line-height: 1;\r
+ -webkit-box-reflect: below -0.556em -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.3, transparent), color-stop(0.7, rgba(255, 255, 255, 0.1)), to(transparent));\r
+ -moz-box-reflect: below -0.556em -moz-linear-gradient(top, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.3) 100%);\r
+}\r
+.deck-container .slide h3 {\r
+ color: #000;\r
+}\r
+.deck-container .slide pre {\r
+ border-color: #cde;\r
+ background: #fff;\r
+ position: relative;\r
+ z-index: auto;\r
+ /* http://nicolasgallagher.com/css-drop-shadows-without-images/ */\r
+}\r
+.borderradius .deck-container .slide pre {\r
+ -webkit-border-radius: 5px;\r
+ -moz-border-radius: 5px;\r
+ border-radius: 5px;\r
+}\r
+.csstransforms.boxshadow .deck-container .slide pre > :first-child:before {\r
+ content: "";\r
+ position: absolute;\r
+ z-index: -1;\r
+ background: #fff;\r
+ top: 0;\r
+ bottom: 0;\r
+ left: 0;\r
+ right: 0;\r
+}\r
+.csstransforms.boxshadow .deck-container .slide pre:before, .csstransforms.boxshadow .deck-container .slide pre:after {\r
+ content: "";\r
+ position: absolute;\r
+ z-index: -2;\r
+ bottom: 15px;\r
+ width: 50%;\r
+ height: 20%;\r
+ max-width: 300px;\r
+ -webkit-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);\r
+ -moz-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);\r
+ box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);\r
+}\r
+.csstransforms.boxshadow .deck-container .slide pre:before {\r
+ left: 10px;\r
+ -webkit-transform: rotate(-3deg);\r
+ -moz-transform: rotate(-3deg);\r
+ -ms-transform: rotate(-3deg);\r
+ -o-transform: rotate(-3deg);\r
+ transform: rotate(-3deg);\r
+}\r
+.csstransforms.boxshadow .deck-container .slide pre:after {\r
+ right: 10px;\r
+ -webkit-transform: rotate(3deg);\r
+ -moz-transform: rotate(3deg);\r
+ -ms-transform: rotate(3deg);\r
+ -o-transform: rotate(3deg);\r
+ transform: rotate(3deg);\r
+}\r
+.deck-container .slide code {\r
+ color: #789;\r
+}\r
+.deck-container .slide blockquote {\r
+ font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;\r
+ font-size: 2em;\r
+ padding: 1em 2em .5em 2em;\r
+ color: #000;\r
+ background: #fff;\r
+ position: relative;\r
+ border: 1px solid #cde;\r
+ z-index: auto;\r
+}\r
+.borderradius .deck-container .slide blockquote {\r
+ -webkit-border-radius: 5px;\r
+ -moz-border-radius: 5px;\r
+ border-radius: 5px;\r
+}\r
+.boxshadow .deck-container .slide blockquote > :first-child:before {\r
+ content: "";\r
+ position: absolute;\r
+ z-index: -1;\r
+ background: #fff;\r
+ top: 0;\r
+ bottom: 0;\r
+ left: 0;\r
+ right: 0;\r
+}\r
+.boxshadow .deck-container .slide blockquote:after {\r
+ content: "";\r
+ position: absolute;\r
+ z-index: -2;\r
+ top: 10px;\r
+ bottom: 10px;\r
+ left: 0;\r
+ right: 50%;\r
+ -moz-border-radius: 10px/100px;\r
+ border-radius: 10px/100px;\r
+ -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);\r
+ -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);\r
+ box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);\r
+}\r
+.deck-container .slide blockquote p {\r
+ margin: 0;\r
+}\r
+.deck-container .slide blockquote cite {\r
+ font-size: .5em;\r
+ font-style: normal;\r
+ font-weight: bold;\r
+ color: #888;\r
+}\r
+.deck-container .slide blockquote:before {\r
+ content: "“";\r
+ position: absolute;\r
+ top: 0;\r
+ left: 0;\r
+ font-size: 5em;\r
+ line-height: 1;\r
+ color: #ccf0f0;\r
+ z-index: 1;\r
+}\r
+.deck-container .slide ::-moz-selection {\r
+ background: #08455f;\r
+ color: #fff;\r
+}\r
+.deck-container .slide ::selection {\r
+ background: #08455f;\r
+ color: #fff;\r
+}\r
+.deck-container .slide a, .deck-container .slide a:hover, .deck-container .slide a:focus, .deck-container .slide a:active, .deck-container .slide a:visited {\r
+ color: #599;\r
+ text-decoration: none;\r
+}\r
+.deck-container .slide a:hover, .deck-container .slide a:focus {\r
+ text-decoration: underline;\r
+}\r
+.deck-container .deck-prev-link, .deck-container .deck-next-link {\r
+ background: #fff;\r
+ opacity: 0.5;\r
+}\r
+.deck-container .deck-prev-link, .deck-container .deck-prev-link:hover, .deck-container .deck-prev-link:focus, .deck-container .deck-prev-link:active, .deck-container .deck-prev-link:visited, .deck-container .deck-next-link, .deck-container .deck-next-link:hover, .deck-container .deck-next-link:focus, .deck-container .deck-next-link:active, .deck-container .deck-next-link:visited {\r
+ color: #599;\r
+}\r
+.deck-container .deck-prev-link:hover, .deck-container .deck-prev-link:focus, .deck-container .deck-next-link:hover, .deck-container .deck-next-link:focus {\r
+ opacity: 1;\r
+ text-decoration: none;\r
+}\r
+.deck-container .deck-status {\r
+ font-size: 0.6666em;\r
+}\r
+.deck-container.deck-menu .slide {\r
+ background: transparent;\r
+ -webkit-border-radius: 5px;\r
+ -moz-border-radius: 5px;\r
+ border-radius: 5px;\r
+}\r
+.rgba .deck-container.deck-menu .slide {\r
+ background: rgba(0, 0, 0, 0.1);\r
+}\r
+.deck-container.deck-menu .slide.deck-current, .rgba .deck-container.deck-menu .slide.deck-current, .no-touch .deck-container.deck-menu .slide:hover {\r
+ background: #fff;\r
+}\r
+.deck-container .goto-form {\r
+ background: #fff;\r
+ border: 1px solid #cde;\r
+ -webkit-border-radius: 5px;\r
+ -moz-border-radius: 5px;\r
+ border-radius: 5px;\r
+}\r
+.boxshadow .deck-container .goto-form {\r
+ -webkit-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;\r
+ -moz-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;\r
+ box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;\r
+}\r
+</style>\r
+<style type="text/css" id="transition-theme-link">\r
+</style>\r
+<!-- Replace path with correct path to Modernizr file. -->\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/* Modernizr 2.0.6 (Custom Build) | MIT & BSD\r
+ * Contains: fontface | backgroundsize | borderimage | borderradius | boxshadow | flexbox | hsla | multiplebgs | opacity | rgba | textshadow | cssanimations | csscolumns | generatedcontent | cssgradients | cssreflections | csstransforms | csstransforms3d | csstransitions | applicationcache | canvas | canvastext | draganddrop | hashchange | history | audio | video | indexeddb | input | inputtypes | localstorage | postmessage | sessionstorage | websockets | websqldatabase | webworkers | geolocation | inlinesvg | smil | svg | svgclippaths | touch | webgl | iepp | cssclasses | addtest | teststyles | testprop | testallprops | hasevent | prefixes | domprefixes | load\r
+ */\r
+;window.Modernizr=function(a,b,c){function H(){e.input=function(a){for(var b=0,c=a.length;b<c;b++)t[a[b]]=a[b]in l;return t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)l.setAttribute("type",f=a[d]),e=l.type!=="text",e&&(l.value=m,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&l.style.WebkitAppearance!==c?(g.appendChild(l),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(l,null).WebkitAppearance!=="textfield"&&l.offsetHeight!==0,g.removeChild(l)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=l.checkValidity&&l.checkValidity()===!1:/^color$/.test(f)?(g.appendChild(l),g.offsetWidth,e=l.value!=m,g.removeChild(l)):e=l.value!=m)),s[a[d]]=!!e;return s}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function F(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+p.join(c+" ")+c).split(" ");return E(d,b)}function E(a,b){for(var d in a)if(k[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function D(a,b){return!!~(""+a).indexOf(b)}function C(a,b){return typeof a===b}function B(a,b){return A(o.join(a+";")+(b||""))}function A(a){k.cssText=a}var d="2.0.6",e={},f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l=b.createElement("input"),m=":)",n=Object.prototype.toString,o=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),p="Webkit Moz O ms Khtml".split(" "),q={svg:"http://www.w3.org/2000/svg"},r={},s={},t={},u=[],v=function(a,c,d,e){var f,h,j,k=b.createElement("div");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:i+(d+1),k.appendChild(j);f=["­","<style>",a,"</style>"].join(""),k.id=i,k.innerHTML+=f,g.appendChild(k),h=c(k,a),k.parentNode.removeChild(k);return!!h},w=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=C(e[d],"function"),C(e[d],c)||(e[d]=c),e.removeAttribute(d))),e=null;return f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),x,y={}.hasOwnProperty,z;!C(y,c)&&!C(y.call,c)?z=function(a,b){return y.call(a,b)}:z=function(a,b){return b in a&&C(a.constructor.prototype[b],c)};var G=function(c,d){var f=c.join(""),g=d.length;v(f,function(c,d){var f=b.styleSheets[b.styleSheets.length-1],h=f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"",i=c.childNodes,j={};while(g--)j[i[g].id]=i[g];e.touch="ontouchstart"in a||j.touch.offsetTop===9,e.csstransforms3d=j.csstransforms3d.offsetLeft===9,e.generatedcontent=j.generatedcontent.offsetHeight>=1,e.fontface=/src/i.test(h)&&h.indexOf(d.split(" ")[0])===0},g,d)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",o.join("touch-enabled),("),i,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",o.join("transform-3d),("),i,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',m,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);r.flexbox=function(){function c(a,b,c,d){a.style.cssText=o.join(b+":"+c+";")+(d||"")}function a(a,b,c,d){b+=":",a.style.cssText=(b+o.join(c+";"+b)).slice(0,-b.length)+(d||"")}var d=b.createElement("div"),e=b.createElement("div");a(d,"display","box","width:42px;padding:0;"),c(e,"box-flex","1","width:10px;"),d.appendChild(e),g.appendChild(d);var f=e.offsetWidth===42;d.removeChild(e),g.removeChild(d);return f},r.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},r.canvastext=function(){return!!e.canvas&&!!C(b.createElement("canvas").getContext("2d").fillText,"function")},r.webgl=function(){return!!a.WebGLRenderingContext},r.touch=function(){return e.touch},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!a.postMessage},r.websqldatabase=function(){var b=!!a.openDatabase;return b},r.indexedDB=function(){for(var b=-1,c=p.length;++b<c;)if(a[p[b].toLowerCase()+"IndexedDB"])return!0;return!!a.indexedDB},r.hashchange=function(){return w("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},r.history=function(){return!!a.history&&!!history.pushState},r.draganddrop=function(){return w("dragstart")&&w("drop")},r.websockets=function(){for(var b=-1,c=p.length;++b<c;)if(a[p[b]+"WebSocket"])return!0;return"WebSocket"in a},r.rgba=function(){A("background-color:rgba(150,255,150,.5)");return D(k.backgroundColor,"rgba")},r.hsla=function(){A("background-color:hsla(120,40%,100%,.5)");return D(k.backgroundColor,"rgba")||D(k.backgroundColor,"hsla")},r.multiplebgs=function(){A("background:url(https://),url(https://),red url(https://)");return/(url\s*\(.*?){3}/.test(k.background)},r.backgroundsize=function(){return F("backgroundSize")},r.borderimage=function(){return F("borderImage")},r.borderradius=function(){return F("borderRadius")},r.boxshadow=function(){return F("boxShadow")},r.textshadow=function(){return b.createElement("div").style.textShadow===""},r.opacity=function(){B("opacity:.55");return/^0.55$/.test(k.opacity)},r.cssanimations=function(){return F("animationName")},r.csscolumns=function(){return F("columnCount")},r.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";A((a+o.join(b+a)+o.join(c+a)).slice(0,-a.length));return D(k.backgroundImage,"gradient")},r.cssreflections=function(){return F("boxReflect")},r.csstransforms=function(){return!!E(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},r.csstransforms3d=function(){var a=!!E(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in g.style&&(a=e.csstransforms3d);return a},r.csstransitions=function(){return F("transitionProperty")},r.fontface=function(){return e.fontface},r.generatedcontent=function(){return e.generatedcontent},r.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType){c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';c.h264=a.canPlayType(d+'"')||a.canPlayType(d+', mp4a.40.2"'),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}}catch(e){}return c},r.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),c.mp3=a.canPlayType("audio/mpeg;"),c.wav=a.canPlayType('audio/wav; codecs="1"'),c.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}catch(d){}return c},r.localstorage=function(){try{return!!localStorage.getItem}catch(a){return!1}},r.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}},r.webworkers=function(){return!!a.Worker},r.applicationcache=function(){return!!a.applicationCache},r.svg=function(){return!!b.createElementNS&&!!b.createElementNS(q.svg,"svg").createSVGRect},r.inlinesvg=function(){var a=b.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==q.svg},r.smil=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"animate")))},r.svgclippaths=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"clipPath")))};for(var I in r)z(r,I)&&(x=I.toLowerCase(),e[x]=r[I](),u.push((e[x]?"":"no-")+x));e.input||H(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)z(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return;b=typeof b=="boolean"?b:!!b(),g.className+=" "+(b?"":"no-")+a,e[a]=b}return e},A(""),j=l=null,a.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function s(a){var b=-1;while(++b<g)a.createElement(f[b])}a.iepp=a.iepp||{};var d=a.iepp,e=d.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",f=e.split("|"),g=f.length,h=new RegExp("(^|\\s)("+e+")","gi"),i=new RegExp("<(/*)("+e+")","gi"),j=/^\s*[\{}]\s*$/,k=new RegExp("(^|[^\\n]*?\\s)("+e+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),l=b.createDocumentFragment(),m=b.documentElement,n=m.firstChild,o=b.createElement("body"),p=b.createElement("style"),q=/print|all/,r;d.getCSS=function(a,b){if(a+""===c)return"";var e=-1,f=a.length,g,h=[];while(++e<f){g=a[e];if(g.disabled)continue;b=g.media||b,q.test(b)&&h.push(d.getCSS(g.imports,b),g.cssText),b="all"}return h.join("")},d.parseCSS=function(a){var b=[],c;while((c=k.exec(a))!=null)b.push(((j.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(h,"$1.iepp_$2")+c[4]);return b.join("\n")},d.writeHTML=function(){var a=-1;r=r||b.body;while(++a<g){var c=b.getElementsByTagName(f[a]),d=c.length,e=-1;while(++e<d)c[e].className.indexOf("iepp_")<0&&(c[e].className+=" iepp_"+f[a])}l.appendChild(r),m.appendChild(o),o.className=r.className,o.id=r.id,o.innerHTML=r.innerHTML.replace(i,"<$1font")},d._beforePrint=function(){p.styleSheet.cssText=d.parseCSS(d.getCSS(b.styleSheets,"all")),d.writeHTML()},d.restoreHTML=function(){o.innerHTML="",m.removeChild(o),m.appendChild(r)},d._afterPrint=function(){d.restoreHTML(),p.styleSheet.cssText=""},s(b),s(l);d.disablePP||(n.insertBefore(p,n.firstChild),p.media="print",p.className="iepp-printshim",a.attachEvent("onbeforeprint",d._beforePrint),a.attachEvent("onafterprint",d._afterPrint))}(a,b),e._version=d,e._prefixes=o,e._domPrefixes=p,e.hasEvent=w,e.testProp=function(a){return E([a])},e.testAllProps=F,e.testStyles=v,g.className=g.className.replace(/\bno-js\b/,"")+(f?" js "+u.join(" "):"");return e}(this,this.document),function(a,b,c){function k(a){return!a||a=="loaded"||a=="complete"}function j(){var a=1,b=-1;while(p.length- ++b)if(p[b].s&&!(a=p[b].r))break;a&&g()}function i(a){var c=b.createElement("script"),d;c.src=a.s,c.onreadystatechange=c.onload=function(){!d&&k(c.readyState)&&(d=1,j(),c.onload=c.onreadystatechange=null)},m(function(){d||(d=1,j())},H.errorTimeout),a.e?c.onload():n.parentNode.insertBefore(c,n)}function h(a){var c=b.createElement("link"),d;c.href=a.s,c.rel="stylesheet",c.type="text/css";if(!a.e&&(w||r)){var e=function(a){m(function(){if(!d)try{a.sheet.cssRules.length?(d=1,j()):e(a)}catch(b){b.code==1e3||b.message=="security"||b.message=="denied"?(d=1,m(function(){j()},0)):e(a)}},0)};e(c)}else c.onload=function(){d||(d=1,m(function(){j()},0))},a.e&&c.onload();m(function(){d||(d=1,j())},H.errorTimeout),!a.e&&n.parentNode.insertBefore(c,n)}function g(){var a=p.shift();q=1,a?a.t?m(function(){a.t=="c"?h(a):i(a)},0):(a(),j()):q=0}function f(a,c,d,e,f,h){function i(){!o&&k(l.readyState)&&(r.r=o=1,!q&&j(),l.onload=l.onreadystatechange=null,m(function(){u.removeChild(l)},0))}var l=b.createElement(a),o=0,r={t:d,s:c,e:h};l.src=l.data=c,!s&&(l.style.display="none"),l.width=l.height="0",a!="object"&&(l.type=d),l.onload=l.onreadystatechange=i,a=="img"?l.onerror=i:a=="script"&&(l.onerror=function(){r.e=r.r=1,g()}),p.splice(e,0,r),u.insertBefore(l,s?null:n),m(function(){o||(u.removeChild(l),r.r=r.e=o=1,j())},H.errorTimeout)}function e(a,b,c){var d=b=="c"?z:y;q=0,b=b||"j",C(a)?f(d,a,b,this.i++,l,c):(p.splice(this.i++,0,a),p.length==1&&g());return this}function d(){var a=H;a.loader={load:e,i:0};return a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=r&&!s,u=s?l:n.parentNode,v=a.opera&&o.call(a.opera)=="[object Opera]",w="webkitAppearance"in l.style,x=w&&"async"in b.createElement("script"),y=r?"object":v||x?"img":"script",z=w?"img":y,A=Array.isArray||function(a){return o.call(a)=="[object Array]"},B=function(a){return Object(a)===a},C=function(a){return typeof a=="string"},D=function(a){return o.call(a)=="[object Function]"},E=[],F={},G,H;H=function(a){function f(a){var b=a.split("!"),c=E.length,d=b.pop(),e=b.length,f={url:d,origUrl:d,prefixes:b},g,h;for(h=0;h<e;h++)g=F[b[h]],g&&(f=g(f));for(h=0;h<c;h++)f=E[h](f);return f}function e(a,b,e,g,h){var i=f(a),j=i.autoCallback;if(!i.bypass){b&&(b=D(b)?b:b[a]||b[g]||b[a.split("/").pop().split("?")[0]]);if(i.instead)return i.instead(a,b,e,g,h);e.load(i.url,i.forceCSS||!i.forceJS&&/css$/.test(i.url)?"c":c,i.noexec),(D(b)||D(j))&&e.load(function(){d(),b&&b(i.origUrl,h,g),j&&j(i.origUrl,h,g)})}}function b(a,b){function c(a){if(C(a))e(a,h,b,0,d);else if(B(a))for(i in a)a.hasOwnProperty(i)&&e(a[i],h,b,i,d)}var d=!!a.test,f=d?a.yep:a.nope,g=a.load||a.both,h=a.callback,i;c(f),c(g),a.complete&&b.load(a.complete)}var g,h,i=this.yepnope.loader;if(C(a))e(a,0,i,0);else if(A(a))for(g=0;g<a.length;g++)h=a[g],C(h)?e(h,0,i,0):A(h)?H(h):B(h)&&b(h,i);else B(a)&&b(a,i)},H.addPrefix=function(a,b){F[a]=b},H.addFilter=function(a){E.push(a)},H.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",G=function(){b.removeEventListener("DOMContentLoaded",G,0),b.readyState="complete"},0)),a.yepnope=d()}(this,this.document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*! jQuery v1.7.2 jquery.com | jquery.org/license */\r
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function b_(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bD.test(a)?d(a,e):b_(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&f.type(b)==="object")for(var e in b)b_(a+"["+e+"]",b[e],c,d);else d(a,b)}function b$(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bZ(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bS,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bZ(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bZ(a,c,d,e,"*",g));return l}function bY(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bO),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?1:0,g=4;if(d>0){if(c!=="border")for(;e<g;e+=2)c||(d-=parseFloat(f.css(a,"padding"+bx[e]))||0),c==="margin"?d+=parseFloat(f.css(a,c+bx[e]))||0:d-=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0;return d+"px"}d=by(a,b);if(d<0||d==null)d=a.style[b];if(bt.test(d))return d;d=parseFloat(d)||0;if(c)for(;e<g;e+=2)d+=parseFloat(f.css(a,"padding"+bx[e]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+bx[e]))||0);return d+"px"}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;b.nodeType===1&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?b.outerHTML=a.outerHTML:c!=="input"||a.type!=="checkbox"&&a.type!=="radio"?c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(f.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c,i[c][d])}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h,i){var j,k=d==null,l=0,m=a.length;if(d&&typeof d=="object"){for(l in d)e.access(a,c,l,d[l],1,h,f);g=1}else if(f!==b){j=i===b&&e.isFunction(f),k&&(j?(j=c,c=function(a,b,c){return j.call(e(a),c)}):(c.call(a,f),c=null));if(c)for(;l<m;l++)c(a[l],d,j?f.call(a[l],l,c(a[l],d)):f,i);g=1}return g?a:k?c.call(a):m?c(a[0],d):h},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m,n=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?n(g):h==="function"&&(!a.unique||!p.has(g))&&c.push(g)},o=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,j=!0,m=k||0,k=0,l=c.length;for(;c&&m<l;m++)if(c[m].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}j=!1,c&&(a.once?e===!0?p.disable():c=[]:d&&d.length&&(e=d.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){j&&f<=l&&(l--,f<=m&&m--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&p.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));return this},fire:function(){p.fireWith(this,arguments);return this},fired:function(){return!!i}};return p};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p=c.createElement("div"),q=c.documentElement;p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="<div "+n+"display:block;'><div style='"+t+"0;display:block;overflow:hidden;'></div></div>"+"<table "+n+"' cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="<table><tr><td style='"+t+"0;display:none'></td><td>t</td></tr></table>",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="<div style='width:5px;'></div>",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h,i,j=this[0],k=0,m=null;if(a===b){if(this.length){m=f.data(j);if(j.nodeType===1&&!f._data(j,"parsedAttrs")){g=j.attributes;for(i=g.length;k<i;k++)h=g[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),l(j,h,m[h]));f._data(j,"parsedAttrs",!0)}}return m}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!";return f.access(this,function(c){if(c===b){m=this.triggerHandler("getData"+e,[d[0]]),m===b&&j&&(m=f.data(j,a),m=l(j,a,m));return m===b&&d[1]?this.data(d[0]):m}d[1]=c,this.each(function(){var b=f(this);b.triggerHandler("setData"+e,d),f.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length<d)return f.queue(this[0],a);return c===b?this:this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise(c)}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i<g;i++)e=d[i],e&&(c=f.propFix[e]||e,h=u.test(e),h||f.attr(a,e,""),a.removeAttribute(v?e:c),h&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(\r
+a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:g&&G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=f.event.special[c.type]||{},j=[],k,l,m,n,o,p,q,r,s,t,u;g[0]=c,c.delegateTarget=this;if(!i.preDispatch||i.preDispatch.call(this,c)!==!1){if(e&&(!c.button||c.type!=="click")){n=f(this),n.context=this.ownerDocument||this;for(m=c.target;m!=this;m=m.parentNode||this)if(m.disabled!==!0){p={},r=[],n[0]=m;for(k=0;k<e;k++)s=d[k],t=s.selector,p[t]===b&&(p[t]=s.quick?H(m,s.quick):n.is(t)),p[t]&&r.push(s);r.length&&j.push({elem:m,matches:r})}}d.length>e&&j.push({elem:this,matches:d.slice(e)});for(k=0;k<j.length&&!c.isPropagationStopped();k++){q=j[k],c.currentTarget=q.elem;for(l=0;l<q.matches.length&&!c.isImmediatePropagationStopped();l++){s=q.matches[l];if(h||!c.namespace&&!s.namespace||c.namespace_re&&c.namespace_re.test(s.namespace))c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))}}i.postDispatch&&i.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),d._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9||d===11){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.globalPOS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")[\\s/>]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f\r
+.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(g){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1></$2>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]==="<table>"&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i<u;i++)bn(l[i]);else bn(l);l.nodeType?j.push(l):j=f.merge(j,l)}if(d){g=function(a){return!a.type||be.test(a.type)};for(k=0;j[k];k++){h=j[k];if(e&&f.nodeName(h,"script")&&(!h.type||be.test(h.type)))e.push(h.parentNode?h.parentNode.removeChild(h):h);else{if(h.nodeType===1){var v=f.grep(h.getElementsByTagName("script"),g);j.splice.apply(j,[k+1,0].concat(v))}d.appendChild(h)}}}return j},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^[\-+]?(?:\d*\.)?\d+$/i,bt=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,bu=/^([\-+])=([\-+.\de]+)/,bv=/^margin/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Top","Right","Bottom","Left"],by,bz,bA;f.fn.css=function(a,c){return f.access(this,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)},a,c,arguments.length>1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),(e===""&&f.css(d,"display")==="none"||!f.contains(d.ownerDocument.documentElement,d))&&f._data(d,"olddisplay",cu(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ct("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(ct("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o,p,q;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]);if((k=f.cssHooks[g])&&"expand"in k){l=k.expand(a[g]),delete a[g];for(i in l)i in a||(a[i]=l[i])}}for(g in a){h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cm.test(h)?(q=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),q?(f._data(this,"toggle"+i,q==="show"?"hide":"show"),j[q]()):j[h]()):(m=cn.exec(h),n=j.cur(),m?(o=parseFloat(m[2]),p=m[3]||(f.cssNumber[i]?"":"px"),p!=="px"&&(f.style(this,i,(o||1)+p),n=(o||1)/j.cur()*n,f.style(this,i,n+p)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),j.custom(n,o,p)):j.custom(n,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+.5}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cq||cr(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){f._data(e.elem,"fxshow"+e.prop)===b&&(e.options.hide?f._data(e.elem,"fxshow"+e.prop,e.start):e.options.show&&f._data(e.elem,"fxshow"+e.prop,e.end))},h()&&f.timers.push(h)&&!co&&(co=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(cp.concat.apply([],cp),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cv,cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?cv=function(a,b,c,d){try{d=a.getBoundingClientRect()}catch(e){}if(!d||!f.contains(c,a))return d?{top:d.top,left:d.left}:{top:0,left:0};var g=b.body,h=cy(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||f.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||f.support.boxModel&&c.scrollLeft||g.scrollLeft,m=d.top+k-i,n=d.left+l-j;return{top:m,left:n}}:cv=function(a,b,c){var d,e=a.offsetParent,g=a,h=b.body,i=b.defaultView,j=i?i.getComputedStyle(a,null):a.currentStyle,k=a.offsetTop,l=a.offsetLeft;while((a=a.parentNode)&&a!==h&&a!==c){if(f.support.fixedPosition&&j.position==="fixed")break;d=i?i.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,l-=a.scrollLeft,a===e&&(k+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(a.nodeName))&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),g=e,e=a.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),j=d}if(j.position==="relative"||j.position==="static")k+=h.offsetTop,l+=h.offsetLeft;f.support.fixedPosition&&j.position==="fixed"&&(k+=Math.max(c.scrollTop,h.scrollTop),l+=Math.max(c.scrollLeft,h.scrollLeft));return{top:k,left:l}},f.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){f.offset.setOffset(this,a,b)});var c=this[0],d=c&&c.ownerDocument;if(!d)return null;if(c===d.body)return f.offset.bodyOffset(c);return cv(c,d,d.documentElement)},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);\r
+/*]]>*/\r
+</script>\r
+<!-- Deck Core and extensions -->\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.core\r
+Copyright (c) 2011 Caleb Troughton\r
+Dual licensed under the MIT license and GPL license.\r
+https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt\r
+https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt\r
+*/\r
+\r
+/*\r
+The deck.core module provides all the basic functionality for creating and\r
+moving through a deck. It does so by applying classes to indicate the state of\r
+the deck and its slides, allowing CSS to take care of the visual representation\r
+of each state. It also provides methods for navigating the deck and inspecting\r
+its state, as well as basic key bindings for going to the next and previous\r
+slides. More functionality is provided by wholly separate extension modules\r
+that use the API provided by core.\r
+*/\r
+(function($, deck, document, undefined) {\r
+ var slides, // Array of all the uh, slides...\r
+ current, // Array index of the current slide\r
+ $container, // Keeping this cached\r
+\r
+ events = {\r
+ /*\r
+ This event fires whenever the current slide changes, whether by way of\r
+ next, prev, or go. The callback function is passed two parameters, from\r
+ and to, equal to the indices of the old slide and the new slide\r
+ respectively. If preventDefault is called on the event within this handler\r
+ the slide change does not occur.\r
+\r
+ $(document).bind('deck.change', function(event, from, to) {\r
+ alert('Moving from slide ' + from + ' to ' + to);\r
+ });\r
+ */\r
+ change: 'deck.change',\r
+\r
+ /*\r
+ This event fires at the beginning of deck initialization, after the options\r
+ are set but before the slides array is created. This event makes a good hook\r
+ for preprocessing extensions looking to modify the deck.\r
+ */\r
+ beforeInitialize: 'deck.beforeInit',\r
+\r
+ /*\r
+ This event fires at the end of deck initialization. Extensions should\r
+ implement any code that relies on user extensible options (key bindings,\r
+ element selectors, classes) within a handler for this event. Native\r
+ events associated with Deck JS should be scoped under a .deck event\r
+ namespace, as with the example below:\r
+\r
+ var $d = $(document);\r
+ $.deck.defaults.keys.myExtensionKeycode = 70; // 'h'\r
+ $d.bind('deck.init', function() {\r
+ $d.bind('keydown.deck', function(event) {\r
+ if (event.which === $.deck.getOptions().keys.myExtensionKeycode) {\r
+ // Rock out\r
+ }\r
+ });\r
+ });\r
+ */\r
+ initialize: 'deck.init'\r
+ },\r
+\r
+ options = {},\r
+ $d = $(document),\r
+\r
+ /*\r
+ Internal function. Updates slide and container classes based on which\r
+ slide is the current slide.\r
+ */\r
+ updateStates = function() {\r
+ var oc = options.classes,\r
+ osc = options.selectors.container,\r
+ old = $container.data('onSlide'),\r
+ $all = $();\r
+\r
+ // Container state\r
+ $container.removeClass(oc.onPrefix + old)\r
+ .addClass(oc.onPrefix + current)\r
+ .data('onSlide', current);\r
+\r
+ // Remove and re-add child-current classes for nesting\r
+ $('.' + oc.current).parentsUntil(osc).removeClass(oc.childCurrent);\r
+ slides[current].parentsUntil(osc).addClass(oc.childCurrent);\r
+\r
+ // Remove previous states\r
+ $.each(slides, function(i, el) {\r
+ $all = $all.add(el);\r
+ });\r
+ $all.removeClass([\r
+ oc.before,\r
+ oc.previous,\r
+ oc.current,\r
+ oc.next,\r
+ oc.after\r
+ ].join(" "));\r
+\r
+ // Add new states back in\r
+ slides[current].addClass(oc.current);\r
+ if (current > 0) {\r
+ slides[current-1].addClass(oc.previous);\r
+ }\r
+ if (current + 1 < slides.length) {\r
+ slides[current+1].addClass(oc.next);\r
+ }\r
+ if (current > 1) {\r
+ $.each(slides.slice(0, current - 1), function(i, el) {\r
+ el.addClass(oc.before);\r
+ });\r
+ }\r
+ if (current + 2 < slides.length) {\r
+ $.each(slides.slice(current+2), function(i, el) {\r
+ el.addClass(oc.after);\r
+ });\r
+ }\r
+ },\r
+\r
+ /* Methods exposed in the jQuery.deck namespace */\r
+ methods = {\r
+\r
+ /*\r
+ jQuery.deck(selector, options)\r
+\r
+ selector: string | jQuery | array\r
+ options: object, optional\r
+\r
+ Initializes the deck, using each element matched by selector as a slide.\r
+ May also be passed an array of string selectors or jQuery objects, in\r
+ which case each selector in the array is considered a slide. The second\r
+ parameter is an optional options object which will extend the default\r
+ values.\r
+\r
+ $.deck('.slide');\r
+\r
+ or\r
+\r
+ $.deck([\r
+ '#first-slide',\r
+ '#second-slide',\r
+ '#etc'\r
+ ]);\r
+ */\r
+ init: function(elements, opts) {\r
+ var startTouch,\r
+ tolerance,\r
+ esp = function(e) {\r
+ e.stopPropagation();\r
+ };\r
+\r
+ options = $.extend(true, {}, $[deck].defaults, opts);\r
+ slides = [];\r
+ current = 0;\r
+ $container = $(options.selectors.container);\r
+ tolerance = options.touch.swipeTolerance;\r
+\r
+ // Pre init event for preprocessing hooks\r
+ $d.trigger(events.beforeInitialize);\r
+\r
+ // Hide the deck while states are being applied to kill transitions\r
+ $container.addClass(options.classes.loading);\r
+\r
+ // Fill slides array depending on parameter type\r
+ if ($.isArray(elements)) {\r
+ $.each(elements, function(i, e) {\r
+ slides.push($(e));\r
+ });\r
+ }\r
+ else {\r
+ $(elements).each(function(i, e) {\r
+ slides.push($(e));\r
+ });\r
+ }\r
+\r
+ /* Remove any previous bindings, and rebind key events */\r
+ $d.unbind('keydown.deck').bind('keydown.deck', function(e) {\r
+ if (e.which === options.keys.next || $.inArray(e.which, options.keys.next) > -1) {\r
+ methods.next();\r
+ e.preventDefault();\r
+ }\r
+ else if (e.which === options.keys.previous || $.inArray(e.which, options.keys.previous) > -1) {\r
+ methods.prev();\r
+ e.preventDefault();\r
+ }\r
+ })\r
+ /* Stop propagation of key events within editable elements */\r
+ .undelegate('input, textarea, select, button, meter, progress, [contentEditable]', 'keydown', esp)\r
+ .delegate('input, textarea, select, button, meter, progress, [contentEditable]', 'keydown', esp);\r
+\r
+ /* Bind touch events for swiping between slides on touch devices */\r
+ $container.unbind('touchstart.deck').bind('touchstart.deck', function(e) {\r
+ if (!startTouch) {\r
+ startTouch = $.extend({}, e.originalEvent.targetTouches[0]);\r
+ }\r
+ })\r
+ .unbind('touchmove.deck').bind('touchmove.deck', function(e) {\r
+ $.each(e.originalEvent.changedTouches, function(i, t) {\r
+ if (startTouch && t.identifier === startTouch.identifier) {\r
+ if (t.screenX - startTouch.screenX > tolerance || t.screenY - startTouch.screenY > tolerance) {\r
+ $[deck]('prev');\r
+ startTouch = undefined;\r
+ }\r
+ else if (t.screenX - startTouch.screenX < -1 * tolerance || t.screenY - startTouch.screenY < -1 * tolerance) {\r
+ $[deck]('next');\r
+ startTouch = undefined;\r
+ }\r
+ return false;\r
+ }\r
+ });\r
+ e.preventDefault();\r
+ })\r
+ .unbind('touchend.deck').bind('touchend.deck', function(t) {\r
+ $.each(t.originalEvent.changedTouches, function(i, t) {\r
+ if (startTouch && t.identifier === startTouch.identifier) {\r
+ startTouch = undefined;\r
+ }\r
+ });\r
+ })\r
+ .scrollLeft(0).scrollTop(0);\r
+\r
+ /*\r
+ Kick iframe videos, which dont like to redraw w/ transforms.\r
+ Remove this if Webkit ever fixes it.\r
+ */\r
+ $.each(slides, function(i, $el) {\r
+ $el.unbind('webkitTransitionEnd.deck').bind('webkitTransitionEnd.deck',\r
+ function(event) {\r
+ if ($el.hasClass($[deck]('getOptions').classes.current)) {\r
+ var embeds = $(this).find('iframe').css('opacity', 0);\r
+ window.setTimeout(function() {\r
+ embeds.css('opacity', 1);\r
+ }, 100);\r
+ }\r
+ });\r
+ });\r
+\r
+ if (slides.length) {\r
+ updateStates();\r
+ }\r
+\r
+ // Show deck again now that slides are in place\r
+ $container.removeClass(options.classes.loading);\r
+ $d.trigger(events.initialize);\r
+ },\r
+\r
+ /*\r
+ jQuery.deck('go', index)\r
+\r
+ index: integer | string\r
+\r
+ Moves to the slide at the specified index if index is a number. Index is\r
+ 0-based, so $.deck('go', 0); will move to the first slide. If index is a\r
+ string this will move to the slide with the specified id. If index is out\r
+ of bounds or doesn't match a slide id the call is ignored.\r
+ */\r
+ go: function(index) {\r
+ var e = $.Event(events.change),\r
+ ndx;\r
+\r
+ /* Number index, easy. */\r
+ if (typeof index === 'number' && index >= 0 && index < slides.length) {\r
+ ndx = index;\r
+ }\r
+ /* Id string index, search for it and set integer index */\r
+ else if (typeof index === 'string') {\r
+ $.each(slides, function(i, $slide) {\r
+ if ($slide.attr('id') === index) {\r
+ ndx = i;\r
+ return false;\r
+ }\r
+ });\r
+ };\r
+\r
+ /* Out of bounds, id doesn't exist, illegal input, eject */\r
+ if (typeof ndx === 'undefined') return;\r
+\r
+ $d.trigger(e, [current, ndx]);\r
+ if (e.isDefaultPrevented()) {\r
+ /* Trigger the event again and undo the damage done by extensions. */\r
+ $d.trigger(events.change, [ndx, current]);\r
+ }\r
+ else {\r
+ current = ndx;\r
+ updateStates();\r
+ }\r
+ },\r
+\r
+ /*\r
+ jQuery.deck('next')\r
+\r
+ Moves to the next slide. If the last slide is already active, the call\r
+ is ignored.\r
+ */\r
+ next: function() {\r
+ methods.go(current+1);\r
+ },\r
+\r
+ /*\r
+ jQuery.deck('prev')\r
+\r
+ Moves to the previous slide. If the first slide is already active, the\r
+ call is ignored.\r
+ */\r
+ prev: function() {\r
+ methods.go(current-1);\r
+ },\r
+\r
+ /*\r
+ jQuery.deck('getSlide', index)\r
+\r
+ index: integer, optional\r
+\r
+ Returns a jQuery object containing the slide at index. If index is not\r
+ specified, the current slide is returned.\r
+ */\r
+ getSlide: function(index) {\r
+ var i = typeof index !== 'undefined' ? index : current;\r
+ if (typeof i != 'number' || i < 0 || i >= slides.length) return null;\r
+ return slides[i];\r
+ },\r
+\r
+ /*\r
+ jQuery.deck('getSlides')\r
+\r
+ Returns all slides as an array of jQuery objects.\r
+ */\r
+ getSlides: function() {\r
+ return slides;\r
+ },\r
+\r
+ /*\r
+ jQuery.deck('getContainer')\r
+\r
+ Returns a jQuery object containing the deck container as defined by the\r
+ container option.\r
+ */\r
+ getContainer: function() {\r
+ return $container;\r
+ },\r
+\r
+ /*\r
+ jQuery.deck('getOptions')\r
+\r
+ Returns the options object for the deck, including any overrides that\r
+ were defined at initialization.\r
+ */\r
+ getOptions: function() {\r
+ return options;\r
+ },\r
+\r
+ /*\r
+ jQuery.deck('extend', name, method)\r
+\r
+ name: string\r
+ method: function\r
+\r
+ Adds method to the deck namespace with the key of name. This doesn’t\r
+ give access to any private member data — public methods must still be\r
+ used within method — but lets extension authors piggyback on the deck\r
+ namespace rather than pollute jQuery.\r
+\r
+ $.deck('extend', 'alert', function(msg) {\r
+ alert(msg);\r
+ });\r
+\r
+ // Alerts 'boom'\r
+ $.deck('alert', 'boom');\r
+ */\r
+ extend: function(name, method) {\r
+ methods[name] = method;\r
+ }\r
+ };\r
+\r
+ /* jQuery extension */\r
+ $[deck] = function(method, arg) {\r
+ if (methods[method]) {\r
+ return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));\r
+ }\r
+ else {\r
+ return methods.init(method, arg);\r
+ }\r
+ };\r
+\r
+ /*\r
+ The default settings object for a deck. All deck extensions should extend\r
+ this object to add defaults for any of their options.\r
+\r
+ options.classes.after\r
+ This class is added to all slides that appear after the 'next' slide.\r
+\r
+ options.classes.before\r
+ This class is added to all slides that appear before the 'previous'\r
+ slide.\r
+\r
+ options.classes.childCurrent\r
+ This class is added to all elements in the DOM tree between the\r
+ 'current' slide and the deck container. For standard slides, this is\r
+ mostly seen and used for nested slides.\r
+\r
+ options.classes.current\r
+ This class is added to the current slide.\r
+\r
+ options.classes.loading\r
+ This class is applied to the deck container during loading phases and is\r
+ primarily used as a way to short circuit transitions between states\r
+ where such transitions are distracting or unwanted. For example, this\r
+ class is applied during deck initialization and then removed to prevent\r
+ all the slides from appearing stacked and transitioning into place\r
+ on load.\r
+\r
+ options.classes.next\r
+ This class is added to the slide immediately following the 'current'\r
+ slide.\r
+\r
+ options.classes.onPrefix\r
+ This prefix, concatenated with the current slide index, is added to the\r
+ deck container as you change slides.\r
+\r
+ options.classes.previous\r
+ This class is added to the slide immediately preceding the 'current'\r
+ slide.\r
+\r
+ options.selectors.container\r
+ Elements matched by this CSS selector will be considered the deck\r
+ container. The deck container is used to scope certain states of the\r
+ deck, as with the onPrefix option, or with extensions such as deck.goto\r
+ and deck.menu.\r
+\r
+ options.keys.next\r
+ The numeric keycode used to go to the next slide.\r
+\r
+ options.keys.previous\r
+ The numeric keycode used to go to the previous slide.\r
+\r
+ options.touch.swipeTolerance\r
+ The number of pixels the users finger must travel to produce a swipe\r
+ gesture.\r
+ */\r
+ $[deck].defaults = {\r
+ classes: {\r
+ after: 'deck-after',\r
+ before: 'deck-before',\r
+ childCurrent: 'deck-child-current',\r
+ current: 'deck-current',\r
+ loading: 'deck-loading',\r
+ next: 'deck-next',\r
+ onPrefix: 'on-slide-',\r
+ previous: 'deck-previous'\r
+ },\r
+\r
+ selectors: {\r
+ container: '.deck-container'\r
+ },\r
+\r
+ keys: {\r
+ // enter, space, page down, right arrow, down arrow,\r
+ next: [13, 32, 34, 39, 40],\r
+ // backspace, page up, left arrow, up arrow\r
+ previous: [8, 33, 37, 38]\r
+ },\r
+\r
+ touch: {\r
+ swipeTolerance: 60\r
+ }\r
+ };\r
+\r
+ $d.ready(function() {\r
+ $('html').addClass('ready');\r
+ });\r
+\r
+ /*\r
+ FF + Transforms + Flash video don't get along...\r
+ Firefox will reload and start playing certain videos after a\r
+ transform. Blanking the src when a previously shown slide goes out\r
+ of view prevents this.\r
+ */\r
+ $d.bind('deck.change', function(e, from, to) {\r
+ var oldFrames = $[deck]('getSlide', from).find('iframe'),\r
+ newFrames = $[deck]('getSlide', to).find('iframe');\r
+\r
+ oldFrames.each(function() {\r
+ var $this = $(this),\r
+ curSrc = $this.attr('src');\r
+\r
+ if(curSrc) {\r
+ $this.data('deck-src', curSrc).attr('src', '');\r
+ }\r
+ });\r
+\r
+ newFrames.each(function() {\r
+ var $this = $(this),\r
+ originalSrc = $this.data('deck-src');\r
+\r
+ if (originalSrc) {\r
+ $this.attr('src', originalSrc);\r
+ }\r
+ });\r
+ });\r
+})(jQuery, 'deck', document);\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.hash\r
+Copyright (c) 2011 Caleb Troughton\r
+Dual licensed under the MIT license and GPL license.\r
+https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt\r
+https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt\r
+*/\r
+\r
+/*\r
+This module adds deep linking to individual slides, enables internal links\r
+to slides within decks, and updates the address bar with the hash as the user\r
+moves through the deck. A permalink anchor is also updated. Standard themes\r
+hide this link in browsers that support the History API, and show it for\r
+those that do not. Slides that do not have an id are assigned one according to\r
+the hashPrefix option. In addition to the on-slide container state class\r
+kept by core, this module adds an on-slide state class that uses the id of each\r
+slide.\r
+*/\r
+(function ($, deck, window, undefined) {\r
+ var $d = $(document),\r
+ $window = $(window),\r
+\r
+ /* Collection of internal fragment links in the deck */\r
+ $internals,\r
+\r
+ /*\r
+ Internal only function. Given a string, extracts the id from the hash,\r
+ matches it to the appropriate slide, and navigates there.\r
+ */\r
+ goByHash = function(str) {\r
+ var id = str.substr(str.indexOf("#") + 1),\r
+ slides = $[deck]('getSlides');\r
+\r
+ $.each(slides, function(i, $el) {\r
+ if ($el.attr('id') === id) {\r
+ $[deck]('go', i);\r
+ return false;\r
+ }\r
+ });\r
+\r
+ // If we don't set these to 0 the container scrolls due to hashchange\r
+ $[deck]('getContainer').scrollLeft(0).scrollTop(0);\r
+ };\r
+\r
+ /*\r
+ Extends defaults/options.\r
+\r
+ options.selectors.hashLink\r
+ The element matching this selector has its href attribute updated to\r
+ the hash of the current slide as the user navigates through the deck.\r
+\r
+ options.hashPrefix\r
+ Every slide that does not have an id is assigned one at initialization.\r
+ Assigned ids take the form of hashPrefix + slideIndex, e.g., slide-0,\r
+ slide-12, etc.\r
+\r
+ options.preventFragmentScroll\r
+ When deep linking to a hash of a nested slide, this scrolls the deck\r
+ container to the top, undoing the natural browser behavior of scrolling\r
+ to the document fragment on load.\r
+ */\r
+ $.extend(true, $[deck].defaults, {\r
+ selectors: {\r
+ hashLink: '.deck-permalink'\r
+ },\r
+\r
+ hashPrefix: 'slide-',\r
+ preventFragmentScroll: true\r
+ });\r
+\r
+\r
+ $d.bind('deck.init', function() {\r
+ var opts = $[deck]('getOptions');\r
+ $internals = $(),\r
+ slides = $[deck]('getSlides');\r
+\r
+ $.each(slides, function(i, $el) {\r
+ var hash;\r
+\r
+ /* Hand out ids to the unfortunate slides born without them */\r
+ if (!$el.attr('id') || $el.data('deckAssignedId') === $el.attr('id')) {\r
+ $el.attr('id', opts.hashPrefix + i);\r
+ $el.data('deckAssignedId', opts.hashPrefix + i);\r
+ }\r
+\r
+ hash ='#' + $el.attr('id');\r
+\r
+ /* Deep link to slides on init */\r
+ if (hash === window.location.hash) {\r
+ $[deck]('go', i);\r
+ }\r
+\r
+ /* Add internal links to this slide */\r
+ $internals = $internals.add('a[href="' + hash + '"]');\r
+ });\r
+\r
+ if (!Modernizr.hashchange) {\r
+ /* Set up internal links using click for the poor browsers\r
+ without a hashchange event. */\r
+ $internals.unbind('click.deckhash').bind('click.deckhash', function(e) {\r
+ goByHash($(this).attr('href'));\r
+ });\r
+ }\r
+\r
+ /* Set up first id container state class */\r
+ if (slides.length) {\r
+ $[deck]('getContainer').addClass(opts.classes.onPrefix + $[deck]('getSlide').attr('id'));\r
+ };\r
+ })\r
+ /* Update permalink, address bar, and state class on a slide change */\r
+ .bind('deck.change', function(e, from, to) {\r
+ var hash = '#' + $[deck]('getSlide', to).attr('id'),\r
+ hashPath = window.location.href.replace(/#.*/, '') + hash,\r
+ opts = $[deck]('getOptions'),\r
+ osp = opts.classes.onPrefix,\r
+ $c = $[deck]('getContainer');\r
+\r
+ $c.removeClass(osp + $[deck]('getSlide', from).attr('id'));\r
+ $c.addClass(osp + $[deck]('getSlide', to).attr('id'));\r
+\r
+ $(opts.selectors.hashLink).attr('href', hashPath);\r
+ if (Modernizr.history) {\r
+ window.history.replaceState({}, "", hashPath);\r
+ }\r
+ });\r
+\r
+ /* Deals with internal links in modern browsers */\r
+ $window.bind('hashchange.deckhash', function(e) {\r
+ if (e.originalEvent && e.originalEvent.newURL) {\r
+ goByHash(e.originalEvent.newURL);\r
+ }\r
+ else {\r
+ goByHash(window.location.hash);\r
+ }\r
+ })\r
+ /* Prevent scrolling on deep links */\r
+ .bind('load', function() {\r
+ if ($[deck]('getOptions').preventFragmentScroll) {\r
+ $[deck]('getContainer').scrollLeft(0).scrollTop(0);\r
+ }\r
+ });\r
+})(jQuery, 'deck', this);\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.menu\r
+Copyright (c) 2011 Caleb Troughton\r
+Dual licensed under the MIT license and GPL license.\r
+https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt\r
+https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt\r
+*/\r
+\r
+/*\r
+This module adds the methods and key binding to show and hide a menu of all\r
+slides in the deck. The deck menu state is indicated by the presence of a class\r
+on the deck container.\r
+*/\r
+(function($, deck, undefined) {\r
+ var $d = $(document),\r
+ rootSlides; // Array of top level slides\r
+\r
+ /*\r
+ Extends defaults/options.\r
+\r
+ options.classes.menu\r
+ This class is added to the deck container when showing the slide menu.\r
+\r
+ options.keys.menu\r
+ The numeric keycode used to toggle between showing and hiding the slide\r
+ menu.\r
+\r
+ options.touch.doubletapWindow\r
+ Two consecutive touch events within this number of milliseconds will\r
+ be considered a double tap, and will toggle the menu on touch devices.\r
+ */\r
+ $.extend(true, $[deck].defaults, {\r
+ classes: {\r
+ menu: 'deck-menu'\r
+ },\r
+\r
+ keys: {\r
+ menu: 77 // m\r
+ },\r
+\r
+ touch: {\r
+ doubletapWindow: 400\r
+ }\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('showMenu')\r
+\r
+ Shows the slide menu by adding the class specified by the menu class option\r
+ to the deck container.\r
+ */\r
+ $[deck]('extend', 'showMenu', function() {\r
+ var $c = $[deck]('getContainer'),\r
+ opts = $[deck]('getOptions');\r
+\r
+ if ($c.hasClass(opts.classes.menu)) return;\r
+\r
+ // Hide through loading class to short-circuit transitions (perf)\r
+ $c.addClass([opts.classes.loading, opts.classes.menu].join(' '));\r
+\r
+ /* Forced to do this in JS until CSS learns second-grade math. Save old\r
+ style value for restoration when menu is hidden. */\r
+ if (Modernizr.csstransforms) {\r
+ $.each(rootSlides, function(i, $slide) {\r
+ $slide.data('oldStyle', $slide.attr('style'));\r
+ $slide.css({\r
+ 'position': 'absolute',\r
+ 'left': ((i % 4) * 25) + '%',\r
+ 'top': (Math.floor(i / 4) * 25) + '%'\r
+ });\r
+ });\r
+ }\r
+\r
+ // Need to ensure the loading class renders first, then remove\r
+ window.setTimeout(function() {\r
+ $c.removeClass(opts.classes.loading)\r
+ .scrollTop($[deck]('getSlide').offset().top);\r
+ }, 0);\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('hideMenu')\r
+\r
+ Hides the slide menu by removing the class specified by the menu class\r
+ option from the deck container.\r
+ */\r
+ $[deck]('extend', 'hideMenu', function() {\r
+ var $c = $[deck]('getContainer'),\r
+ opts = $[deck]('getOptions');\r
+\r
+ if (!$c.hasClass(opts.classes.menu)) return;\r
+\r
+ $c.removeClass(opts.classes.menu);\r
+ $c.addClass(opts.classes.loading);\r
+\r
+ /* Restore old style value */\r
+ if (Modernizr.csstransforms) {\r
+ $.each(rootSlides, function(i, $slide) {\r
+ var oldStyle = $slide.data('oldStyle');\r
+\r
+ $slide.attr('style', oldStyle ? oldStyle : '');\r
+ });\r
+ }\r
+\r
+ window.setTimeout(function() {\r
+ $c.removeClass(opts.classes.loading).scrollTop(0);\r
+ }, 0);\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('toggleMenu')\r
+\r
+ Toggles between showing and hiding the slide menu.\r
+ */\r
+ $[deck]('extend', 'toggleMenu', function() {\r
+ $[deck]('getContainer').hasClass($[deck]('getOptions').classes.menu) ?\r
+ $[deck]('hideMenu') : $[deck]('showMenu');\r
+ });\r
+\r
+ $d.bind('deck.init', function() {\r
+ var opts = $[deck]('getOptions'),\r
+ touchEndTime = 0,\r
+ currentSlide,\r
+ slideTest = $.map([\r
+ opts.classes.before,\r
+ opts.classes.previous,\r
+ opts.classes.current,\r
+ opts.classes.next,\r
+ opts.classes.after\r
+ ], function(el, i) {\r
+ return '.' + el;\r
+ }).join(', ');\r
+\r
+ // Build top level slides array\r
+ rootSlides = [];\r
+ $.each($[deck]('getSlides'), function(i, $el) {\r
+ if (!$el.parentsUntil(opts.selectors.container, slideTest).length) {\r
+ rootSlides.push($el);\r
+ }\r
+ });\r
+\r
+ // Bind key events\r
+ $d.unbind('keydown.deckmenu').bind('keydown.deckmenu', function(e) {\r
+ if (e.which === opts.keys.menu || $.inArray(e.which, opts.keys.menu) > -1) {\r
+ $[deck]('toggleMenu');\r
+ e.preventDefault();\r
+ }\r
+ });\r
+\r
+ // Double tap to toggle slide menu for touch devices\r
+ $[deck]('getContainer').unbind('touchstart.deckmenu').bind('touchstart.deckmenu', function(e) {\r
+ currentSlide = $[deck]('getSlide');\r
+ })\r
+ .unbind('touchend.deckmenu').bind('touchend.deckmenu', function(e) {\r
+ var now = Date.now();\r
+\r
+ // Ignore this touch event if it caused a nav change (swipe)\r
+ if (currentSlide !== $[deck]('getSlide')) return;\r
+\r
+ if (now - touchEndTime < opts.touch.doubletapWindow) {\r
+ $[deck]('toggleMenu');\r
+ e.preventDefault();\r
+ }\r
+ touchEndTime = now;\r
+ });\r
+\r
+ // Selecting slides from the menu\r
+ $.each($[deck]('getSlides'), function(i, $s) {\r
+ $s.unbind('click.deckmenu').bind('click.deckmenu', function(e) {\r
+ if (!$[deck]('getContainer').hasClass(opts.classes.menu)) return;\r
+\r
+ $[deck]('go', i);\r
+ $[deck]('hideMenu');\r
+ e.stopPropagation();\r
+ e.preventDefault();\r
+ });\r
+ });\r
+ })\r
+ .bind('deck.change', function(e, from, to) {\r
+ var container = $[deck]('getContainer');\r
+\r
+ if (container.hasClass($[deck]('getOptions').classes.menu)) {\r
+ container.scrollTop($[deck]('getSlide', to).offset().top);\r
+ }\r
+ });\r
+})(jQuery, 'deck');\r
+\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.goto\r
+Copyright (c) 2011 Caleb Troughton\r
+Dual licensed under the MIT license and GPL license.\r
+https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt\r
+https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt\r
+*/\r
+\r
+/*\r
+This module adds the necessary methods and key bindings to show and hide a form\r
+for jumping to any slide number/id in the deck (and processes that form\r
+accordingly). The form-showing state is indicated by the presence of a class on\r
+the deck container.\r
+*/\r
+(function($, deck, undefined) {\r
+ var $d = $(document);\r
+\r
+ /*\r
+ Extends defaults/options.\r
+\r
+ options.classes.goto\r
+ This class is added to the deck container when showing the Go To Slide\r
+ form.\r
+\r
+ options.selectors.gotoDatalist\r
+ The element that matches this selector is the datalist element that will\r
+ be populated with options for each of the slide ids. In browsers that\r
+ support the datalist element, this provides a drop list of slide ids to\r
+ aid the user in selecting a slide.\r
+\r
+ options.selectors.gotoForm\r
+ The element that matches this selector is the form that is submitted\r
+ when a user hits enter after typing a slide number/id in the gotoInput\r
+ element.\r
+\r
+ options.selectors.gotoInput\r
+ The element that matches this selector is the text input field for\r
+ entering a slide number/id in the Go To Slide form.\r
+\r
+ options.keys.goto\r
+ The numeric keycode used to show the Go To Slide form.\r
+\r
+ options.countNested\r
+ If false, only top level slides will be counted when entering a\r
+ slide number.\r
+ */\r
+ $.extend(true, $[deck].defaults, {\r
+ classes: {\r
+ goto: 'deck-goto'\r
+ },\r
+\r
+ selectors: {\r
+ gotoDatalist: '#goto-datalist',\r
+ gotoForm: '.goto-form',\r
+ gotoInput: '#goto-slide'\r
+ },\r
+\r
+ keys: {\r
+ goto: 71 // g\r
+ },\r
+\r
+ countNested: true\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('showGoTo')\r
+\r
+ Shows the Go To Slide form by adding the class specified by the goto class\r
+ option to the deck container.\r
+ */\r
+ $[deck]('extend', 'showGoTo', function() {\r
+ $[deck]('getContainer').addClass($[deck]('getOptions').classes.goto);\r
+ $($[deck]('getOptions').selectors.gotoInput).focus();\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('hideGoTo')\r
+\r
+ Hides the Go To Slide form by removing the class specified by the goto class\r
+ option from the deck container.\r
+ */\r
+ $[deck]('extend', 'hideGoTo', function() {\r
+ $($[deck]('getOptions').selectors.gotoInput).blur();\r
+ $[deck]('getContainer').removeClass($[deck]('getOptions').classes.goto);\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('toggleGoTo')\r
+\r
+ Toggles between showing and hiding the Go To Slide form.\r
+ */\r
+ $[deck]('extend', 'toggleGoTo', function() {\r
+ $[deck]($[deck]('getContainer').hasClass($[deck]('getOptions').classes.goto) ? 'hideGoTo' : 'showGoTo');\r
+ });\r
+\r
+ $d.bind('deck.init', function() {\r
+ var opts = $[deck]('getOptions'),\r
+ $datalist = $(opts.selectors.gotoDatalist),\r
+ slideTest = $.map([\r
+ opts.classes.before,\r
+ opts.classes.previous,\r
+ opts.classes.current,\r
+ opts.classes.next,\r
+ opts.classes.after\r
+ ], function(el, i) {\r
+ return '.' + el;\r
+ }).join(', '),\r
+ rootCounter = 1;\r
+\r
+ // Bind key events\r
+ $d.unbind('keydown.deckgoto').bind('keydown.deckgoto', function(e) {\r
+ var key = $[deck]('getOptions').keys.goto;\r
+\r
+ if (e.which === key || $.inArray(e.which, key) > -1) {\r
+ e.preventDefault();\r
+ $[deck]('toggleGoTo');\r
+ }\r
+ });\r
+\r
+ /* Populate datalist and work out countNested*/\r
+ $.each($[deck]('getSlides'), function(i, $slide) {\r
+ var id = $slide.attr('id'),\r
+ $parentSlides = $slide.parentsUntil(opts.selectors.container, slideTest);\r
+\r
+ if (id) {\r
+ $datalist.append('<option value="' + id + '">');\r
+ }\r
+\r
+ if ($parentSlides.length) {\r
+ $slide.removeData('rootIndex');\r
+ }\r
+ else if (!opts.countNested) {\r
+ $slide.data('rootIndex', rootCounter);\r
+ ++rootCounter;\r
+ }\r
+ });\r
+\r
+ // Process form submittal, go to the slide entered\r
+ $(opts.selectors.gotoForm)\r
+ .unbind('submit.deckgoto')\r
+ .bind('submit.deckgoto', function(e) {\r
+ var $field = $($[deck]('getOptions').selectors.gotoInput),\r
+ ndx = parseInt($field.val(), 10);\r
+\r
+ if (!$[deck]('getOptions').countNested) {\r
+ if (ndx >= rootCounter) return false;\r
+ $.each($[deck]('getSlides'), function(i, $slide) {\r
+ if ($slide.data('rootIndex') === ndx) {\r
+ ndx = i + 1;\r
+ return false;\r
+ }\r
+ });\r
+ }\r
+\r
+ $[deck]('go', isNaN(ndx) ? $field.val() : ndx - 1);\r
+ $[deck]('hideGoTo');\r
+ $field.val('');\r
+\r
+ e.preventDefault();\r
+ });\r
+\r
+ // Dont let keys in the input trigger deck actions\r
+ $(opts.selectors.gotoInput)\r
+ .unbind('keydown.deckgoto')\r
+ .bind('keydown.deckgoto', function(e) {\r
+ e.stopPropagation();\r
+ });\r
+ });\r
+})(jQuery, 'deck');\r
+\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.status\r
+Copyright (c) 2011 Caleb Troughton\r
+Dual licensed under the MIT license and GPL license.\r
+https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt\r
+https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt\r
+*/\r
+\r
+/*\r
+This module adds a (current)/(total) style status indicator to the deck.\r
+*/\r
+(function($, deck, undefined) {\r
+ var $d = $(document),\r
+\r
+ updateCurrent = function(e, from, to) {\r
+ var opts = $[deck]('getOptions');\r
+\r
+ $(opts.selectors.statusCurrent).text(opts.countNested ?\r
+ to + 1 :\r
+ $[deck]('getSlide', to).data('rootSlide')\r
+ );\r
+ };\r
+\r
+ /*\r
+ Extends defaults/options.\r
+\r
+ options.selectors.statusCurrent\r
+ The element matching this selector displays the current slide number.\r
+\r
+ options.selectors.statusTotal\r
+ The element matching this selector displays the total number of slides.\r
+\r
+ options.countNested\r
+ If false, only top level slides will be counted in the current and\r
+ total numbers.\r
+ */\r
+ $.extend(true, $[deck].defaults, {\r
+ selectors: {\r
+ statusCurrent: '.deck-status-current',\r
+ statusTotal: '.deck-status-total'\r
+ },\r
+\r
+ countNested: true\r
+ });\r
+\r
+ $d.bind('deck.init', function() {\r
+ var opts = $[deck]('getOptions'),\r
+ slides = $[deck]('getSlides'),\r
+ $current = $[deck]('getSlide'),\r
+ ndx;\r
+\r
+ // Set total slides once\r
+ if (opts.countNested) {\r
+ $(opts.selectors.statusTotal).text(slides.length);\r
+ }\r
+ else {\r
+ /* Determine root slides by checking each slide's ancestor tree for\r
+ any of the slide classes. */\r
+ var rootIndex = 1,\r
+ slideTest = $.map([\r
+ opts.classes.before,\r
+ opts.classes.previous,\r
+ opts.classes.current,\r
+ opts.classes.next,\r
+ opts.classes.after\r
+ ], function(el, i) {\r
+ return '.' + el;\r
+ }).join(', ');\r
+\r
+ /* Store the 'real' root slide number for use during slide changes. */\r
+ $.each(slides, function(i, $el) {\r
+ var $parentSlides = $el.parentsUntil(opts.selectors.container, slideTest);\r
+\r
+ $el.data('rootSlide', $parentSlides.length ?\r
+ $parentSlides.last().data('rootSlide') :\r
+ rootIndex++\r
+ );\r
+ });\r
+\r
+ $(opts.selectors.statusTotal).text(rootIndex - 1);\r
+ }\r
+\r
+ // Find where we started in the deck and set initial state\r
+ $.each(slides, function(i, $el) {\r
+ if ($el === $current) {\r
+ ndx = i;\r
+ return false;\r
+ }\r
+ });\r
+ updateCurrent(null, ndx, ndx);\r
+ })\r
+ /* Update current slide number with each change event */\r
+ .bind('deck.change', updateCurrent);\r
+})(jQuery, 'deck');\r
+\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.navigation\r
+Copyright (c) 2011 Caleb Troughton\r
+Dual licensed under the MIT license and GPL license.\r
+https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt\r
+https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt\r
+*/\r
+\r
+/*\r
+This module adds clickable previous and next links to the deck.\r
+*/\r
+(function($, deck, undefined) {\r
+ var $d = $(document),\r
+\r
+ /* Updates link hrefs, and disabled states if last/first slide */\r
+ updateButtons = function(e, from, to) {\r
+ var opts = $[deck]('getOptions'),\r
+ last = $[deck]('getSlides').length - 1,\r
+ prevSlide = $[deck]('getSlide', to - 1),\r
+ nextSlide = $[deck]('getSlide', to + 1),\r
+ hrefBase = window.location.href.replace(/#.*/, ''),\r
+ prevId = prevSlide ? prevSlide.attr('id') : undefined,\r
+ nextId = nextSlide ? nextSlide.attr('id') : undefined;\r
+\r
+ $(opts.selectors.previousLink)\r
+ .toggleClass(opts.classes.navDisabled, !to)\r
+ .attr('href', hrefBase + '#' + (prevId ? prevId : ''));\r
+ $(opts.selectors.nextLink)\r
+ .toggleClass(opts.classes.navDisabled, to === last)\r
+ .attr('href', hrefBase + '#' + (nextId ? nextId : ''));\r
+ };\r
+\r
+ /*\r
+ Extends defaults/options.\r
+\r
+ options.classes.navDisabled\r
+ This class is added to a navigation link when that action is disabled.\r
+ It is added to the previous link when on the first slide, and to the\r
+ next link when on the last slide.\r
+\r
+ options.selectors.nextLink\r
+ The elements that match this selector will move the deck to the next\r
+ slide when clicked.\r
+\r
+ options.selectors.previousLink\r
+ The elements that match this selector will move to deck to the previous\r
+ slide when clicked.\r
+ */\r
+ $.extend(true, $[deck].defaults, {\r
+ classes: {\r
+ navDisabled: 'deck-nav-disabled'\r
+ },\r
+\r
+ selectors: {\r
+ nextLink: '.deck-next-link',\r
+ previousLink: '.deck-prev-link'\r
+ }\r
+ });\r
+\r
+ $d.bind('deck.init', function() {\r
+ var opts = $[deck]('getOptions'),\r
+ slides = $[deck]('getSlides'),\r
+ $current = $[deck]('getSlide'),\r
+ ndx;\r
+\r
+ // Setup prev/next link events\r
+ $(opts.selectors.previousLink)\r
+ .unbind('click.decknavigation')\r
+ .bind('click.decknavigation', function(e) {\r
+ $[deck]('prev');\r
+ e.preventDefault();\r
+ });\r
+\r
+ $(opts.selectors.nextLink)\r
+ .unbind('click.decknavigation')\r
+ .bind('click.decknavigation', function(e) {\r
+ $[deck]('next');\r
+ e.preventDefault();\r
+ });\r
+\r
+ // Find where we started in the deck and set initial states\r
+ $.each(slides, function(i, $slide) {\r
+ if ($slide === $current) {\r
+ ndx = i;\r
+ return false;\r
+ }\r
+ });\r
+ updateButtons(null, ndx, ndx);\r
+ })\r
+ .bind('deck.change', updateButtons);\r
+})(jQuery, 'deck');\r
+\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.toc\r
+Copyright (c) 2011 Remi BARRAQUAND\r
+Dual licensed under the MIT license and GPL license.\r
+https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt\r
+https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt\r
+*/\r
+\r
+/*\r
+This module provides a support for TOC to the deck.\r
+*/\r
+\r
+(function($, deck, undefined) {\r
+ var $d = $(document);\r
+ var $toc;\r
+\r
+ /*\r
+ Extends defaults/options.\r
+\r
+ options.classes.toc\r
+ This class is added to the deck container when showing the slide\r
+ toc.\r
+\r
+ options.keys.toc\r
+ The numeric keycode used to toggle between showing and hiding\r
+ the slide toc.\r
+\r
+ options.selectors.toc\r
+ The element matching this selector displays the toc.\r
+\r
+ options.selectors.tocTitle\r
+ The element matching this selector displays the current title\r
+ of the slide i.e the current h1.\r
+\r
+ options.selectors.tocSection\r
+ The element matching this selector displays the current section\r
+ of the slide i.e the current h2.\r
+\r
+ options.selectors.tocSubSection\r
+ The element matching this selector displays the current\r
+ subsection of the slide i.e the current h3.\r
+\r
+ options.selectors.tocSubSubSection\r
+ The element matching this selector displays the current\r
+ subsubsection of the slide i.e the current h4.\r
+ */\r
+ $.extend(true, $[deck].defaults, {\r
+ classes: {\r
+ toc: 'deck-toc-frame'\r
+ },\r
+\r
+ keys: {\r
+ toc: 84 // t\r
+ },\r
+\r
+ selectors: {\r
+ toc: '.deck-toc',\r
+ tocTitle: '.deck-toc-h1',\r
+ tocSection: '.deck-toc-h2',\r
+ tocSubSection: '.deck-toc-h3',\r
+ tocSubSubSection: '.deck-toc-h4',\r
+ tocStatus: '.deck-toc-status'\r
+ }\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('showToc')\r
+\r
+ Shows the slide toc by adding the class specified by the toc class option\r
+ to the deck container.\r
+ */\r
+ $[deck]('extend', 'showToc', function() {\r
+ $[deck]('getContainer').addClass($[deck]('getOptions').classes.toc);\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('hideToc')\r
+\r
+ Hides the slide toc by removing the class specified by the toc class\r
+ option from the deck container.\r
+ */\r
+ $[deck]('extend', 'hideToc', function() {\r
+ $[deck]('getContainer').removeClass($[deck]('getOptions').classes.toc);\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('toggleToc')\r
+\r
+ Toggles between showing and hiding the TOC.\r
+ */\r
+ $[deck]('extend', 'toggleToc', function() {\r
+ $[deck]('getContainer').hasClass($[deck]('getOptions').classes.toc) ?\r
+ $[deck]('hideToc') : $[deck]('showToc');\r
+ });\r
+\r
+ /*\r
+ jQuery.deck('Init')\r
+ */\r
+ $d.bind('deck.init', function() {\r
+ var opts = $[deck]('getOptions');\r
+ var container = $[deck]('getContainer');\r
+\r
+ /* Bind key events */\r
+ $d.unbind('keydown.decktoc').bind('keydown.decktoc', function(e) {\r
+ if (e.which === opts.keys.toc || $.inArray(e.which, opts.keys.toc) > -1) {\r
+ $[deck]('toggleToc');\r
+ e.preventDefault();\r
+ }\r
+ });\r
+\r
+ /* Hide TOC panel when user click on container */\r
+ container.click(function(e){\r
+ $[deck]('hideToc');\r
+ });\r
+\r
+ /* Init TOC and append it to the document */\r
+ $toc = new TOC();\r
+ $($[deck]('getOptions').selectors.toc).append($toc.root);\r
+\r
+ /* Go through all slides */\r
+ $.each($[deck]('getSlides'), function(i, $el) {\r
+ var slide = $[deck]('getSlide',i);\r
+ //var tocElementFound = false;\r
+\r
+ /* If there is a toc item, push it in the TOC */\r
+ for(var level=1; level<6; level++) {\r
+ if( slide.find("h"+level).length > 0) {\r
+ var tocTitle = "";\r
+ var $tocElement = slide.find("h"+level+":first");\r
+ if( $tocElement.attr("title") != undefined && $tocElement.attr("title") != "") {\r
+ tocTitle = $tocElement.attr("title");\r
+ } else {\r
+ tocTitle = $tocElement.text();\r
+ }\r
+ $toc.push(level, tocTitle, slide);\r
+ $toc.tag(slide);\r
+ //tocElementFound = true;\r
+ }\r
+ }\r
+\r
+ /* Tag the slide with the current TOC level */\r
+ $toc.tag(slide);\r
+ });\r
+ })\r
+ /* Update current slide number with each change event */\r
+ .bind('deck.change', function(e, from, to) {\r
+ var opts = $[deck]('getOptions');\r
+ var slideTo = $[deck]('getSlide', to);\r
+ var container = $[deck]('getContainer');\r
+\r
+ if (container.hasClass($[deck]('getOptions').classes.toc)) {\r
+ container.scrollTop(slideTo.offset().top);\r
+ }\r
+\r
+ /* update toc status */\r
+ if( slideTo.data("toc") ) {\r
+ // reset\r
+ $(opts.selectors.tocTitle).text("");\r
+ $(opts.selectors.tocSection).text("");\r
+ $(opts.selectors.tocSubSection).text("");\r
+ $(opts.selectors.tocSubSubSection).text("");\r
+\r
+ if( slideTo.hasClass('hide-toc-status') ) {\r
+ $(opts.selectors.tocStatus).hide();\r
+ } else {\r
+ $(opts.selectors.tocStatus).show();\r
+ // update according to the current context\r
+ var $context = $toc.context(slideTo.data('toc'))\r
+ for(var level=1; level<=$context.length; level++) {\r
+ switch(level) {\r
+ case 1:\r
+ $(opts.selectors.tocTitle).text($context[level-1]);\r
+ break;\r
+ case 2:\r
+ $(opts.selectors.tocSection).text($context[level-1]);\r
+ break;\r
+ case 3:\r
+ $(opts.selectors.tocSubSection).text($context[level-1]);\r
+ break;\r
+ case 4:\r
+ $(opts.selectors.tocSubSubSection).text($context[level-1]);\r
+ break;\r
+ }\r
+ }\r
+ }\r
+ }\r
+ });\r
+\r
+ /*\r
+ Simple TOC manager (must be improved)\r
+ */\r
+ var TOC = function() {\r
+\r
+ this.root = $("<ul/>", {"class":"toc"});\r
+\r
+ /*\r
+ Push new item in the TOC\r
+\r
+ depth is the level (e.g. 1 for h1, 2 for h2, etc.)\r
+ title is the toc-item title\r
+ slide is the slide that provides the toc-element\r
+ */\r
+ this.push = function(depth,title,slide) {\r
+ inc(depth);\r
+\r
+ /* Create toc element */\r
+ var $tocElm = $("<li />", {\r
+ id: "toc-"+($c.join('-'))\r
+ }).data({ // keep track of the slide in case...\r
+ slide: slide,\r
+ title: title\r
+ }).append($("<a />", { // create an hyperlink\r
+ href: "#"+$(slide).attr('id'),\r
+ text: title\r
+ })).append($("<ul />"));\r
+\r
+ /* insert it at the right place */\r
+ var $target = this.root;\r
+ if( depth > 1) {\r
+ $target = ($target.find("li#toc-"+($c.slice(0,$c.length-1).join('-')))).children("ul");\r
+ }\r
+ $tocElm.appendTo($target);\r
+ };\r
+\r
+ /*\r
+ Tag the slide with the current TOC level.\r
+\r
+ slide is the slide to tag\r
+ */\r
+ this.tag = function(slide) {\r
+ slide.data({\r
+ toc: $c.slice(0)\r
+ });\r
+ }\r
+\r
+ /*\r
+ Get the current TOC context\r
+\r
+ path is the current path in the TOC\r
+ */\r
+ this.context = function(path) {\r
+ $context = new Array();\r
+ var $target = this.root;\r
+ for(var depth=0; depth<path.length; depth++) {\r
+ var tocElm = $target.find("li#toc-"+(path.slice(0,depth+1).join('-')))\r
+ $context.push(tocElm.data('title'));\r
+ $target = (tocElm).children("ul");\r
+ }\r
+\r
+ return $context;\r
+ }\r
+\r
+ /* cursor */\r
+ var $c = [-1];\r
+ function inc(depth) {\r
+ var current_depth = $c.length;\r
+ if(depth>current_depth) {\r
+ for(i=current_depth;i<depth;i++) {\r
+ $c.push(0);\r
+ }\r
+ } else if( current_depth>depth) {\r
+ for(i=depth;i<current_depth;i++) {\r
+ $c.pop();\r
+ $c[depth-1]++\r
+ }\r
+ } else {\r
+ $c[depth-1]++\r
+ }\r
+ }\r
+ }\r
+})(jQuery, 'deck');\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.blank - v1.0\r
+Copyright (c) 2012 Mike Kellenberger\r
+*/\r
+\r
+/*\r
+This module adds the necessary methods and key bindings to blank/unblank the screen by pressing 'b'.\r
+*/\r
+(function($, deck, undefined) {\r
+ var $d = $(document);\r
+\r
+ $[deck]('extend', 'activateBlankScreen', function() {\r
+ $[deck]('getSlide').hide();\r
+ });\r
+\r
+ $[deck]('extend', 'deactivateBlankScreen', function() {\r
+ $[deck]('getSlide').show();\r
+ });\r
+\r
+ $[deck]('extend', 'blankScreen', function() {\r
+ $[deck]('getSlide').is(":visible") ? $[deck]('activateBlankScreen') : $[deck]('deactivateBlankScreen');\r
+ });\r
+\r
+ $d.bind('deck.init', function() {\r
+ // Bind key events\r
+ $d.unbind('keydown.blank').bind('keydown.blank', function(e) {\r
+ if (e.which==66) {\r
+ $[deck]('blankScreen');\r
+ e.preventDefault();\r
+ }\r
+ });\r
+ });\r
+})(jQuery, 'deck');\r
+/*]]>*/\r
+</script>\r
+<script type="text/javascript">\r
+/*<![CDATA[*/\r
+/*!\r
+Deck JS - deck.split\r
+Copyright (c) 2012 Qingping Hou <dave2008713@gmail.com>\r
+ about.houqp.me\r
+Dual licensed under the MIT license and GPL license.\r
+https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt\r
+https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt\r
+*/\r
+\r
+/*\r
+This module splits a long slide into multiple slides.\r
+*/\r
+(function($, deck, undefined) {\r
+ var $d = $(document);\r
+\r
+ createEmptySlide = function(title_el) {\r
+ slide = $(document.createElement('section'));\r
+ slide.addClass('slide').append(title_el.clone());\r
+ return slide;\r
+ };\r
+\r
+ $d.bind('deck.beforeInit', function() {\r
+ $(".slide").each( function(i, slide) {\r
+ /* each slide */\r
+ var is_split = false,\r
+ prev_slide = $(slide),\r
+ /* extract title which will be added to each new slides */\r
+ title_el = prev_slide.children('h2'),\r
+ tmp_slide = createEmptySlide(title_el);\r
+\r
+ $(slide).children().each(function() {\r
+ /* for each element inside original slide */\r
+ var el = $(this);\r
+\r
+ if (el.css('page-break-after') == 'always') {\r
+ if (is_split) {\r
+ tmp_slide.insertAfter(prev_slide);\r
+ prev_slide = tmp_slide;\r
+ tmp_slide = createEmptySlide(title_el);\r
+ }\r
+ else {\r
+ /* find the first page break */\r
+ is_split = true;\r
+ }\r
+ }\r
+ else {\r
+ if (is_split) {\r
+ tmp_slide.append(el);\r
+ }\r
+ }\r
+ })\r
+ /* add remaining elements to a new slides */\r
+ if (is_split) {\r
+ tmp_slide.insertAfter(prev_slide);\r
+ }\r
+ });\r
+ })\r
+})(jQuery, 'deck');\r
+\r
+/*]]>*/\r
+</script>\r
+</head>\r
+<body class="deck-container">\r
+<section class="slide" id="title-slide">\r
+ <h1>Hatch Review</h1>\r
+ <h3>Bill Erickson, Software Development Engineer, King County Library System</h3>\r
+ <h4>Evergreen Conference, 2018</h4>\r
+</section>\r
+<section class="slide">\r
+<h2>What Problem Does Hatch Solve?</h2>\r
+<div class="listingblock">\r
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8\r
+by Lorenzo Bettini\r
+http://www.lorenzobettini.it\r
+http://www.gnu.org/software/src-highlite -->\r
+<pre><tt>window<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">print</span></span><span style="color: #990000">();</span></tt></pre></div></div>\r
+</section>\r
+<section class="slide">\r
+<h2>Hatch Architecture</h2>\r
+<ol>\r
+<li class="">\r
+<p>\r
+Browser AngularJS Service egHatch (JavaScript)\r
+</p>\r
+</li>\r
+<li class="">\r
+<p>\r
+Browser Extension (JavaScript)\r
+</p>\r
+</li>\r
+<li class="">\r
+<p>\r
+Native Application (Java)\r
+</p>\r
+</li>\r
+</ol>\r
+</section>\r
+<section class="slide">\r
+<h2>Hatch Message Flow</h2>\r
+<p><span class="image">\r
+<img src="images/Hatch_Flow_Diagram.png" alt="Hatch Diagram" />\r
+</span></p>\r
+</section>\r
+<section class="slide">\r
+<h2>JS Objects and JSON All The Way Down</h2>\r
+<div class="listingblock">\r
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8\r
+by Lorenzo Bettini\r
+http://www.lorenzobettini.it\r
+http://www.gnu.org/software/src-highlite -->\r
+<pre><tt><span style="color: #FF0000">{</span>\r
+ <span style="color: #FF0000">"action"</span><span style="color: #990000">:</span><span style="color: #FF0000">"print"</span><span style="color: #990000">,</span>\r
+ <span style="color: #FF0000">"content"</span><span style="color: #990000">:</span><span style="color: #FF0000">"<b>Hello, World!</b>"</span><span style="color: #990000">,</span>\r
+ <span style="color: #FF0000">"contentType"</span><span style="color: #990000">:</span><span style="color: #FF0000">"text/html"</span><span style="color: #990000">,</span>\r
+ <span style="color: #FF0000">"showDialog"</span><span style="color: #990000">:</span><span style="font-weight: bold"><span style="color: #0000FF">true</span></span><span style="color: #990000">,</span>\r
+ <span style="color: #FF0000">"msgid"</span><span style="color: #990000">:</span><span style="color: #993399">10</span><span style="color: #990000">,</span>\r
+ <span style="color: #FF0000">"from"</span><span style="color: #990000">:</span><span style="color: #FF0000">"page"</span><span style="color: #990000">,</span>\r
+ <span style="color: #FF0000">"clientid"</span><span style="color: #990000">:</span><span style="color: #993399">5319</span><span style="color: #990000">,</span> <span style="font-style: italic"><span style="color: #9A1900">// set by extension</span></span>\r
+ <span style="color: #FF0000">"origin"</span><span style="color: #990000">:</span><span style="color: #FF0000">"https://eg.example.org"</span><span style="color: #990000">,</span> <span style="font-style: italic"><span style="color: #9A1900">// set by extension</span></span>\r
+ <span style="color: #FF0000">"settings"</span><span style="color: #990000">:</span><span style="color: #FF0000">{</span><span style="color: #FF0000">"context"</span><span style="color: #990000">:</span><span style="color: #FF0000">"default"</span><span style="color: #990000">,</span><span style="color: #FF0000">"printer"</span><span style="color: #990000">:</span><span style="color: #FF0000">"HP-Deskjet-5100"</span><span style="color: #990000">,</span> <span style="color: #990000">...</span><span style="color: #FF0000">}</span>\r
+<span style="color: #FF0000">}</span></tt></pre></div></div>\r
+</section>\r
+<section class="slide">\r
+<h2>HatchInstaller.exe</h2>\r
+<ul>\r
+<li class="">\r
+Copies Hatch files into place (e.g. C:\Program Files (x86)\Hatch)\r
+</li>\r
+<li class="">\r
+Creates Windows registry keys telling the browser how to find the files.\r
+</li>\r
+<li class="">\r
+Installs the Chrome extension.\r
+</li>\r
+</ul>\r
+</section>\r
+<section class="slide">\r
+<h2>Verifying the Java Install</h2>\r
+<div class="listingblock">\r
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8\r
+by Lorenzo Bettini\r
+http://www.lorenzobettini.it\r
+http://www.gnu.org/software/src-highlite -->\r
+<pre><tt><span style="font-style: italic"><span style="color: #9A1900"># Linux</span></span>\r
+$ <span style="color: #990000">.</span>/hatch<span style="color: #990000">.</span>sh <span style="font-weight: bold"><span style="color: #0000FF">test</span></span>\r
+\r
+<span style="font-style: italic"><span style="color: #9A1900"># Windows</span></span>\r
+C<span style="color: #990000">:\</span>Program Files <span style="color: #990000">(</span>x86<span style="color: #990000">)\</span>Hatch<span style="color: #990000">></span> hatch<span style="color: #990000">.</span>bat <span style="font-weight: bold"><span style="color: #0000FF">test</span></span>\r
+\r
+<span style="color: #993399">2017</span>-<span style="color: #993399">03</span>-<span style="color: #993399">29</span> <span style="color: #993399">13</span><span style="color: #990000">:</span><span style="color: #993399">52</span><span style="color: #990000">:</span><span style="color: #993399">21</span> FINEST MessageWriter sending<span style="color: #990000">:</span> {<span style="color: #FF0000">"clientid"</span><span style="color: #990000">:</span><span style="color: #993399">1</span><span style="color: #990000">,</span><span style="color: #FF0000">"origin"</span><span style="color: #990000">:</span><span style="color: #FF0000">"https://test.hatch...</span>\r
+<span style="color: #FF0000">2017-03-29 13:52:21 INFO Using data directory: /home/berick/.evergreen</span>\r
+<span style="color: #FF0000">2017-03-29 13:52:21 FINEST MessageReader read: {"</span>clientid<span style="color: #FF0000">":1,"</span>origin<span style="color: #FF0000">":"</span>https<span style="color: #990000">:</span>//test<span style="color: #990000">.</span>hatch<span style="color: #990000">....</span>\r
+<span style="color: #993399">2017</span>-<span style="color: #993399">03</span>-<span style="color: #993399">29</span> <span style="color: #993399">13</span><span style="color: #990000">:</span><span style="color: #993399">52</span><span style="color: #990000">:</span><span style="color: #993399">21</span> INFO Received message <span style="color: #009900">id</span><span style="color: #990000">=</span><span style="color: #993399">1</span> <span style="color: #009900">action</span><span style="color: #990000">=</span>keys\r
+<span style="color: #990000">...</span></tt></pre></div></div>\r
+</section>\r
+<section class="slide">\r
+<h2>Browser Client Configuration</h2>\r
+<ul>\r
+<li class="">\r
+Enable Hatch for Printing\r
+</li>\r
+<li class="">\r
+Configure Printers\r
+</li>\r
+</ul>\r
+</section>\r
+<section class="slide">\r
+<h2>Enable Hatch</h2>\r
+<p>Administration ⇒ Workstation ⇒ Print/Storage Service ("Hatch")</p>\r
+<p><span class="image">\r
+<img src="images/hatch_settings.png" alt="Hatch Settings" />\r
+</span></p>\r
+</section>\r
+<section class="slide">\r
+<h2>Hatch Printing UI</h2>\r
+<p>Administration ⇒ Workstation ⇒ Printer Settings</p>\r
+<p><span class="image">\r
+<img src="images/hatch_print_config.png" alt="Hatch Print Config" />\r
+</span></p>\r
+</section>\r
+<section class="slide">\r
+<h2>What’s Next?</h2>\r
+<ul>\r
+<li class="">\r
+Firefox Support\r
+</li>\r
+<li class="">\r
+Using Hatch for printer negotiation only.\r
+</li>\r
+<li class="">\r
+Alternate Native Application Implementations\r
+<ul>\r
+<li class="">\r
+Render HTML\r
+</li>\r
+<li class="">\r
+Communicate with printers\r
+</li>\r
+</ul>\r
+</li>\r
+</ul>\r
+</section>\r
+<a href="#" class="deck-prev-link" title="Previous">←</a>\r
+<a href="#" class="deck-next-link" title="Next">→</a>\r
+<p class="deck-status">\r
+ <span class="deck-status-current"></span>\r
+ /\r
+ <span class="deck-status-total"></span>\r
+</p>\r
+<div class="deck-toc"></div>\r
+<form action="." method="get" class="goto-form">\r
+ <label for="goto-slide">Go to slide:</label>\r
+ <input type="text" name="slidenum" id="goto-slide" list="goto-datalist">\r
+ <datalist id="goto-datalist"></datalist>\r
+ <input type="submit" value="Go">\r
+</form>\r
+<a href="." title="Permalink to this slide" class="deck-permalink">#</a>\r
+<!-- Other extension HTML snippets go here, at the bottom of the deck container. -->\r
+<!-- Initialize the deck. You can put this in an external file if desired. -->\r
+<script>\r
+ (function($, deck, undefined) {\r
+\r
+\r
+ $.extend(true, $[deck].defaults, {\r
+ countNested: false\r
+ });\r
+\r
+ $.deck('.slide');\r
+ })(jQuery, 'deck');\r
+</script>\r
+</body>\r
+</html>\r