summaryrefslogtreecommitdiff
path: root/site/media
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-05-27 14:18:50 -0400
committerluxagraf <sng@luxagraf.net>2014-05-27 14:18:50 -0400
commit18de08b5dfcc40243bfe8531bce775d0cf106293 (patch)
tree214567b93b0a1f499cc0edab76ac920062a590a1 /site/media
parent4b46285558ccbe10e9a2a5887c630fce6e355d52 (diff)
moved all the js files to their respective projects and added the
leftlet providers code inline at the top as part of the build process. Also converted everything to stop using google maps.
Diffstat (limited to 'site/media')
-rw-r--r--site/media/css/stylesv6.css1637
-rw-r--r--site/media/js/natparks.js569
-rw-r--r--site/media/js/natparks.min.js24
-rw-r--r--site/media/js/photos.js472
-rw-r--r--site/media/js/photos.min.js14
-rw-r--r--site/media/js/underscore-min.js17
6 files changed, 2639 insertions, 94 deletions
diff --git a/site/media/css/stylesv6.css b/site/media/css/stylesv6.css
index 62ea31f..8d68ed4 100644
--- a/site/media/css/stylesv6.css
+++ b/site/media/css/stylesv6.css
@@ -1 +1,1636 @@
-ol,ul,li,dl{list-style:none;margin:0;padding:0;border:0;outline:0;background:transparent}blockquote,q{quotes:none}hr{display:none}:focus{outline:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;margin:0;padding:0}html{overflow-y:scroll;background:#fff;border-top:3px #201a11 solid}body{margin:0 auto;padding:0;width:90%;font:normal 100% ff-meta-serif-web-pro,Hoefler Text,Georgia,Times New Roman,Times,serif;color:#201a11;background-color:transparent}h1,h2,h3,h4,h5,h6{font-family:Helvetica Neue,Helvetica,Verdana,sans-serif}h1{font-size:1.875em;line-height:1.3em;font-weight:normal}h2{margin-bottom:0.75em;font-size:1.5em;line-height:1.5;font-weight:normal}h3{margin-bottom:1em;font-size:1.6em;line-height:1.5}h4{margin-bottom:1.25em;font-size:1.25em;line-height:1.25}h5{margin-bottom:1.5em;font-size:1em}h6{font-size:1em}p{font-size:1.063em;line-height:1.5em;margin:1em 0 0}ul,ol{margin:0 0 1.5em -24px;padding-left:24px}ul{list-style-type:disc}ol{list-style-type:decimal}li ul,li ol{margin:0;font-size:1em}dl,dd{margin-bottom:1.5em}dt{font-weight:normal}b,strong{font-weight:bold}i,em{font-style:italic}footer p{font-size:0.625em;text-align:center}a{text-decoration:none;color:#201a11;-webkit-transition:color 0.3s ease-out;-moz-transition:color 0.3s ease-out;-o-transition:color 0.3s ease-out;-ms-transition:color 0.3s ease-out;transition:color 0.3s ease-out}a:hover{color:#b53a04}sup{font:normal 0.625em Helvetica,Verdana,sans-serif}small{font:normal 0.75em Helvetica,Verdana,sans-serif}blockquote{font-style:italic;font-size:1em;line-height:1.625em}blockquote p{font-size:1em}blockquote cite{font-style:normal}img{border:10px #201a11 solid}pre{margin-bottom:1.5em;white-space:pre;white-space:pre-wrap;word-wrap:break-word}pre,code{font:0.875em "andale mono","lucida console",monospace;line-height:1.5}.bl,time,#photo-galleries h1{text-transform:uppercase;font-size:11px;letter-spacing:1px}.drop{font-size:3em;float:left;display:block;padding:18px 10px 5px 0;overflow:visible}.double .drop,.drop-small{font-size:3.1em;display:block;float:left;padding:16px 8px 5px 0;overflow:visible}.button{display:block;margin-top:8px}.button a{padding:9px 14px 7px 14px;font-weight:bold;line-height:25px;text-transform:uppercase;background:#d7d7d7;color:#666 !important;-moz-border-radius:25px;-webkit-border-radius:25px;border-radius:25px;font:bold 10px Helvetica,Verdana,sans-serif;width:auto}.button a:hover{background:#b53a04;color:#fff !important}.alert{color:#ff3530}#page-navigation{margin:24px auto}#page-navigation strong{display:block;text-align:right;margin-top:1px;text-transform:uppercase;font-size:0.75em;letter-spacing:0.163em;font-weight:normal;font-style:normal}#pagination{margin-top:1em;border-top:1px #201a11 dotted;border-bottom:1px #201a11 dotted;text-align:center;font-family:Helvetica Neue,Helvetica,Verdana,sans-serif;padding:0.25em 0}#pagination ul{margin-bottom:0}#pagination li{display:inline;text-align:center}a{outline:none;color:#111;text-decoration:none}a:visited{outline:none;color:#111;text-decoration:none}a:hover{outline:none;color:#b53a04;text-decoration:none}a:active,a:focus{outline:none;color:#000}figure{margin-bottom:1.5em}figure img,figure object,figure embed{margin-bottom:0.75em;max-width:100%}figcaption{display:block;font-weight:normal}table{border-collapse:collapse;border-spacing:0;margin-bottom:1.4em;width:100%;font-size:0.875em}th{font-weight:bold;padding:0.25em 10px 0.25em 5px}td,caption{padding:0.25em 10px 0.25em 5px}tfoot{font-style:italic}caption{background-color:transparent}.clearfix{zoom:1}.clearfix:before,.clearfix:after{content:"\0020";display:block;height:0;overflow:hidden}.clearfix:after{clear:both}.hide{display:none}body{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:link{-webkit-tap-highlight-color:#349edb}::-webkit-selection{background:#1777af;color:#fafafa;text-shadow:none}::-moz-selection{background:#1777af;color:#fafafa;text-shadow:none}::selection{background:#1777af;color:#fafafa;text-shadow:none}.ie7 img,.iem7 img{-ms-interpolation-mode:bicubic}header[role="banner"]{margin:0 auto;text-align:center}header[role="banner"] h1{background:url("../img/tree.png") 0 0 no-repeat;text-indent:-9999px;width:151px;height:84px;margin:0 auto}header[role="banner"] h2{background:url("../img/text-centered.png") 0 0 no-repeat;text-indent:-9999px;width:184px;height:54px;margin:0 auto}nav[role="navigation"],footer[role="contentinfo"] nav{margin:1em auto;border-top:1px #201a11 dotted;border-bottom:1px #201a11 dotted;padding:0.5em;text-align:center}nav[role="navigation"] ul,footer[role="contentinfo"] nav ul{margin:0.25em 0 0.25em -30px}nav[role="navigation"] li,footer[role="contentinfo"] nav li{display:inline;margin:0 0.125em}#breadcrumbs{text-align:center}#breadcrumbs li{display:inline}img{width:95%;height:auto}.postpic,.postpicright{display:block;width:auto}object,embed{width:100%}.postpic{float:left;margin:0.3em 10px 10px 0}.postpicright{float:right;margin:0.3em 0 10px 10px}.postpicleft{float:left;margin:5px}.picfull{margin-top:20px}.picwide{clear:both;margin:1em 0}.figure{position:relative}.figure .legend{display:block;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);-moz-opacity:0.9;-khtml-opacity:0.9;opacity:0.9;position:absolute;bottom:10px;left:0;font-size:13px;padding:8px 0 8px 12px;width:95%;background:#201a11;color:#999}.dateline{text-align:center}.archive h1{font-size:1.5em;text-align:center}.archive article{padding-bottom:1em;border-bottom:1px #ececec solid}.home article{border:none;margin-bottom:2em}.home h1{font-size:1.2em;margin:0;text-align:center}.home img{float:left;width:auto;margin:20px 8px 0 0}.home .sh{text-transform:uppercase;font-weight:bold;font-size:0.75em;margin:2em 0}#photo-galleries{margin-top:2em}#photo-galleries h1{font:13px bold Hoefler Text,Georgia,Times New Roman,Times,serif;color:#fff}#photo-galleries li{margin:10px 0 0 0}.geo,article[role="main"] time{margin:0.5em 0;display:block;text-align:center}article[role="main"]{margin-top:3em}article[role="main"] h1{text-align:center;font-size:1.5em}article[role="main"] p > a{color:#b53a04}article[role="main"] p > a:hover{text-decoration:underline}.footnote{border-top:1px #201a11 dotted;margin:1.5em 0 0 0;padding:1em 0 0 0}.footnote p{font-size:0.875em !important;line-height:20px !important}#page-navigation{margin:2em auto;text-align:center;display:table}#page-navigation ul{margin:0 auto;width:100%;text-align:center;padding:0}#page-navigation li{margin:6px auto;clear:both;line-height:24px;text-align:center}#page-navigation span{min-width:70px;display:block;text-align:right;margin-right:10px;margin-top:2px;float:left}#page-navigation a{display:block;float:left;text-align:left;font-style:italic}#map-canvas{border:10px #201a11 solid;width:95%;height:300px}.map-legend h4{font-size:1em;font-weight:bold;margin:1em 0 0.25em}.map-legend li{display:inline}.map-legend li:after{content:","}.infowin h4{margin:0 0 5px 0;font-weight:normal}.infowin .date{text-transform:uppercase;font-size:11px;letter-spacing:1px}.infowin p{font-size:1em}footer[role="contentinfo"]{margin-top:2em}nav:after,footer:before,footer:after,.archive article:after,#archive:after,article[role="main"] header:after,#map-canvas:after{content:".";display:block;height:0;clear:both;visibility:hidden}.dark{background:#201a11}.dark body{color:#ccc}.dark *:focus{outline:#b53a04 dotted thin}.dark a{color:#b53a04}.dark a:visited{color:#fff;text-decoration:none}.dark a:hover{color:#fff;text-decoration:none}.dark a:visited > :hover{color:#b53a04}.dark img{border:none}.dark header[role="banner"],.dark footer[role='contentinfo']{margin-bottom:0.5em}.dark header[role="banner"] nav,.dark footer[role='contentinfo'] nav{margin-bottom:0}.dark header[role="banner"] a,.dark footer[role='contentinfo'] a{color:#fff}.dark header[role="banner"] a:hover,.dark footer[role='contentinfo'] a:hover{color:#b53a04}.dark header[role="banner"] a:visited,.dark footer[role='contentinfo'] a:visited{color:#fff}.dark header[role="banner"] h1,.dark footer[role='contentinfo'] h1{background:url("../img/tree.png") left -84px no-repeat}.dark header[role="banner"] h2,.dark footer[role='contentinfo'] h2{background:url("../img/text-centered.png") 0 -60px no-repeat}.dark header[role="banner"]{border-bottom:#ccc 1px solid}.dark article[role="main"] .legend{bottom:0}.dark .park{text-align:center;position:relative}.dark .park h1{font-size:1.5em;margin-bottom:5px}.dark .park h2{font-size:1.125em;margin:0}.dark .park img{width:100%}.dark .park .legend{position:relative}.dark .park .meta{height:0}.dark .park .buttons li{margin:5px;display:inline;text-transform:uppercase;font:normal 0.5em Helvetica Neue,Helvetica,Verdana,sans-serif}.dark .park .map-container{width:469px;height:392px;position:absolute;right:20px;bottom:60px;z-index:2000;margin:0;padding:0;background:url("../img/mapbg-dark.png") no-repeat top left}.dark .park .map-wrapper{width:400px;height:328px;margin:37px 0 0 44px}.dark .park .more-container{width:405px;height:260px;position:absolute;right:-30px;bottom:40px;z-index:2000;background:url("../img/parkbg.png") no-repeat top left;font:normal 0.9em/25px Helvetica Neue,Helvetica,Verdana,sans-serif}.dark .park .more-container dl{margin-top:45px;margin-left:45px;text-align:left}.dark .park .more-container dl dt,.dark .park .more-container dl dd{margin:4px 0;color:#fff}.dark .park .more-container dl dt{clear:left;float:left;width:65px;font-weight:bold;line-height:25px;font-size:0.7em;text-transform:uppercase;text-align:right;margin-right:8px}.dark .park .more-container dl dd{float:left;width:250px;overflow:hidden}.dark .park .more-container dl dd a:hover{color:#b53a04}.black{background:#14100b;color:#ccc}.black *:focus{outline:#b53a04 dotted thin}.black a{text-decoration:none;color:#b53a04}.black a:visited{color:#fff;text-decoration:none}.black a:hover{color:#fff;text-decoration:none}.black #breadcrumbs{color:#ccc}.black header[role="banner"] h1{background:url("../img/tree.png") left -168px no-repeat}.black header[role="banner"] h2{background:url("../img/text-centered.png") 0 -121px no-repeat}.black nav[role="navigation"]{border-top:1px #ccc dotted;border-bottom:1px #ccc dotted}.black .directions{display:none}.black #slides{width:100%}.black h3{font-size:1em;margin:0 0.5em}.black h6{display:none}.black #slides article{clear:both;margin:20px 0}.black #slides img{width:100%;border:none}.black .photo-options,.black .map-link{display:none}.black .figcaption{clear:both;background:#1a1713;-moz-border-radius:0 0 0.5em 0.5em;-webkit-border-radius:0 0 0.5em 0.5em;border-radius:0 0 0.5em 0.5em;color:#fff;margin:-0.25em 0 0 0;padding:1em 0 1em 0;z-index:100}.black .caption{width:100%;float:none}.black .caption p{font:normal 0.75em Helvetica,Verdana,sans-serif;margin:0.5em 0 0 0.75em;padding-bottom:0.25em}.black footer[role='contentinfo'] nav{border-top:#ccc 1px dotted;border-bottom:#ccc 1px dotted}.black footer[role='contentinfo'] p{color:#ccc}@media only screen and (min-width: 768px){header[role="banner"]{margin-top:2em;height:60px;padding-bottom:12px;border-bottom:1px solid #201a11;margin-bottom:2em}header[role="banner"] h1{float:left;width:160px;margin-top:-12px}header[role="banner"] h2{background:url("../img/text.png") 0 0 no-repeat;margin-top:5px;float:left}header[role="banner"] nav[role="navigation"]{border:none;float:left;margin-left:2em}header[role="banner"] nav[role="navigation"] ul{margin-top:14px}#breadcrumbs{text-align:left}.archive article{margin-bottom:2em;padding-bottom:2em;border:none}.archive h1,.archive p{float:left;text-align:left;margin:0}.archive p{line-height:1.25em}.archive h1{line-height:2.4em;margin-top:0.15em;width:100%}.archive .dateline{clear:left;width:38%}.archive .hyphenate{text-align:justify;width:38%;margin-top:0.5em;font-size:1em}.archive time{display:inline;float:right}.archive img{float:right;width:56%}.home article{clear:both;min-height:300px}.home article h1{margin-top:2em;text-align:left}.home article .dateline{text-align:left}.home article img{margin-bottom:2em;margin-left:2em;float:right}#photo-galleries{margin:0 auto;padding-left:12px;width:100%}#photo-galleries img{width:auto}#photo-galleries .legend{width:291px}#photo-galleries li{float:left;margin-right:16px}#photo-galleries:after{content:".";display:block;height:0;clear:both;visibility:hidden}.single article{width:35.625em;margin:4em auto}.single article header{width:35.625em}.single article header h1{font-size:2em;text-align:left;margin:0 0 0.675em 0}.single article header aside,.single article header time{text-align:left}#code article h1,#contact article h1{font-size:2em;text-align:left;margin:0 0 0.675em 0}.drop{font-size:4.8em;padding:35px 10px 5px 0}.col{float:left;width:38%;margin-right:2em}.two{width:53%}.top{margin-bottom:2em;font-size:0.875em;padding-bottom:2em;border-bottom:#e3e3e3 1px solid}.top:after{content:".";display:block;height:0;clear:both;visibility:hidden}.double article[role="main"] header{width:9em;float:left;margin-left:0}.double article[role="main"] header h1,.double article[role="main"] header aside{text-align:right;line-height:1.1em;margin-top:16px}.double article[role="main"] header h1{font-size:1.875em}.double article[role="main"] header time{display:block;text-align:right}.double article[role="main"] .col{margin-left:1.25em;width:34%}.double article[role="main"] .sec{margin-right:0;margin-left:1em}.double article[role="main"] .narrow{width:35.625em;margin:0 auto}.post-body-single .legend{width:98%}.post-body-single p:first-of-type{font-size:1.25em;line-height:28px}#about .post-body-single p:nth-of-type(1){font-size:1.063em}.addendum{line-height:25px}.addendum dt{margin-left:-30px;font-style:italic;padding-left:30px;text-indent:-30px;margin-bottom:0.5em}.addendum dd{margin-left:0}h4.notes{text-transform:uppercase;font-size:1em}.pullquote{width:10em;margin:0 1em 1em -2em;font-style:italic;font-size:1.3em;float:left;line-height:1.6em}.numeral{display:block;font:bold 1.2em Helvetica,Verdana,sans-serif;margin-bottom:0;margin-top:60px}.post-body-single h3{font-size:1.6em;line-height:1.2em;font-weight:normal}#map-canvas{height:400px}#about img{width:auto;clear:both}footer[role="contentinfo"]{font-size:110%}footer[role="contentinfo"] nav{border:none}footer[role="contentinfo"] nav li{margin:0 0.5em}.dark header[role="banner"] h2{background:url("../img/text.png") 0 -61px no-repeat}.dark .park{position:relative;display:block;margin:2em 0 2em 0}.dark .park h1{display:block;position:absolute;top:0px;background:#201a11;z-index:1000;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);-moz-opacity:0.9;-khtml-opacity:0.9;opacity:0.9;color:#fff;margin:0;width:100%;text-align:left;line-height:2em;font-size:2em;padding-left:0.25em}.dark .park .figure{position:relative;border:none}.dark .park .legend{position:absolute;bottom:0;width:100%;margin:0;background:#201a11;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);-moz-opacity:0.9;-khtml-opacity:0.9;opacity:0.9}.dark .park .legend h2{font:normal 1.2em/2.6 Helvetica,Verdana,sans-serif;color:#fff;margin:0 0 0 1em;float:left;padding:0.3em 0}.dark .park .legend:after{content:".";display:block;height:0;clear:both;visibility:hidden}.dark .park .buttons{margin:0.5em 10px 0 0;line-height:2.6em;float:right}.dark .park .buttons li{margin:0 0.25em;font-size:10px}.dark .park .buttons a{font-weight:bold;padding:0.875em 1.75em 0.75em;background:#463215;color:#fff;-moz-border-radius:25px;-webkit-border-radius:25px;border-radius:25px}.dark .park .buttons a:hover{background:#b53a04}.black header[role="banner"]{border-bottom:1px #ccc solid}.black header[role="banner"] h2{background:url("../img/text.png") 0 -121px no-repeat}.black h6{display:block;text-align:center;text-transform:uppercase;font-size:0.625em;margin:0 0 1.25em 0}.black h6 a{color:#b5b5b5}.black h6 a:hover{color:#b53a04}.black #slides article{position:relative}.black #slides img{display:block;margin:0 auto}.black #slides .v{width:auto}.black .photo-options,.black .map-link{display:block}.black .figcaption{margin:0;padding:1em 0 1em 0}.black .figcaption h3{float:left;padding:0;font-weight:normal}.black .figcaption .caption{border-right:1px solid #1f1f21;width:58%;float:left;padding-right:1em}.black .figcaption .caption p{margin-left:0.5em;font-size:0.875em;clear:both}.black .figcaption .map-link{float:right;background:#211d19;line-height:1em;color:#fff;text-align:center;text-transform:uppercase;margin:0 0.25em;font:normal 0.75em Helvetica,Verdana,sans-serif;padding:0.5em 1em;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}.black .figcaption .map-link:hover{background:#b53a04}.black .figcaption .photo-options{float:left;margin-left:1em}.black .figcaption .photo-options p{font:normal 0.75em Helvetica,Verdana,sans-serif;color:#414144;line-height:1.5em}.black .figcaption .photo-options p a{color:#414144;font-weight:normal}.black .figcaption .photo-options p a:hover{color:#b53a04}.black .figcaption li{display:inline;margin:0 0.25em;font:normal 1em Helvetica,Verdana,sans-serif}.black .figcaption a{font-weight:bold}.black .figcaption p{margin:0 1em;color:#74757a;font-size:1em}.black .figcaption:after{content:".";display:block;height:0;clear:both;visibility:hidden}.black .map-container{width:469px;height:392px;position:absolute;bottom:100px;left:20px;z-index:2000;margin:0;padding:0;background:url("../img/mapbg.png") no-repeat top left}.black .map-wrapper{width:400px;height:328px;position:absolute;bottom:27px;margin:0px 0 0 44px}.black footer[role='contentinfo'] nav{border:none}}@media only screen and (min-width: 992px){body{width:61.75em}img{width:auto !important}header[role="banner"]{margin-top:5.5em}header[role="banner"] h1{width:190px}header[role="banner"] nav[role="navigation"]{margin-left:8%}.archive{padding-top:2em}.archive article{margin-bottom:2em;padding-bottom:2em;border:none}.archive h1{width:42%;font-size:1.5em;line-height:1.3em;margin-top:0.15em;margin-bottom:0.25em;letter-spacing:0.5px}.archive p{line-height:1.5em}.archive img{float:right}.archive .hyphenate,.archive .dateline{width:41%}.archive .hyphenate{font-size:1em}.single article{margin-left:20%}.picwide{clear:both;margin:30px 0 30px -200px}.pullquote{margin-left:-6em}#page-navigation{margin-left:auto;margin-right:auto}.home .sh{text-align:left}.home article{width:19em;float:left;margin-right:2em;clear:none}.home .last{margin-right:0}.home .post-image{float:left;margin:20px 8px 8px 0}.home .hyphenate,.home .dateline{width:auto;text-align:left}.home .hyphenate{text-align:justify}.double article[role="main"] header{width:10em;float:left;margin-left:0;margin-top:1em}.double article[role="main"] header h1,.double article[role="main"] header aside{text-align:right;line-height:1.2em}.double article[role="main"] header h1{font-size:1.875em}.double article[role="main"] .col{width:47%;margin-left:0.875em}.double article[role="main"] .sec{margin-left:0}.double article[role="main"] .post-body-double{margin:2em 0 0 1.25em;float:left;width:48.75em}.double article[role="main"] .post-body-double p{margin:0 0 1em 0}.double article[role="main"] .post-body-double .narrow{width:35.625em;margin-bottom:1em;clear:both;margin-left:1em}.double article[role="main"] .post-body-double .hyphenate{margin-top:0}#map-canvas{width:48.5em;height:31.25em;float:right;margin-bottom:3em}.map-legend ul{margin-bottom:1em}.map-legend h4{margin-bottom:0.3em;letter-spacing:1px;font-size:0.75em;text-transform:uppercase}.map-legend li{display:block;font-size:0.875em;margin:2px 0}.map-legend li:after{content:""}.two{margin-left:3em;width:51%}.black #slides{width:62.5em}.black #slides img{width:auto}.black .directions{display:block;font:normal 0.675em Helvetica,Verdana,sans-serif;color:#414144;text-align:center;margin-bottom:1.75em}.black .caption{width:70% !important}.black .map-container{margin-left:17em}.guide .intro{margin-bottom:2.5em}.guide .formatted{column-count:3;column-gap:1.5em;-moz-column-count:3;-moz-column-gap:24px;-webkit-column-count:3;-webkit-column-gap:1.5em}.guide img{border:8px #201a11 solid}.guide .date,.guide .meta{float:left}.guide .meta{line-height:18px}.guide .tags{margin:20px 0 10px 0}.guide .guide-dek{padding:0;width:610px;float:right}.guide .guide-dek h1{margin:0 !important}.guide article:after,.guide .intro:after{content:".";display:block;height:0;clear:both;visibility:hidden}}@media print{*{background:transparent !important;color:#000 !important;text-shadow:none !important;filter:none !important;-ms-filter:none !important}a{color:#444 !important;text-decoration:underline}a:visited{color:#444 !important;text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}
+ol, ul, li, dl {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ background: transparent; }
+
+blockquote, q {
+ quotes: none; }
+
+hr {
+ display: none; }
+
+:focus {
+ outline: 0; }
+
+article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
+ display: block;
+ margin: 0;
+ padding: 0; }
+
+html {
+ overflow-y: scroll;
+ background: white;
+ border-top: 3px #201a11 solid; }
+
+body {
+ margin: 0 auto;
+ padding: 0;
+ width: 90%;
+ font: normal 100% ff-meta-serif-web-pro, Hoefler Text, Georgia, Times New Roman, Times, serif;
+ color: #201a11;
+ background-color: transparent; }
+
+h1, h2, h3, h4, h5, h6 {
+ font-family: Helvetica Neue, Helvetica, Verdana, sans-serif; }
+
+h1 {
+ font-size: 1.875em;
+ line-height: 1.3em;
+ font-weight: normal; }
+
+h2 {
+ margin-bottom: 0.75em;
+ font-size: 1.5em;
+ line-height: 1.5;
+ font-weight: normal; }
+
+h3 {
+ margin-bottom: 1em;
+ font-size: 1.6em;
+ line-height: 1.5; }
+
+h4 {
+ margin-bottom: 1.25em;
+ font-size: 1.25em;
+ line-height: 1.25; }
+
+h5 {
+ margin-bottom: 1.5em;
+ font-size: 1em; }
+
+h6 {
+ font-size: 1em; }
+
+p {
+ font-size: 1.0625em;
+ line-height: 1.5em;
+ margin: 1em 0 0; }
+
+ul, ol {
+ margin: 0 0 1.5em -24px;
+ padding-left: 24px; }
+
+ul {
+ list-style-type: disc; }
+
+ol {
+ list-style-type: decimal; }
+
+li ul, li ol {
+ margin: 0;
+ font-size: 1em; }
+
+dl, dd {
+ margin-bottom: 1.5em; }
+
+dt {
+ font-weight: normal; }
+
+b, strong {
+ font-weight: bold; }
+
+i, em {
+ font-style: italic; }
+
+footer p {
+ font-size: 0.625em;
+ text-align: center; }
+
+a {
+ text-decoration: none;
+ color: #201a11;
+ -webkit-transition: color 0.3s ease-out;
+ -moz-transition: color 0.3s ease-out;
+ -o-transition: color 0.3s ease-out;
+ -ms-transition: color 0.3s ease-out;
+ transition: color 0.3s ease-out; }
+ a:hover {
+ color: #b53a04; }
+
+sup {
+ font: normal 0.625em Helvetica, Verdana, sans-serif; }
+
+small {
+ font: normal 0.75em Helvetica, Verdana, sans-serif; }
+
+blockquote {
+ font-style: italic;
+ font-size: 1em;
+ line-height: 1.625em; }
+ blockquote p {
+ font-size: 1em; }
+ blockquote cite {
+ font-style: normal; }
+
+img {
+ border: 10px #201a11 solid; }
+
+pre {
+ margin-bottom: 1.5em;
+ white-space: pre;
+ white-space: pre-wrap;
+ word-wrap: break-word; }
+
+pre, code {
+ font: 0.875em "andale mono", "lucida console", monospace;
+ line-height: 1.5; }
+
+.bl, time, #photo-galleries h1 {
+ text-transform: uppercase;
+ font-size: 11px;
+ letter-spacing: 1px; }
+
+.drop {
+ font-size: 3em;
+ float: left;
+ display: block;
+ padding: 18px 10px 5px 0;
+ overflow: visible; }
+
+.double .drop, .drop-small {
+ font-size: 3.1em;
+ display: block;
+ float: left;
+ padding: 16px 8px 5px 0;
+ overflow: visible; }
+
+.button {
+ display: block;
+ margin-top: 8px; }
+ .button a {
+ padding: 9px 14px 7px 14px;
+ font-weight: bold;
+ line-height: 25px;
+ text-transform: uppercase;
+ background: #d7d7d7;
+ color: #666666 !important;
+ -moz-border-radius: 25px;
+ -webkit-border-radius: 25px;
+ border-radius: 25px;
+ font: bold 10px Helvetica, Verdana, sans-serif;
+ width: auto; }
+ .button a:hover {
+ background: #b53a04;
+ color: white !important; }
+
+.alert {
+ color: #ff3530; }
+
+#page-navigation {
+ margin: 24px auto; }
+ #page-navigation strong {
+ display: block;
+ text-align: right;
+ margin-top: 1px;
+ text-transform: uppercase;
+ font-size: 0.75em;
+ letter-spacing: 0.1625em;
+ font-weight: normal;
+ font-style: normal; }
+
+#pagination {
+ margin-top: 1em;
+ border-top: 1px #201a11 dotted;
+ border-bottom: 1px #201a11 dotted;
+ text-align: center;
+ font-family: Helvetica Neue, Helvetica, Verdana, sans-serif;
+ padding: 0.25em 0; }
+ #pagination ul {
+ margin-bottom: 0; }
+ #pagination li {
+ display: inline;
+ text-align: center; }
+
+a {
+ outline: none;
+ color: #111111;
+ text-decoration: none; }
+ a:visited {
+ outline: none;
+ color: #111111;
+ text-decoration: none; }
+ a:hover {
+ outline: none;
+ color: #b53a04;
+ text-decoration: none; }
+ a:active, a:focus {
+ outline: none;
+ color: black; }
+
+/* 5.FIGURES & IMAGES */
+figure {
+ margin-bottom: 1.5em; }
+ figure img, figure object, figure embed {
+ margin-bottom: 0.75em;
+ max-width: 100%; }
+
+figcaption {
+ display: block;
+ font-weight: normal; }
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ margin-bottom: 1.4em;
+ width: 100%;
+ font-size: 0.875em;
+ /* 14 / 16 = .875 */ }
+
+th {
+ font-weight: bold;
+ padding: 0.25em 10px 0.25em 5px; }
+
+td, caption {
+ padding: 0.25em 10px 0.25em 5px; }
+
+tfoot {
+ font-style: italic; }
+
+caption {
+ background-color: transparent; }
+
+.clearfix {
+ zoom: 1; }
+ .clearfix:before, .clearfix:after {
+ content: "\0020";
+ display: block;
+ height: 0;
+ overflow: hidden; }
+ .clearfix:after {
+ clear: both; }
+
+.hide {
+ display: none; }
+
+body {
+ -webkit-text-size-adjust: 100%;
+ -ms-text-size-adjust: 100%; }
+
+a:link {
+ -webkit-tap-highlight-color: #349edb; }
+
+::-webkit-selection {
+ background: #1777af;
+ color: #fafafa;
+ text-shadow: none; }
+
+::-moz-selection {
+ background: #1777af;
+ color: #fafafa;
+ text-shadow: none; }
+
+::selection {
+ background: #1777af;
+ color: #fafafa;
+ text-shadow: none; }
+
+.ie7 img, .iem7 img {
+ -ms-interpolation-mode: bicubic; }
+
+header[role="banner"] {
+ margin: 0 auto;
+ text-align: center; }
+ header[role="banner"] h1 {
+ background: url("../img/tree.png") 0 0 no-repeat;
+ text-indent: -9999px;
+ width: 151px;
+ height: 84px;
+ margin: 0 auto; }
+ header[role="banner"] h2 {
+ background: url("../img/text-centered.png") 0 0 no-repeat;
+ text-indent: -9999px;
+ width: 184px;
+ height: 54px;
+ margin: 0 auto; }
+
+nav[role="navigation"], footer[role="contentinfo"] nav {
+ margin: 1em auto;
+ border-top: 1px #201a11 dotted;
+ border-bottom: 1px #201a11 dotted;
+ padding: 0.5em;
+ text-align: center; }
+ nav[role="navigation"] ul, footer[role="contentinfo"] nav ul {
+ margin: 0.25em 0 0.25em -30px; }
+ nav[role="navigation"] li, footer[role="contentinfo"] nav li {
+ display: inline;
+ margin: 0 0.125em; }
+
+#breadcrumbs {
+ text-align: center; }
+ #breadcrumbs li {
+ display: inline; }
+
+img {
+ width: 95%;
+ height: auto; }
+
+.postpic, .postpicright {
+ display: block;
+ width: auto; }
+
+object, embed {
+ width: 100%; }
+
+.postpic {
+ float: left;
+ margin: 0.3em 10px 10px 0; }
+
+.postpicright {
+ float: right;
+ margin: 0.3em 0 10px 10px; }
+
+.postpicleft {
+ float: left;
+ margin: 5px; }
+
+.picfull {
+ margin-top: 20px; }
+
+.picwide {
+ clear: both;
+ margin: 1em 0; }
+
+.figure {
+ position: relative; }
+ .figure .legend {
+ display: block;
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
+ filter: alpha(opacity=90);
+ -moz-opacity: 0.9;
+ -khtml-opacity: 0.9;
+ opacity: 0.9;
+ position: absolute;
+ bottom: 10px;
+ left: 0;
+ font-size: 13px;
+ padding: 8px 0 8px 12px;
+ width: 95%;
+ background: #201a11;
+ color: #999999; }
+
+.dateline {
+ text-align: center; }
+
+.archive h1 {
+ font-size: 1.5em;
+ text-align: center; }
+.archive article {
+ padding-bottom: 1em;
+ border-bottom: 1px #ececec solid; }
+
+.home article {
+ border: none;
+ margin-bottom: 2em; }
+.home h1 {
+ font-size: 1.2em;
+ margin: 0;
+ text-align: center; }
+.home img {
+ float: left;
+ width: auto;
+ margin: 20px 8px 0 0; }
+.home .sh {
+ text-transform: uppercase;
+ font-weight: bold;
+ font-size: 0.75em;
+ margin: 2em 0; }
+
+#photo-galleries {
+ margin-top: 2em; }
+ #photo-galleries h1 {
+ font: 13px bold Hoefler Text, Georgia, Times New Roman, Times, serif;
+ color: white; }
+ #photo-galleries li {
+ margin: 10px 0 0 0; }
+
+.geo, article[role="main"] time {
+ margin: 0.5em 0;
+ display: block;
+ text-align: center; }
+
+article[role="main"] {
+ margin-top: 3em; }
+ article[role="main"] h1 {
+ text-align: center;
+ font-size: 1.5em; }
+ article[role="main"] p > a {
+ color: #b53a04; }
+ article[role="main"] p > a:hover {
+ text-decoration: underline; }
+
+.footnote {
+ border-top: 1px #201a11 dotted;
+ margin: 1.5em 0 0 0;
+ padding: 1em 0 0 0; }
+ .footnote p {
+ font-size: 0.875em !important;
+ line-height: 20px !important; }
+
+#page-navigation {
+ margin: 2em auto;
+ text-align: center;
+ display: table; }
+ #page-navigation ul {
+ margin: 0 auto;
+ width: 100%;
+ text-align: center;
+ padding: 0; }
+ #page-navigation li {
+ margin: 6px auto;
+ clear: both;
+ line-height: 24px;
+ text-align: center; }
+ #page-navigation span {
+ min-width: 70px;
+ display: block;
+ text-align: right;
+ margin-right: 10px;
+ margin-top: 2px;
+ float: left; }
+ #page-navigation a {
+ display: block;
+ float: left;
+ text-align: left;
+ font-style: italic; }
+
+#map-canvas {
+ border: 10px #201a11 solid;
+ width: 95%;
+ height: 300px; }
+
+.map-legend h4 {
+ font-size: 1em;
+ font-weight: bold;
+ margin: 1em 0 0.25em; }
+.map-legend li {
+ display: inline; }
+ .map-legend li:after {
+ content: ","; }
+
+.infowin h4 {
+ margin: 0 0 5px 0;
+ font-weight: normal; }
+.infowin .date {
+ text-transform: uppercase;
+ font-size: 11px;
+ letter-spacing: 1px; }
+.infowin p {
+ font-size: 1em; }
+
+footer[role="contentinfo"] {
+ margin-top: 2em; }
+
+nav:after, footer:before,
+footer:after, .archive article:after, #archive:after, article[role="main"] header:after, #map-canvas:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden; }
+
+.dark {
+ background: #201a11; }
+ .dark body {
+ color: #cccccc; }
+ .dark *:focus {
+ outline: #b53a04 dotted thin; }
+ .dark a {
+ color: #b53a04; }
+ .dark a:visited {
+ color: white;
+ text-decoration: none; }
+ .dark a:hover {
+ color: white;
+ text-decoration: none; }
+ .dark a:visited > :hover {
+ color: #b53a04; }
+ .dark img {
+ border: none; }
+ .dark header[role="banner"], .dark footer[role='contentinfo'] {
+ margin-bottom: 0.5em; }
+ .dark header[role="banner"] nav, .dark footer[role='contentinfo'] nav {
+ margin-bottom: 0; }
+ .dark header[role="banner"] a, .dark footer[role='contentinfo'] a {
+ color: white; }
+ .dark header[role="banner"] a:hover, .dark footer[role='contentinfo'] a:hover {
+ color: #b53a04; }
+ .dark header[role="banner"] a:visited, .dark footer[role='contentinfo'] a:visited {
+ color: white; }
+ .dark header[role="banner"] h1, .dark footer[role='contentinfo'] h1 {
+ background: url("../img/tree.png") left -84px no-repeat; }
+ .dark header[role="banner"] h2, .dark footer[role='contentinfo'] h2 {
+ background: url("../img/text-centered.png") 0 -60px no-repeat; }
+ .dark header[role="banner"] {
+ border-bottom: #cccccc 1px solid; }
+ .dark article[role="main"] .legend {
+ bottom: 0; }
+ .dark .park {
+ text-align: center;
+ position: relative; }
+ .dark .park h1 {
+ font-size: 1.5em;
+ margin-bottom: 5px; }
+ .dark .park h2 {
+ font-size: 1.125em;
+ margin: 0; }
+ .dark .park img {
+ width: 100%; }
+ .dark .park .legend {
+ position: relative; }
+ .dark .park .meta {
+ height: 0; }
+ .dark .park .buttons li {
+ margin: 5px;
+ display: inline;
+ text-transform: uppercase;
+ font: normal 0.5em Helvetica Neue, Helvetica, Verdana, sans-serif; }
+ .dark .park .map-container {
+ width: 469px;
+ height: 392px;
+ position: absolute;
+ right: 20px;
+ bottom: 60px;
+ z-index: 2000;
+ margin: 0;
+ padding: 0;
+ background: url("../img/mapbg-dark.png") no-repeat top left; }
+ .dark .park .map-wrapper {
+ width: 400px;
+ height: 328px;
+ margin: 37px 0 0 44px; }
+ .dark .park .more-container {
+ width: 405px;
+ height: 260px;
+ position: absolute;
+ right: -30px;
+ bottom: 40px;
+ z-index: 2000;
+ background: url("../img/parkbg.png") no-repeat top left;
+ font: normal 0.9em/25px Helvetica Neue, Helvetica, Verdana, sans-serif; }
+ .dark .park .more-container dl {
+ margin-top: 45px;
+ margin-left: 45px;
+ text-align: left; }
+ .dark .park .more-container dl dt, .dark .park .more-container dl dd {
+ margin: 4px 0;
+ color: white; }
+ .dark .park .more-container dl dt {
+ clear: left;
+ float: left;
+ width: 65px;
+ font-weight: bold;
+ line-height: 25px;
+ font-size: 0.7em;
+ text-transform: uppercase;
+ text-align: right;
+ margin-right: 8px; }
+ .dark .park .more-container dl dd {
+ float: left;
+ width: 250px;
+ overflow: hidden; }
+ .dark .park .more-container dl dd a:hover {
+ color: #b53a04; }
+
+.black {
+ background: #14100b;
+ color: #cccccc; }
+ .black *:focus {
+ outline: #b53a04 dotted thin; }
+ .black a {
+ text-decoration: none;
+ color: #b53a04; }
+ .black a:visited {
+ color: white;
+ text-decoration: none; }
+ .black a:hover {
+ color: white;
+ text-decoration: none; }
+ .black #breadcrumbs {
+ color: #cccccc; }
+ .black header[role="banner"] h1 {
+ background: url("../img/tree.png") left -168px no-repeat; }
+ .black header[role="banner"] h2 {
+ background: url("../img/text-centered.png") 0 -121px no-repeat; }
+ .black nav[role="navigation"] {
+ border-top: 1px #cccccc dotted;
+ border-bottom: 1px #cccccc dotted; }
+ .black .directions {
+ display: none; }
+ .black #slides {
+ width: 100%; }
+ .black h3 {
+ font-size: 1em;
+ margin: 0 0.5em; }
+ .black h6 {
+ display: none; }
+ .black #slides article {
+ clear: both;
+ margin: 20px 0; }
+ .black #slides img {
+ width: 100%;
+ border: none; }
+ .black .photo-options, .black .map-link {
+ display: none; }
+ .black .figcaption {
+ clear: both;
+ background: #1a1713;
+ -moz-border-radius: 0 0 0.5em 0.5em;
+ -webkit-border-radius: 0 0 0.5em 0.5em;
+ border-radius: 0 0 0.5em 0.5em;
+ color: white;
+ margin: -0.25em 0 0 0;
+ padding: 1em 0 1em 0;
+ z-index: 100; }
+ .black .caption {
+ width: 100%;
+ float: none; }
+ .black .caption p {
+ font: normal 0.75em Helvetica, Verdana, sans-serif;
+ margin: 0.5em 0 0 0.75em;
+ padding-bottom: 0.25em; }
+ .black footer[role='contentinfo'] nav {
+ border-top: #cccccc 1px dotted;
+ border-bottom: #cccccc 1px dotted; }
+ .black footer[role='contentinfo'] p {
+ color: #cccccc; }
+
+@media only screen and (min-width: 768px) {
+ header[role="banner"] {
+ margin-top: 2em;
+ height: 60px;
+ padding-bottom: 12px;
+ border-bottom: 1px solid #201a11;
+ margin-bottom: 2em; }
+ header[role="banner"] h1 {
+ float: left;
+ width: 160px;
+ margin-top: -12px; }
+ header[role="banner"] h2 {
+ background: url("../img/text.png") 0 0 no-repeat;
+ margin-top: 5px;
+ float: left; }
+ header[role="banner"] nav[role="navigation"] {
+ border: none;
+ float: left;
+ margin-left: 2em; }
+ header[role="banner"] nav[role="navigation"] ul {
+ margin-top: 14px; }
+
+ #breadcrumbs {
+ text-align: left; }
+
+ .archive article {
+ margin-bottom: 2em;
+ padding-bottom: 2em;
+ border: none; }
+ .archive h1, .archive p {
+ float: left;
+ text-align: left;
+ margin: 0; }
+ .archive p {
+ line-height: 1.25em; }
+ .archive h1 {
+ line-height: 2.4em;
+ margin-top: 0.15em;
+ width: 100%; }
+ .archive .dateline {
+ clear: left;
+ width: 38%; }
+ .archive .hyphenate {
+ text-align: justify;
+ width: 38%;
+ margin-top: 0.5em;
+ font-size: 1em; }
+ .archive time {
+ display: inline;
+ float: right; }
+ .archive img {
+ float: right;
+ width: 56%; }
+
+ .home article {
+ clear: both;
+ min-height: 300px; }
+ .home article h1 {
+ margin-top: 2em;
+ text-align: left; }
+ .home article .dateline {
+ text-align: left; }
+ .home article img {
+ margin-bottom: 2em;
+ margin-left: 2em;
+ float: right; }
+
+ #photo-galleries {
+ margin: 0 auto;
+ padding-left: 12px;
+ width: 100%; }
+ #photo-galleries img {
+ width: auto; }
+ #photo-galleries .legend {
+ width: 291px; }
+ #photo-galleries li {
+ float: left;
+ margin-right: 16px; }
+
+ #photo-galleries:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden; }
+
+ .single article {
+ width: 35.625em;
+ margin: 4em auto; }
+ .single article header {
+ width: 35.625em; }
+ .single article header h1 {
+ font-size: 2em;
+ text-align: left;
+ margin: 0 0 0.675em 0; }
+ .single article header aside, .single article header time {
+ text-align: left; }
+
+ #code article h1, #contact article h1 {
+ font-size: 2em;
+ text-align: left;
+ margin: 0 0 0.675em 0; }
+
+ .drop {
+ font-size: 4.8em;
+ padding: 35px 10px 5px 0; }
+
+ .col {
+ float: left;
+ width: 38%;
+ margin-right: 2em; }
+
+ .two {
+ width: 53%; }
+
+ .top {
+ margin-bottom: 2em;
+ font-size: 0.875em;
+ padding-bottom: 2em;
+ border-bottom: #e3e3e3 1px solid; }
+
+ .top:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden; }
+
+ .double article[role="main"] header {
+ width: 9em;
+ float: left;
+ margin-left: 0; }
+ .double article[role="main"] header h1, .double article[role="main"] header aside {
+ text-align: right;
+ line-height: 1.1em;
+ margin-top: 16px; }
+ .double article[role="main"] header h1 {
+ font-size: 1.875em; }
+ .double article[role="main"] header time {
+ display: block;
+ text-align: right; }
+ .double article[role="main"] .col {
+ margin-left: 1.25em;
+ width: 34%; }
+ .double article[role="main"] .sec {
+ margin-right: 0;
+ margin-left: 1em; }
+ .double article[role="main"] .narrow {
+ width: 35.625em;
+ margin: 0 auto; }
+
+ .post-body-single .legend {
+ width: 98%; }
+
+ .post-body-single p:first-of-type {
+ font-size: 1.25em;
+ line-height: 28px; }
+
+ #about .post-body-single p:nth-of-type(1) {
+ font-size: 1.063em; }
+
+ .addendum {
+ line-height: 25px; }
+ .addendum dt {
+ margin-left: -30px;
+ font-style: italic;
+ padding-left: 30px;
+ text-indent: -30px;
+ margin-bottom: 0.5em; }
+ .addendum dd {
+ margin-left: 0; }
+
+ h4.notes {
+ text-transform: uppercase;
+ font-size: 1em; }
+
+ .pullquote {
+ width: 10em;
+ margin: 0 1em 1em -2em;
+ font-style: italic;
+ font-size: 1.3em;
+ float: left;
+ line-height: 1.6em; }
+
+ .numeral {
+ display: block;
+ font: bold 1.2em Helvetica, Verdana, sans-serif;
+ margin-bottom: 0;
+ margin-top: 60px; }
+
+ .post-body-single h3 {
+ font-size: 1.6em;
+ line-height: 1.2em;
+ font-weight: normal; }
+
+ #map-canvas {
+ height: 400px; }
+
+ #about img {
+ width: auto;
+ clear: both; }
+
+ footer[role="contentinfo"] {
+ font-size: 110%; }
+ footer[role="contentinfo"] nav {
+ border: none; }
+ footer[role="contentinfo"] nav li {
+ margin: 0 0.5em; }
+
+ .dark header[role="banner"] h2 {
+ background: url("../img/text.png") 0 -61px no-repeat; }
+ .dark .park {
+ position: relative;
+ display: block;
+ margin: 2em 0 2em 0; }
+ .dark .park h1 {
+ display: block;
+ position: absolute;
+ top: 0px;
+ background: #201a11;
+ z-index: 1000;
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
+ filter: alpha(opacity=90);
+ -moz-opacity: 0.9;
+ -khtml-opacity: 0.9;
+ opacity: 0.9;
+ color: white;
+ margin: 0;
+ width: 100%;
+ text-align: left;
+ line-height: 2em;
+ font-size: 2em;
+ padding-left: 0.25em; }
+ .dark .park .figure {
+ position: relative;
+ border: none; }
+ .dark .park .legend {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ margin: 0;
+ background: #201a11;
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
+ filter: alpha(opacity=90);
+ -moz-opacity: 0.9;
+ -khtml-opacity: 0.9;
+ opacity: 0.9; }
+ .dark .park .legend h2 {
+ font: normal 1.2em/2.6 Helvetica, Verdana, sans-serif;
+ color: white;
+ margin: 0 0 0 1em;
+ float: left;
+ padding: 0.3em 0; }
+ .dark .park .legend:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden; }
+ .dark .park .buttons {
+ margin: 0.5em 10px 0 0;
+ line-height: 2.6em;
+ float: right; }
+ .dark .park .buttons li {
+ margin: 0 0.25em;
+ font-size: 10px; }
+ .dark .park .buttons a {
+ font-weight: bold;
+ padding: 0.875em 1.75em 0.75em;
+ background: #463215;
+ color: white;
+ -moz-border-radius: 25px;
+ -webkit-border-radius: 25px;
+ border-radius: 25px; }
+ .dark .park .buttons a:hover {
+ background: #b53a04; }
+
+ .black header[role="banner"] {
+ border-bottom: 1px #cccccc solid; }
+ .black header[role="banner"] h2 {
+ background: url("../img/text.png") 0 -121px no-repeat; }
+ .black h6 {
+ display: block;
+ text-align: center;
+ text-transform: uppercase;
+ font-size: 0.625em;
+ margin: 0 0 1.25em 0; }
+ .black h6 a {
+ color: #b5b5b5; }
+ .black h6 a:hover {
+ color: #b53a04; }
+ .black #slides article {
+ position: relative; }
+ .black #slides img {
+ display: block;
+ margin: 0 auto; }
+ .black #slides .v {
+ width: auto; }
+ .black .photo-options, .black .map-link {
+ display: block; }
+ .black .figcaption {
+ margin: 0;
+ padding: 1em 0 1em 0; }
+ .black .figcaption h3 {
+ float: left;
+ padding: 0;
+ font-weight: normal; }
+ .black .figcaption .caption {
+ border-right: 1px solid #1f1f21;
+ width: 58%;
+ float: left;
+ padding-right: 1em; }
+ .black .figcaption .caption p {
+ margin-left: 0.5em;
+ font-size: 0.875em;
+ clear: both; }
+ .black .figcaption .map-link {
+ float: right;
+ background: #211d19;
+ line-height: 1em;
+ color: white;
+ text-align: center;
+ text-transform: uppercase;
+ margin: 0 0.25em;
+ font: normal 0.75em Helvetica, Verdana, sans-serif;
+ padding: 0.5em 1em;
+ -moz-border-radius: 1em;
+ -webkit-border-radius: 1em;
+ border-radius: 1em; }
+ .black .figcaption .map-link:hover {
+ background: #b53a04; }
+ .black .figcaption .photo-options {
+ float: left;
+ margin-left: 1em; }
+ .black .figcaption .photo-options p {
+ font: normal 0.75em Helvetica, Verdana, sans-serif;
+ color: #414144;
+ line-height: 1.5em; }
+ .black .figcaption .photo-options p a {
+ color: #414144;
+ font-weight: normal; }
+ .black .figcaption .photo-options p a:hover {
+ color: #b53a04; }
+ .black .figcaption li {
+ display: inline;
+ margin: 0 0.25em;
+ font: normal 1em Helvetica, Verdana, sans-serif; }
+ .black .figcaption a {
+ font-weight: bold; }
+ .black .figcaption p {
+ margin: 0 1em;
+ color: #74757a;
+ font-size: 1em; }
+ .black .figcaption:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden; }
+ .black .map-container {
+ width: 469px;
+ height: 392px;
+ position: absolute;
+ bottom: 100px;
+ left: 20px;
+ z-index: 2000;
+ margin: 0;
+ padding: 0;
+ background: url("../img/mapbg.png") no-repeat top left; }
+ .black .map-wrapper {
+ width: 400px;
+ height: 328px;
+ position: absolute;
+ bottom: 27px;
+ margin: 0px 0 0 44px; }
+ .black footer[role='contentinfo'] nav {
+ border: none; } }
+@media only screen and (min-width: 992px) {
+ body {
+ width: 61.75em; }
+
+ img {
+ width: auto !important; }
+
+ header[role="banner"] {
+ margin-top: 5.5em; }
+ header[role="banner"] h1 {
+ width: 190px; }
+ header[role="banner"] nav[role="navigation"] {
+ margin-left: 8%; }
+
+ .archive {
+ padding-top: 2em; }
+ .archive article {
+ margin-bottom: 2em;
+ padding-bottom: 2em;
+ border: none; }
+ .archive h1 {
+ width: 42%;
+ font-size: 1.5em;
+ line-height: 1.3em;
+ margin-top: 0.15em;
+ margin-bottom: 0.25em;
+ letter-spacing: 0.5px; }
+ .archive p {
+ line-height: 1.5em; }
+ .archive img {
+ float: right; }
+ .archive .hyphenate, .archive .dateline {
+ width: 41%; }
+ .archive .hyphenate {
+ font-size: 1em; }
+
+ .single article {
+ margin-left: 20%; }
+
+ .picwide {
+ clear: both;
+ margin: 30px 0 30px -200px; }
+
+ .pullquote {
+ margin-left: -6em; }
+
+ #page-navigation {
+ margin-left: auto;
+ margin-right: auto; }
+
+ .home .sh {
+ text-align: left; }
+ .home article {
+ width: 19em;
+ float: left;
+ margin-right: 2em;
+ clear: none; }
+ .home .last {
+ margin-right: 0; }
+ .home .post-image {
+ float: left;
+ margin: 20px 8px 8px 0; }
+ .home .hyphenate, .home .dateline {
+ width: auto;
+ text-align: left; }
+ .home .hyphenate {
+ text-align: justify; }
+
+ .double article[role="main"] header {
+ width: 10em;
+ float: left;
+ margin-left: 0;
+ margin-top: 1em; }
+ .double article[role="main"] header h1, .double article[role="main"] header aside {
+ text-align: right;
+ line-height: 1.2em; }
+ .double article[role="main"] header h1 {
+ font-size: 1.875em; }
+ .double article[role="main"] .col {
+ width: 47%;
+ margin-left: 0.875em; }
+ .double article[role="main"] .sec {
+ margin-left: 0; }
+ .double article[role="main"] .post-body-double {
+ margin: 2em 0 0 1.25em;
+ float: left;
+ width: 48.75em; }
+ .double article[role="main"] .post-body-double p {
+ margin: 0 0 1em 0; }
+ .double article[role="main"] .post-body-double .narrow {
+ width: 35.625em;
+ margin-bottom: 1em;
+ clear: both;
+ margin-left: 1em; }
+ .double article[role="main"] .post-body-double .hyphenate {
+ margin-top: 0; }
+
+ #map-canvas {
+ width: 48.5em;
+ height: 31.25em;
+ float: right;
+ margin-bottom: 3em; }
+
+ .map-legend ul {
+ margin-bottom: 1em; }
+ .map-legend h4 {
+ margin-bottom: 0.3em;
+ letter-spacing: 1px;
+ font-size: 0.75em;
+ text-transform: uppercase; }
+ .map-legend li {
+ display: block;
+ font-size: 0.875em;
+ margin: 2px 0; }
+ .map-legend li:after {
+ content: ""; }
+
+ .two {
+ margin-left: 3em;
+ width: 51%; }
+
+ .black #slides {
+ width: 62.5em; }
+ .black #slides img {
+ width: auto; }
+ .black .directions {
+ display: block;
+ font: normal 0.675em Helvetica, Verdana, sans-serif;
+ color: #414144;
+ text-align: center;
+ margin-bottom: 1.75em; }
+ .black .caption {
+ width: 70% !important; }
+ .black .map-container {
+ margin-left: 17em; }
+
+ .guide .intro {
+ margin-bottom: 2.5em; }
+ .guide .formatted {
+ column-count: 3;
+ column-gap: 1.5em;
+ -moz-column-count: 3;
+ -moz-column-gap: 24px;
+ -webkit-column-count: 3;
+ -webkit-column-gap: 1.5em; }
+ .guide img {
+ border: 8px #201a11 solid; }
+ .guide .date, .guide .meta {
+ float: left; }
+ .guide .meta {
+ line-height: 18px; }
+ .guide .tags {
+ margin: 20px 0 10px 0; }
+ .guide .guide-dek {
+ padding: 0;
+ width: 610px;
+ float: right; }
+ .guide .guide-dek h1 {
+ margin: 0 !important; }
+ .guide article:after, .guide .intro:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden; } }
+.leaflet-map-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-pane, .leaflet-tile-container, .leaflet-overlay-pane, .leaflet-shadow-pane, .leaflet-marker-pane, .leaflet-popup-pane, .leaflet-overlay-pane svg, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer {
+ position: absolute;
+ left: 0;
+ top: 0; }
+
+.leaflet-container {
+ overflow: hidden;
+ -ms-touch-action: none; }
+
+.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+ -webkit-user-drag: none; }
+
+.leaflet-marker-icon, .leaflet-marker-shadow {
+ display: block; }
+
+.leaflet-container img {
+ max-width: none !important; }
+
+.leaflet-container img.leaflet-image-layer {
+ max-width: 15000px !important; }
+
+.leaflet-tile {
+ filter: inherit;
+ visibility: hidden; }
+
+.leaflet-tile-loaded {
+ visibility: inherit; }
+
+.leaflet-zoom-box {
+ width: 0;
+ height: 0; }
+
+.leaflet-overlay-pane svg {
+ -moz-user-select: none; }
+
+.leaflet-tile-pane {
+ z-index: 2; }
+
+.leaflet-objects-pane {
+ z-index: 3; }
+
+.leaflet-overlay-pane {
+ z-index: 4; }
+
+.leaflet-shadow-pane {
+ z-index: 5; }
+
+.leaflet-marker-pane {
+ z-index: 6; }
+
+.leaflet-popup-pane {
+ z-index: 7; }
+
+.leaflet-vml-shape {
+ width: 1px;
+ height: 1px; }
+
+.lvml {
+ behavior: url(#default#VML);
+ display: inline-block;
+ position: absolute; }
+
+.leaflet-control {
+ position: relative;
+ z-index: 7;
+ pointer-events: auto; }
+
+.leaflet-top, .leaflet-bottom {
+ position: absolute;
+ z-index: 1000;
+ pointer-events: none; }
+
+.leaflet-top {
+ top: 0; }
+
+.leaflet-right {
+ right: 0; }
+
+.leaflet-bottom {
+ bottom: 0; }
+
+.leaflet-left {
+ left: 0; }
+
+.leaflet-control {
+ float: left;
+ clear: both; }
+
+.leaflet-right .leaflet-control {
+ float: right; }
+
+.leaflet-top .leaflet-control {
+ margin-top: 10px; }
+
+.leaflet-bottom .leaflet-control {
+ margin-bottom: 10px; }
+
+.leaflet-left .leaflet-control {
+ margin-left: 10px; }
+
+.leaflet-right .leaflet-control {
+ margin-right: 10px; }
+
+.leaflet-fade-anim .leaflet-tile, .leaflet-fade-anim .leaflet-popup {
+ opacity: 0;
+ -webkit-transition: opacity .2s linear;
+ -moz-transition: opacity .2s linear;
+ -o-transition: opacity .2s linear;
+ transition: opacity .2s linear; }
+
+.leaflet-fade-anim .leaflet-tile-loaded, .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
+ opacity: 1; }
+
+.leaflet-zoom-anim .leaflet-zoom-animated {
+ -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
+ -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
+ -o-transition: -o-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
+ transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1); }
+
+.leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile, .leaflet-touching .leaflet-zoom-animated {
+ -webkit-transition: none;
+ -moz-transition: none;
+ -o-transition: none;
+ transition: none; }
+
+.leaflet-zoom-anim .leaflet-zoom-hide {
+ visibility: hidden; }
+
+.leaflet-clickable {
+ cursor: pointer; }
+
+.leaflet-container {
+ cursor: -webkit-grab;
+ cursor: -moz-grab; }
+
+.leaflet-popup-pane, .leaflet-control {
+ cursor: auto; }
+
+.leaflet-dragging .leaflet-container, .leaflet-dragging .leaflet-clickable {
+ cursor: move;
+ cursor: -webkit-grabbing;
+ cursor: -moz-grabbing; }
+
+.leaflet-container {
+ background: #ddd;
+ outline: 0; }
+
+.leaflet-container a {
+ color: #0078A8; }
+
+.leaflet-container a.leaflet-active {
+ outline: 2px solid orange; }
+
+.leaflet-zoom-box {
+ border: 2px dotted #38f;
+ background: rgba(255, 255, 255, 0.5); }
+
+.leaflet-container {
+ font: 12px/1.5 "Helvetica Neue",Arial,Helvetica,sans-serif; }
+
+.leaflet-bar {
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
+ border-radius: 4px; }
+
+.leaflet-bar a, .leaflet-bar a:hover {
+ background-color: #fff;
+ border-bottom: 1px solid #ccc;
+ width: 26px;
+ height: 26px;
+ line-height: 26px;
+ display: block;
+ text-align: center;
+ text-decoration: none;
+ color: black; }
+
+.leaflet-bar a, .leaflet-control-layers-toggle {
+ background-position: 50% 50%;
+ background-repeat: no-repeat;
+ display: block; }
+
+.leaflet-bar a:hover {
+ background-color: #f4f4f4; }
+
+.leaflet-bar a:first-child {
+ border-top-left-radius: 4px;
+ border-top-right-radius: 4px; }
+
+.leaflet-bar a:last-child {
+ border-bottom-left-radius: 4px;
+ border-bottom-right-radius: 4px;
+ border-bottom: none; }
+
+.leaflet-bar a.leaflet-disabled {
+ cursor: default;
+ background-color: #f4f4f4;
+ color: #bbb; }
+
+.leaflet-touch .leaflet-bar a {
+ width: 30px;
+ height: 30px;
+ line-height: 30px; }
+
+.leaflet-control-zoom-in, .leaflet-control-zoom-out {
+ font: bold 18px 'Lucida Console',Monaco,monospace;
+ text-indent: 1px; }
+
+.leaflet-control-zoom-out {
+ font-size: 20px; }
+
+.leaflet-touch .leaflet-control-zoom-in {
+ font-size: 22px; }
+
+.leaflet-touch .leaflet-control-zoom-out {
+ font-size: 24px; }
+
+.leaflet-control-layers {
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
+ background: #fff;
+ border-radius: 5px; }
+
+.leaflet-control-layers-toggle {
+ background-image: url(images/layers.png);
+ width: 36px;
+ height: 36px; }
+
+.leaflet-retina .leaflet-control-layers-toggle {
+ background-image: url(images/layers-2x.png);
+ background-size: 26px 26px; }
+
+.leaflet-touch .leaflet-control-layers-toggle {
+ width: 44px;
+ height: 44px; }
+
+.leaflet-control-layers .leaflet-control-layers-list, .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
+ display: none; }
+
+.leaflet-control-layers-expanded .leaflet-control-layers-list {
+ display: block;
+ position: relative; }
+
+.leaflet-control-layers-expanded {
+ padding: 6px 10px 6px 6px;
+ color: #333;
+ background: #fff; }
+
+.leaflet-control-layers-selector {
+ margin-top: 2px;
+ position: relative;
+ top: 1px; }
+
+.leaflet-control-layers label {
+ display: block; }
+
+.leaflet-control-layers-separator {
+ height: 0;
+ border-top: 1px solid #ddd;
+ margin: 5px -10px 5px -6px; }
+
+.leaflet-container .leaflet-control-attribution {
+ background: #fff;
+ background: rgba(255, 255, 255, 0.7);
+ margin: 0; }
+
+.leaflet-control-attribution, .leaflet-control-scale-line {
+ padding: 0 5px;
+ color: #333; }
+
+.leaflet-control-attribution a {
+ text-decoration: none; }
+
+.leaflet-control-attribution a:hover {
+ text-decoration: underline; }
+
+.leaflet-container .leaflet-control-attribution, .leaflet-container .leaflet-control-scale {
+ font-size: 11px; }
+
+.leaflet-left .leaflet-control-scale {
+ margin-left: 5px; }
+
+.leaflet-bottom .leaflet-control-scale {
+ margin-bottom: 5px; }
+
+.leaflet-control-scale-line {
+ border: 2px solid #777;
+ border-top: none;
+ line-height: 1.1;
+ padding: 2px 5px 1px;
+ font-size: 11px;
+ white-space: nowrap;
+ overflow: hidden;
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
+ background: #fff;
+ background: rgba(255, 255, 255, 0.5); }
+
+.leaflet-control-scale-line:not(:first-child) {
+ border-top: 2px solid #777;
+ border-bottom: none;
+ margin-top: -2px; }
+
+.leaflet-control-scale-line:not(:first-child):not(:last-child) {
+ border-bottom: 2px solid #777; }
+
+.leaflet-touch .leaflet-control-attribution, .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
+ box-shadow: none; }
+
+.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
+ border: 2px solid rgba(0, 0, 0, 0.2);
+ background-clip: padding-box; }
+
+.leaflet-popup {
+ position: absolute;
+ text-align: center; }
+
+.leaflet-popup-content-wrapper {
+ padding: 1px;
+ text-align: left;
+ border-radius: 12px; }
+
+.leaflet-popup-content {
+ margin: 13px 19px;
+ line-height: 1.4; }
+
+.leaflet-popup-content p {
+ margin: 18px 0; }
+
+.leaflet-popup-tip-container {
+ margin: 0 auto;
+ width: 40px;
+ height: 20px;
+ position: relative;
+ overflow: hidden; }
+
+.leaflet-popup-tip {
+ width: 17px;
+ height: 17px;
+ padding: 1px;
+ margin: -10px auto 0;
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg); }
+
+.leaflet-popup-content-wrapper, .leaflet-popup-tip {
+ background: white;
+ box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4); }
+
+.leaflet-container a.leaflet-popup-close-button {
+ position: absolute;
+ top: 0;
+ right: 0;
+ padding: 4px 4px 0 0;
+ text-align: center;
+ width: 18px;
+ height: 14px;
+ font: 16px/14px Tahoma,Verdana,sans-serif;
+ color: #c3c3c3;
+ text-decoration: none;
+ font-weight: 700;
+ background: transparent; }
+
+.leaflet-container a.leaflet-popup-close-button:hover {
+ color: #999; }
+
+.leaflet-popup-scrolled {
+ overflow: auto;
+ border-bottom: 1px solid #ddd;
+ border-top: 1px solid #ddd; }
+
+.leaflet-oldie .leaflet-popup-content-wrapper {
+ zoom: 1; }
+
+.leaflet-oldie .leaflet-popup-tip {
+ width: 24px;
+ margin: 0 auto;
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678)";
+ filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678); }
+
+.leaflet-oldie .leaflet-popup-tip-container {
+ margin-top: -1px; }
+
+.leaflet-oldie .leaflet-control-zoom, .leaflet-oldie .leaflet-control-layers, .leaflet-oldie .leaflet-popup-content-wrapper, .leaflet-oldie .leaflet-popup-tip {
+ border: 1px solid #999; }
+
+.leaflet-div-icon {
+ background: #fff;
+ border: 1px solid #666; }
+
+@media print {
+ * {
+ background: transparent !important;
+ color: black !important;
+ text-shadow: none !important;
+ filter: none !important;
+ -ms-filter: none !important; }
+
+ a {
+ color: #444444 !important;
+ text-decoration: underline; }
+ a:visited {
+ color: #444444 !important;
+ text-decoration: underline; }
+ a[href]:after {
+ content: " (" attr(href) ")"; }
+
+ abbr[title]:after {
+ content: " (" attr(title) ")"; }
+
+ a[href^="javascript:"]:after, a[href^="#"]:after {
+ content: ""; }
+
+ pre, blockquote {
+ border: 1px solid #999999;
+ page-break-inside: avoid; }
+
+ thead {
+ display: table-header-group; }
+
+ tr, img {
+ page-break-inside: avoid; }
+
+ @page {
+ margin: 0.5cm; }
+ p, h2, h3 {
+ orphans: 3;
+ widows: 3; }
+
+ h2, h3 {
+ page-break-after: avoid; } }
+
+/*# sourceMappingURL=stylesv6.css.map */
diff --git a/site/media/js/natparks.js b/site/media/js/natparks.js
index 4b1d4c9..aba074d 100644
--- a/site/media/js/natparks.js
+++ b/site/media/js/natparks.js
@@ -1,91 +1,518 @@
+(function () {
+ 'use strict';
+
+ L.TileLayer.Provider = L.TileLayer.extend({
+ initialize: function (arg, options) {
+ var providers = L.TileLayer.Provider.providers;
+
+ var parts = arg.split('.');
+
+ var providerName = parts[0];
+ var variantName = parts[1];
+
+ if (!providers[providerName]) {
+ throw 'No such provider (' + providerName + ')';
+ }
+
+ var provider = {
+ url: providers[providerName].url,
+ options: providers[providerName].options
+ };
+
+ // overwrite values in provider from variant.
+ if (variantName && 'variants' in providers[providerName]) {
+ if (!(variantName in providers[providerName].variants)) {
+ throw 'No such variant of ' + providerName + ' (' + variantName + ')';
+ }
+ var variant = providers[providerName].variants[variantName];
+ var variantOptions;
+ if (typeof variant === 'string') {
+ variantOptions = {
+ variant: variant
+ };
+ } else {
+ variantOptions = variant.options;
+ }
+ provider = {
+ url: variant.url || provider.url,
+ options: L.Util.extend({}, provider.options, variantOptions)
+ };
+ } else if (typeof provider.url === 'function') {
+ provider.url = provider.url(parts.splice(1, parts.length - 1).join('.'));
+ }
+
+ // replace attribution placeholders with their values from toplevel provider attribution,
+ // recursively
+ var attributionReplacer = function (attr) {
+ if (attr.indexOf('{attribution.') === -1) {
+ return attr;
+ }
+ return attr.replace(/\{attribution.(\w*)\}/,
+ function (match, attributionName) {
+ return attributionReplacer(providers[attributionName].options.attribution);
+ }
+ );
+ };
+ provider.options.attribution = attributionReplacer(provider.options.attribution);
+
+ // Compute final options combining provider options with any user overrides
+ var layerOpts = L.Util.extend({}, provider.options, options);
+ L.TileLayer.prototype.initialize.call(this, provider.url, layerOpts);
+ }
+ });
+
+ /**
+ * Definition of providers.
+ * see http://leafletjs.com/reference.html#tilelayer for options in the options map.
+ */
+
+ //jshint maxlen:220
+ L.TileLayer.Provider.providers = {
+ OpenStreetMap: {
+ url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
+ options: {
+ attribution:
+ '&copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
+ '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
+ },
+ variants: {
+ Mapnik: {},
+ BlackAndWhite: {
+ url: 'http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png'
+ },
+ DE: {
+ url: 'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png'
+ },
+ HOT: {
+ url: 'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',
+ options: {
+ attribution: '{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'
+ }
+ }
+ }
+ },
+ OpenSeaMap: {
+ url: 'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',
+ options: {
+ attribution: 'Map data: &copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'
+ }
+ },
+ Thunderforest: {
+ url: 'http://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png',
+ options: {
+ attribution:
+ '&copy; <a href="http://www.opencyclemap.org">OpenCycleMap</a>, {attribution.OpenStreetMap}',
+ variant: 'cycle'
+ },
+ variants: {
+ OpenCycleMap: 'cycle',
+ Transport: 'transport',
+ Landscape: 'landscape',
+ Outdoors: 'outdoors'
+ }
+ },
+ OpenMapSurfer: {
+ url: 'http://openmapsurfer.uni-hd.de/tiles/{variant}/x={x}&y={y}&z={z}',
+ options: {
+ minZoom: 0,
+ maxZoom: 20,
+ variant: 'roads',
+ attribution: 'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> &mdash; Map data {attribution.OpenStreetMap}'
+ },
+ variants: {
+ Roads: 'roads',
+ AdminBounds: {
+ options: {
+ variant: 'adminb',
+ maxZoom: 19
+ }
+ },
+ Grayscale: {
+ options: {
+ variant: 'roadsg',
+ maxZoom: 19
+ }
+ }
+ }
+ },
+ MapQuestOpen: {
+ url: 'http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg',
+ options: {
+ attribution:
+ 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; ' +
+ 'Map data {attribution.OpenStreetMap}',
+ subdomains: '1234'
+ },
+ variants: {
+ OSM: {},
+ Aerial: {
+ url: 'http://oatile{s}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg',
+ options: {
+ attribution:
+ 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; ' +
+ 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'
+ }
+ }
+ }
+ },
+ MapBox: {
+ url: function (id) {
+ return 'http://{s}.tiles.mapbox.com/v3/' + id + '/{z}/{x}/{y}.png';
+ },
+ options: {
+ attribution:
+ 'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> &mdash; ' +
+ 'Map data {attribution.OpenStreetMap}',
+ subdomains: 'abcd'
+ }
+ },
+ Stamen: {
+ url: 'http://{s}.tile.stamen.com/{variant}/{z}/{x}/{y}.png',
+ options: {
+ attribution:
+ 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, ' +
+ '<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; ' +
+ 'Map data {attribution.OpenStreetMap}',
+ subdomains: 'abcd',
+ minZoom: 0,
+ maxZoom: 20,
+ variant: 'toner'
+ },
+ variants: {
+ Toner: 'toner',
+ TonerBackground: 'toner-background',
+ TonerHybrid: 'toner-hybrid',
+ TonerLines: 'toner-lines',
+ TonerLabels: 'toner-labels',
+ TonerLite: 'toner-lite',
+ Terrain: {
+ options: {
+ variant: 'terrain',
+ minZoom: 4,
+ maxZoom: 18
+ }
+ },
+ TerrainBackground: {
+ options: {
+ variant: 'terrain-background',
+ minZoom: 4,
+ maxZoom: 18
+ }
+ },
+ Watercolor: {
+ options: {
+ variant: 'watercolor',
+ minZoom: 3,
+ maxZoom: 16
+ }
+ }
+ }
+ },
+ Esri: {
+ url: 'https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}',
+ options: {
+ variant: 'World_Street_Map',
+ attribution: 'Tiles &copy; Esri'
+ },
+ variants: {
+ WorldStreetMap: {
+ options: {
+ attribution:
+ '{attribution.Esri} &mdash; ' +
+ 'Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012'
+ }
+ },
+ DeLorme: {
+ options: {
+ variant: 'Specialty/DeLorme_World_Base_Map',
+ minZoom: 1,
+ maxZoom: 11,
+ attribution: '{attribution.Esri} &mdash; Copyright: &copy;2012 DeLorme'
+ }
+ },
+ WorldTopoMap: {
+ options: {
+ variant: 'World_Topo_Map',
+ attribution:
+ '{attribution.Esri} &mdash; ' +
+ 'Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community'
+ }
+ },
+ WorldImagery: {
+ options: {
+ variant: 'World_Imagery',
+ attribution:
+ '{attribution.Esri} &mdash; ' +
+ 'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
+ }
+ },
+ WorldTerrain: {
+ options: {
+ variant: 'World_Terrain_Base',
+ maxZoom: 13,
+ attribution:
+ '{attribution.Esri} &mdash; ' +
+ 'Source: USGS, Esri, TANA, DeLorme, and NPS'
+ }
+ },
+ WorldShadedRelief: {
+ options: {
+ variant: 'World_Shaded_Relief',
+ maxZoom: 13,
+ attribution: '{attribution.Esri} &mdash; Source: Esri'
+ }
+ },
+ WorldPhysical: {
+ options: {
+ variant: 'World_Physical_Map',
+ maxZoom: 8,
+ attribution: '{attribution.Esri} &mdash; Source: US National Park Service'
+ }
+ },
+ OceanBasemap: {
+ options: {
+ variant: 'Ocean_Basemap',
+ maxZoom: 13,
+ attribution: '{attribution.Esri} &mdash; Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri'
+ }
+ },
+ NatGeoWorldMap: {
+ options: {
+ variant: 'NatGeo_World_Map',
+ maxZoom: 16,
+ attribution: '{attribution.Esri} &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC'
+ }
+ },
+ WorldGrayCanvas: {
+ options: {
+ variant: 'Canvas/World_Light_Gray_Base',
+ maxZoom: 16,
+ attribution: '{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ'
+ }
+ }
+ }
+ },
+ OpenWeatherMap: {
+ url: 'http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png',
+ options: {
+ attribution: 'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>',
+ opacity: 0.5
+ },
+ variants: {
+ Clouds: 'clouds',
+ CloudsClassic: 'clouds_cls',
+ Precipitation: 'precipitation',
+ PrecipitationClassic: 'precipitation_cls',
+ Rain: 'rain',
+ RainClassic: 'rain_cls',
+ Pressure: 'pressure',
+ PressureContour: 'pressure_cntr',
+ Wind: 'wind',
+ Temperature: 'temp',
+ Snow: 'snow'
+ }
+ },
+ HERE: {
+ /*
+ * HERE maps, formerly Nokia maps.
+ * These basemaps are free, but you need an API key. Please sign up at
+ * http://developer.here.com/getting-started
+ *
+ * Note that the base urls contain '.cit' whichs is HERE's
+ * 'Customer Integration Testing' environment. Please remove for production
+ * envirionments.
+ */
+ url:
+ 'http://{s}.{base}.maps.cit.api.here.com/maptile/2.1/' +
+ 'maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?' +
+ 'app_id={app_id}&app_code={app_code}',
+ options: {
+ attribution:
+ 'Map &copy; 1987-2014 <a href="http://developer.here.com">HERE</a>',
+ subdomains: '1234',
+ mapID: 'newest',
+ 'app_id': '<insert your app_id here>',
+ 'app_code': '<insert your app_code here>',
+ base: 'base',
+ variant: 'normal.day',
+ minZoom: 0,
+ maxZoom: 20
+ },
+ variants: {
+ normalDay: 'normal.day',
+ normalDayCustom: 'normal.day.custom',
+ normalDayGrey: 'normal.day.grey',
+ normalDayMobile: 'normal.day.mobile',
+ normalDayGreyMobile: 'normal.day.grey.mobile',
+ normalDayTransit: 'normal.day.transit',
+ normalDayTransitMobile: 'normal.day.transit.mobile',
+ normalNight: 'normal.night',
+ normalNightMobile: 'normal.night.mobile',
+ normalNightGrey: 'normal.night.grey',
+ normalNightGreyMobile: 'normal.night.grey.mobile',
+
+ carnavDayGrey: 'carnav.day.grey',
+ hybridDay: {
+ options: {
+ base: 'aerial',
+ variant: 'hybrid.day'
+ }
+ },
+ hybridDayMobile: {
+ options: {
+ base: 'aerial',
+ variant: 'hybrid.day.mobile'
+ }
+ },
+ pedestrianDay: 'pedestrian.day',
+ pedestrianNight: 'pedestrian.night',
+ satelliteDay: {
+ options: {
+ base: 'aerial',
+ variant: 'satellite.day'
+ }
+ },
+ terrainDay: {
+ options: {
+ base: 'aerial',
+ variant: 'terrain.day'
+ }
+ },
+ terrainDayMobile: {
+ options: {
+ base: 'aerial',
+ variant: 'terrain.day.mobile'
+ }
+ }
+ }
+ },
+ Acetate: {
+ url: 'http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png',
+ options: {
+ attribution:
+ '&copy;2012 Esri & Stamen, Data from OSM and Natural Earth',
+ subdomains: '0123',
+ minZoom: 2,
+ maxZoom: 18,
+ variant: 'acetate-base'
+ },
+ variants: {
+ basemap: 'acetate-base',
+ terrain: 'terrain',
+ all: 'acetate-hillshading',
+ foreground: 'acetate-fg',
+ roads: 'acetate-roads',
+ labels: 'acetate-labels',
+ hillshading: 'hillshading'
+ }
+ }
+ };
+
+ L.tileLayer.provider = function (provider, options) {
+ return new L.TileLayer.Provider(provider, options);
+ };
+
+ L.Control.Layers.Provided = L.Control.Layers.extend({
+ initialize: function (base, overlay, options) {
+ var first;
+
+ var labelFormatter = function (label) {
+ return label.replace(/\./g, ': ').replace(/([a-z])([A-Z])/g, '$1 $2');
+ };
+
+ if (base.length) {
+ (function () {
+ var out = {},
+ len = base.length,
+ i = 0;
+
+ while (i < len) {
+ if (typeof base[i] === 'string') {
+ if (i === 0) {
+ first = L.tileLayer.provider(base[0]);
+ out[labelFormatter(base[i])] = first;
+ } else {
+ out[labelFormatter(base[i])] = L.tileLayer.provider(base[i]);
+ }
+ }
+ i++;
+ }
+ base = out;
+ }());
+ this._first = first;
+ }
+
+ if (overlay && overlay.length) {
+ (function () {
+ var out = {},
+ len = overlay.length,
+ i = 0;
+
+ while (i < len) {
+ if (typeof overlay[i] === 'string') {
+ out[labelFormatter(overlay[i])] = L.tileLayer.provider(overlay[i]);
+ }
+ i++;
+ }
+ overlay = out;
+ }());
+ }
+ L.Control.Layers.prototype.initialize.call(this, base, overlay, options);
+ },
+ onAdd: function (map) {
+ this._first.addTo(map);
+ return L.Control.Layers.prototype.onAdd.call(this, map);
+ }
+ });
+
+ L.control.layers.provided = function (baseLayers, overlays, options) {
+ return new L.Control.Layers.Provided(baseLayers, overlays, options);
+ };
+}());
+
//Utility functions for map info window
function mapit(lat,lon,zoom,id) {
- var map;
- //create a new map
- var centerCoord = new google.maps.LatLng(lat, lon);
- var mapOptions = {
- zoom: zoom,
- center: centerCoord,
- mapTypeId: google.maps.MapTypeId.TERRAIN,
- disableDefaultUI: true,
- navigationControl: true,
- navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL}
- };
- map = new google.maps.Map(document.getElementById('map-wrapper-'+id), mapOptions);
- //get the geojson for this map
+ map = L.map(document.getElementById("map-wrapper-"+id));
+ centerCoord = new L.LatLng(lat, lon);
+ zoom = zoom;
+ L.tileLayer.provider('Esri.WorldTopoMap', {maxZoom: 18, attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Tiles © Esri and the GIS User Community'}).addTo(map);
+ map.setView(centerCoord, zoom);
+ ////get the geojson for this map
$.ajax({
url: "/projects/data/natparks/"+id+".json",
dataType: "json",
- success: function(data, text, request) { draw_poly(data); }
+ success: function(data, text, request) { draw_poly(data, map); }
//complete: function(xhr, status) {console.log(status); return false; },
});
//draw the polygon
- function draw_poly(data) {
- var poly = createPolygons(data.features[0].geometry);
- for (i=0;i<=poly.length-1;i++) {
- poly[i].setMap(map);
- }
-
+ function draw_poly(data, map) {
+ var myStyle = {
+ "color": "#201a11",
+ "weight": 2,
+ "opacity": 0.65
+ };
+ L.geoJson(data, {
+ style: myStyle
+ }).addTo(map);
}
}
// utility functions to create/remove map container
function create_map(obj) {
- //break up the variable passed from the map link's title element
- var lat = parseFloat(obj.title.split(',')[0]);
- var lon = parseFloat(obj.title.split(',')[1]);
- var zoom= parseInt(obj.title.split(',')[2]);
- var id= obj.title.split(',')[3];
+ var lat = parseFloat(obj.attr('data-latitude'));
+ var lon = parseFloat(obj.attr('data-longitude'));
+ var zoom= parseInt(obj.attr('data-zoom'));
+ var id= obj.attr('data-id');
//create container divs
$(obj).parents().eq(3).append('<div class="map-container" id="map-container-'+id+'">');
$('#map-container-'+id).append('<div class="map-wrapper" id="map-wrapper-'+id+'">');
-
-
- //deal with the variable height of div.legend
- //$('#map-container').css({
- // bottom: function(index, value) {
- // return parseFloat($(obj).parent().parent().css("height"))-2;
- // }
- // });
-
mapit(lat,lon,zoom,id);
}
function remove_map(id) {
$(id).remove();
}
-//function to parse and render polygons for GMaps
-//# taken from http://friism.com/drawing-geojson-based-polygons-on-google-maps
-function createPolygons(areajson, bounds){
- var coords = areajson.coordinates;
- var polygons = _(coords).reduce([], function(memo_n, n) {
- var polygonpaths = _(n).reduce(new google.maps.MVCArray(), function(memo_o, o) {
- var polygoncords = _(o).reduce(new google.maps.MVCArray(), function(memo_p, p) {
- var mylatlng = new google.maps.LatLng(p[1], p[0]);
- if(bounds){
- bounds.extend(mylatlng);
- }
- memo_p.push(mylatlng);
- return memo_p;
- });
- memo_o.push(polygoncords);
- return memo_o;
- });
- var polygon = new google.maps.Polygon({
- paths: polygonpaths,
- strokeColor: "#201a11",
- strokeOpacity: 0.8,
- strokeWeight: 2,
- fillColor: "#201a11",
- fillOpacity: 0.35
- });
- memo_n.push(polygon);
- return memo_n;
- });
- return polygons;
-}
-
//functions to handle the "more" link
// utility functions to create/remove camera info container
function get_exif(obj,id) {
@@ -104,22 +531,18 @@ function get_exif(obj,id) {
function remove_exif(id) {
$('#'+id).remove();
}
-
-
-
-
$(document).ready(function(){
//set up click events for map button
$('.map-link').click( function() {
var more_id = 'more-container-'+$(this).parent().next().children('.more-link').attr('id').split('-')[1];
- var id = '#map-container-'+this.title.split(',')[3];
+ var id = '#map-container-'+$(this).attr('data-id');
if ($('#'+more_id).is(":visible")){
remove_exif(more_id);
}
if ($(id).is(":visible")) {
remove_map(id);
} else {
- create_map(this);
+ create_map($(this));
}
return false;
@@ -127,7 +550,7 @@ $(document).ready(function(){
//set up click events for more info button
$('.more-link').click( function() {
- var map_id = '#map-container-'+$(this).parent().prev().children('.map-link').attr('title').split(',')[3];
+ var map_id = '#map-container-'+$(this).parent().prev().children('.map-link').attr('data-id');
var id = 'more-container-'+this.id.split('-')[1];
if ($(map_id).is(":visible")){
remove_map(map_id);
@@ -140,4 +563,4 @@ $(document).ready(function(){
return false;
});
-}); \ No newline at end of file
+});
diff --git a/site/media/js/natparks.min.js b/site/media/js/natparks.min.js
index d077806..1c34805 100644
--- a/site/media/js/natparks.min.js
+++ b/site/media/js/natparks.min.js
@@ -1 +1,23 @@
-function mapit(lat,lon,zoom,id){var map;var centerCoord=new google.maps.LatLng(lat,lon);var mapOptions={zoom:zoom,center:centerCoord,mapTypeId:google.maps.MapTypeId.TERRAIN,disableDefaultUI:true,navigationControl:true,navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL}};map=new google.maps.Map(document.getElementById('map-wrapper-'+id),mapOptions);$.ajax({url:"/projects/data/natparks/"+id+".json",dataType:"json",success:function(data,text,request){draw_poly(data)}});function draw_poly(data){var poly=createPolygons(data.features[0].geometry);for(i=0;i<=poly.length-1;i++){poly[i].setMap(map)}}}function create_map(obj){var lat=parseFloat(obj.title.split(',')[0]);var lon=parseFloat(obj.title.split(',')[1]);var zoom=parseInt(obj.title.split(',')[2]);var id=obj.title.split(',')[3];$(obj).parents().eq(3).append('<div class="map-container" id="map-container-'+id+'">');$('#map-container-'+id).append('<div class="map-wrapper" id="map-wrapper-'+id+'">');mapit(lat,lon,zoom,id)}function remove_map(id){$(id).remove()}function createPolygons(areajson,bounds){var coords=areajson.coordinates;var polygons=_(coords).reduce([],function(memo_n,n){var polygonpaths=_(n).reduce(new google.maps.MVCArray(),function(memo_o,o){var polygoncords=_(o).reduce(new google.maps.MVCArray(),function(memo_p,p){var mylatlng=new google.maps.LatLng(p[1],p[0]);if(bounds){bounds.extend(mylatlng)}memo_p.push(mylatlng);return memo_p});memo_o.push(polygoncords);return memo_o});var polygon=new google.maps.Polygon({paths:polygonpaths,strokeColor:"#201a11",strokeOpacity:0.8,strokeWeight:2,fillColor:"#201a11",fillOpacity:0.35});memo_n.push(polygon);return memo_n});return polygons}function get_exif(obj,id){$(obj).parents().eq(3).append('<div class="more-container" id="'+id+'">');$(obj).parents().eq(2).children('.meta').clone().appendTo('#'+id).css('visibility','visible');$('#exif-container').css({bottom:function(index,value){return parseFloat($(obj).parent().parent().css("height"))-14}})}function remove_exif(id){$('#'+id).remove()}$(document).ready(function(){$('.map-link').click(function(){var more_id='more-container-'+$(this).parent().next().children('.more-link').attr('id').split('-')[1];var id='#map-container-'+this.title.split(',')[3];if($('#'+more_id).is(":visible")){remove_exif(more_id)}if($(id).is(":visible")){remove_map(id)}else{create_map(this)}return false});$('.more-link').click(function(){var map_id='#map-container-'+$(this).parent().prev().children('.map-link').attr('title').split(',')[3];var id='more-container-'+this.id.split('-')[1];if($(map_id).is(":visible")){remove_map(map_id)}if($('#'+id).is(":visible")){remove_exif(id)}else{get_exif(this,id)}return false})}); \ No newline at end of file
+(function(){'use strict';L.TileLayer.Provider=L.TileLayer.extend({initialize:function(arg,options){var providers=L.TileLayer.Provider.providers;var parts=arg.split('.');var providerName=parts[0];var variantName=parts[1];if(!providers[providerName]){throw'No such provider ('+providerName+')';}
+var provider={url:providers[providerName].url,options:providers[providerName].options};if(variantName&&'variants'in providers[providerName]){if(!(variantName in providers[providerName].variants)){throw'No such variant of '+providerName+' ('+variantName+')';}
+var variant=providers[providerName].variants[variantName];var variantOptions;if(typeof variant==='string'){variantOptions={variant:variant};}else{variantOptions=variant.options;}
+provider={url:variant.url||provider.url,options:L.Util.extend({},provider.options,variantOptions)};}else if(typeof provider.url==='function'){provider.url=provider.url(parts.splice(1,parts.length-1).join('.'));}
+var attributionReplacer=function(attr){if(attr.indexOf('{attribution.')===-1){return attr;}
+return attr.replace(/\{attribution.(\w*)\}/,function(match,attributionName){return attributionReplacer(providers[attributionName].options.attribution);});};provider.options.attribution=attributionReplacer(provider.options.attribution); var layerOpts=L.Util.extend({},provider.options,options);L.TileLayer.prototype.initialize.call(this,provider.url,layerOpts);}}); L.TileLayer.Provider.providers={OpenStreetMap:{url:'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',options:{attribution:'&copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, '+'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'},variants:{Mapnik:{},BlackAndWhite:{url:'http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png'},DE:{url:'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png'},HOT:{url:'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'}}}},OpenSeaMap:{url:'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',options:{attribution:'Map data: &copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}},Thunderforest:{url:'http://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png',options:{attribution:'&copy; <a href="http://www.opencyclemap.org">OpenCycleMap</a>, {attribution.OpenStreetMap}',variant:'cycle'},variants:{OpenCycleMap:'cycle',Transport:'transport',Landscape:'landscape',Outdoors:'outdoors'}},OpenMapSurfer:{url:'http://openmapsurfer.uni-hd.de/tiles/{variant}/x={x}&y={y}&z={z}',options:{minZoom:0,maxZoom:20,variant:'roads',attribution:'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> &mdash; Map data {attribution.OpenStreetMap}'},variants:{Roads:'roads',AdminBounds:{options:{variant:'adminb',maxZoom:19}},Grayscale:{options:{variant:'roadsg',maxZoom:19}}}},MapQuestOpen:{url:'http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg',options:{attribution:'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; '+'Map data {attribution.OpenStreetMap}',subdomains:'1234'},variants:{OSM:{},Aerial:{url:'http://oatile{s}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg',options:{attribution:'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; '+'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}}}},MapBox:{url:function(id){return'http://{s}.tiles.mapbox.com/v3/'+id+'/{z}/{x}/{y}.png';},options:{attribution:'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> &mdash; '+'Map data {attribution.OpenStreetMap}',subdomains:'abcd'}},Stamen:{url:'http://{s}.tile.stamen.com/{variant}/{z}/{x}/{y}.png',options:{attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, '+'<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; '+'Map data {attribution.OpenStreetMap}',subdomains:'abcd',minZoom:0,maxZoom:20,variant:'toner'},variants:{Toner:'toner',TonerBackground:'toner-background',TonerHybrid:'toner-hybrid',TonerLines:'toner-lines',TonerLabels:'toner-labels',TonerLite:'toner-lite',Terrain:{options:{variant:'terrain',minZoom:4,maxZoom:18}},TerrainBackground:{options:{variant:'terrain-background',minZoom:4,maxZoom:18}},Watercolor:{options:{variant:'watercolor',minZoom:3,maxZoom:16}}}},Esri:{url:'https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}',options:{variant:'World_Street_Map',attribution:'Tiles &copy; Esri'},variants:{WorldStreetMap:{options:{attribution:'{attribution.Esri} &mdash; '+'Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012'}},DeLorme:{options:{variant:'Specialty/DeLorme_World_Base_Map',minZoom:1,maxZoom:11,attribution:'{attribution.Esri} &mdash; Copyright: &copy;2012 DeLorme'}},WorldTopoMap:{options:{variant:'World_Topo_Map',attribution:'{attribution.Esri} &mdash; '+'Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community'}},WorldImagery:{options:{variant:'World_Imagery',attribution:'{attribution.Esri} &mdash; '+'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'}},WorldTerrain:{options:{variant:'World_Terrain_Base',maxZoom:13,attribution:'{attribution.Esri} &mdash; '+'Source: USGS, Esri, TANA, DeLorme, and NPS'}},WorldShadedRelief:{options:{variant:'World_Shaded_Relief',maxZoom:13,attribution:'{attribution.Esri} &mdash; Source: Esri'}},WorldPhysical:{options:{variant:'World_Physical_Map',maxZoom:8,attribution:'{attribution.Esri} &mdash; Source: US National Park Service'}},OceanBasemap:{options:{variant:'Ocean_Basemap',maxZoom:13,attribution:'{attribution.Esri} &mdash; Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri'}},NatGeoWorldMap:{options:{variant:'NatGeo_World_Map',maxZoom:16,attribution:'{attribution.Esri} &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC'}},WorldGrayCanvas:{options:{variant:'Canvas/World_Light_Gray_Base',maxZoom:16,attribution:'{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ'}}}},OpenWeatherMap:{url:'http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png',options:{attribution:'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>',opacity:0.5},variants:{Clouds:'clouds',CloudsClassic:'clouds_cls',Precipitation:'precipitation',PrecipitationClassic:'precipitation_cls',Rain:'rain',RainClassic:'rain_cls',Pressure:'pressure',PressureContour:'pressure_cntr',Wind:'wind',Temperature:'temp',Snow:'snow'}},HERE:{url:'http://{s}.{base}.maps.cit.api.here.com/maptile/2.1/'+'maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?'+'app_id={app_id}&app_code={app_code}',options:{attribution:'Map &copy; 1987-2014 <a href="http://developer.here.com">HERE</a>',subdomains:'1234',mapID:'newest','app_id':'<insert your app_id here>','app_code':'<insert your app_code here>',base:'base',variant:'normal.day',minZoom:0,maxZoom:20},variants:{normalDay:'normal.day',normalDayCustom:'normal.day.custom',normalDayGrey:'normal.day.grey',normalDayMobile:'normal.day.mobile',normalDayGreyMobile:'normal.day.grey.mobile',normalDayTransit:'normal.day.transit',normalDayTransitMobile:'normal.day.transit.mobile',normalNight:'normal.night',normalNightMobile:'normal.night.mobile',normalNightGrey:'normal.night.grey',normalNightGreyMobile:'normal.night.grey.mobile',carnavDayGrey:'carnav.day.grey',hybridDay:{options:{base:'aerial',variant:'hybrid.day'}},hybridDayMobile:{options:{base:'aerial',variant:'hybrid.day.mobile'}},pedestrianDay:'pedestrian.day',pedestrianNight:'pedestrian.night',satelliteDay:{options:{base:'aerial',variant:'satellite.day'}},terrainDay:{options:{base:'aerial',variant:'terrain.day'}},terrainDayMobile:{options:{base:'aerial',variant:'terrain.day.mobile'}}}},Acetate:{url:'http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png',options:{attribution:'&copy;2012 Esri & Stamen, Data from OSM and Natural Earth',subdomains:'0123',minZoom:2,maxZoom:18,variant:'acetate-base'},variants:{basemap:'acetate-base',terrain:'terrain',all:'acetate-hillshading',foreground:'acetate-fg',roads:'acetate-roads',labels:'acetate-labels',hillshading:'hillshading'}}};L.tileLayer.provider=function(provider,options){return new L.TileLayer.Provider(provider,options);};L.Control.Layers.Provided=L.Control.Layers.extend({initialize:function(base,overlay,options){var first;var labelFormatter=function(label){return label.replace(/\./g,': ').replace(/([a-z])([A-Z])/g,'$1 $2');};if(base.length){(function(){var out={},len=base.length,i=0;while(i<len){if(typeof base[i]==='string'){if(i===0){first=L.tileLayer.provider(base[0]);out[labelFormatter(base[i])]=first;}else{out[labelFormatter(base[i])]=L.tileLayer.provider(base[i]);}}
+i++;}
+base=out;}());this._first=first;}
+if(overlay&&overlay.length){(function(){var out={},len=overlay.length,i=0;while(i<len){if(typeof overlay[i]==='string'){out[labelFormatter(overlay[i])]=L.tileLayer.provider(overlay[i]);}
+i++;}
+overlay=out;}());}
+L.Control.Layers.prototype.initialize.call(this,base,overlay,options);},onAdd:function(map){this._first.addTo(map);return L.Control.Layers.prototype.onAdd.call(this,map);}});L.control.layers.provided=function(baseLayers,overlays,options){return new L.Control.Layers.Provided(baseLayers,overlays,options);};}());function mapit(lat,lon,zoom,id){map=L.map(document.getElementById("map-wrapper-"+id));centerCoord=new L.LatLng(lat,lon);zoom=zoom;L.tileLayer.provider('Esri.WorldTopoMap',{maxZoom:18,attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Tiles © Esri and the GIS User Community'}).addTo(map);map.setView(centerCoord,zoom); $.ajax({url:"/projects/data/natparks/"+id+".json",dataType:"json",success:function(data,text,request){draw_poly(data,map);}
+}); function draw_poly(data,map){var myStyle={"color":"#201a11","weight":2,"opacity":0.65};L.geoJson(data,{style:myStyle}).addTo(map);}}
+function create_map(obj){var lat=parseFloat(obj.attr('data-latitude'));var lon=parseFloat(obj.attr('data-longitude'));var zoom=parseInt(obj.attr('data-zoom'));var id=obj.attr('data-id'); $(obj).parents().eq(3).append('<div class="map-container" id="map-container-'+id+'">');$('#map-container-'+id).append('<div class="map-wrapper" id="map-wrapper-'+id+'">');mapit(lat,lon,zoom,id);}
+function remove_map(id){$(id).remove();}
+
+function get_exif(obj,id){$(obj).parents().eq(3).append('<div class="more-container" id="'+id+'">');$(obj).parents().eq(2).children('.meta').clone().appendTo('#'+id).css('visibility','visible'); $('#exif-container').css({bottom:function(index,value){return parseFloat($(obj).parent().parent().css("height"))-14;}});}
+function remove_exif(id){$('#'+id).remove();}
+$(document).ready(function(){ $('.map-link').click(function(){var more_id='more-container-'+$(this).parent().next().children('.more-link').attr('id').split('-')[1];var id='#map-container-'+$(this).attr('data-id');if($('#'+more_id).is(":visible")){remove_exif(more_id);}
+if($(id).is(":visible")){remove_map(id);}else{create_map($(this));}
+return false;}); $('.more-link').click(function(){var map_id='#map-container-'+$(this).parent().prev().children('.map-link').attr('data-id');var id='more-container-'+this.id.split('-')[1];if($(map_id).is(":visible")){remove_map(map_id);}
+if($('#'+id).is(":visible")){remove_exif(id);}else{get_exif(this,id);}
+return false;});}); \ No newline at end of file
diff --git a/site/media/js/photos.js b/site/media/js/photos.js
index 1331b0e..d3abf85 100644
--- a/site/media/js/photos.js
+++ b/site/media/js/photos.js
@@ -1,3 +1,475 @@
+(function () {
+ 'use strict';
+
+ L.TileLayer.Provider = L.TileLayer.extend({
+ initialize: function (arg, options) {
+ var providers = L.TileLayer.Provider.providers;
+
+ var parts = arg.split('.');
+
+ var providerName = parts[0];
+ var variantName = parts[1];
+
+ if (!providers[providerName]) {
+ throw 'No such provider (' + providerName + ')';
+ }
+
+ var provider = {
+ url: providers[providerName].url,
+ options: providers[providerName].options
+ };
+
+ // overwrite values in provider from variant.
+ if (variantName && 'variants' in providers[providerName]) {
+ if (!(variantName in providers[providerName].variants)) {
+ throw 'No such variant of ' + providerName + ' (' + variantName + ')';
+ }
+ var variant = providers[providerName].variants[variantName];
+ var variantOptions;
+ if (typeof variant === 'string') {
+ variantOptions = {
+ variant: variant
+ };
+ } else {
+ variantOptions = variant.options;
+ }
+ provider = {
+ url: variant.url || provider.url,
+ options: L.Util.extend({}, provider.options, variantOptions)
+ };
+ } else if (typeof provider.url === 'function') {
+ provider.url = provider.url(parts.splice(1, parts.length - 1).join('.'));
+ }
+
+ // replace attribution placeholders with their values from toplevel provider attribution,
+ // recursively
+ var attributionReplacer = function (attr) {
+ if (attr.indexOf('{attribution.') === -1) {
+ return attr;
+ }
+ return attr.replace(/\{attribution.(\w*)\}/,
+ function (match, attributionName) {
+ return attributionReplacer(providers[attributionName].options.attribution);
+ }
+ );
+ };
+ provider.options.attribution = attributionReplacer(provider.options.attribution);
+
+ // Compute final options combining provider options with any user overrides
+ var layerOpts = L.Util.extend({}, provider.options, options);
+ L.TileLayer.prototype.initialize.call(this, provider.url, layerOpts);
+ }
+ });
+
+ /**
+ * Definition of providers.
+ * see http://leafletjs.com/reference.html#tilelayer for options in the options map.
+ */
+
+ //jshint maxlen:220
+ L.TileLayer.Provider.providers = {
+ OpenStreetMap: {
+ url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
+ options: {
+ attribution:
+ '&copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
+ '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
+ },
+ variants: {
+ Mapnik: {},
+ BlackAndWhite: {
+ url: 'http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png'
+ },
+ DE: {
+ url: 'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png'
+ },
+ HOT: {
+ url: 'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',
+ options: {
+ attribution: '{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'
+ }
+ }
+ }
+ },
+ OpenSeaMap: {
+ url: 'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',
+ options: {
+ attribution: 'Map data: &copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'
+ }
+ },
+ Thunderforest: {
+ url: 'http://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png',
+ options: {
+ attribution:
+ '&copy; <a href="http://www.opencyclemap.org">OpenCycleMap</a>, {attribution.OpenStreetMap}',
+ variant: 'cycle'
+ },
+ variants: {
+ OpenCycleMap: 'cycle',
+ Transport: 'transport',
+ Landscape: 'landscape',
+ Outdoors: 'outdoors'
+ }
+ },
+ OpenMapSurfer: {
+ url: 'http://openmapsurfer.uni-hd.de/tiles/{variant}/x={x}&y={y}&z={z}',
+ options: {
+ minZoom: 0,
+ maxZoom: 20,
+ variant: 'roads',
+ attribution: 'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> &mdash; Map data {attribution.OpenStreetMap}'
+ },
+ variants: {
+ Roads: 'roads',
+ AdminBounds: {
+ options: {
+ variant: 'adminb',
+ maxZoom: 19
+ }
+ },
+ Grayscale: {
+ options: {
+ variant: 'roadsg',
+ maxZoom: 19
+ }
+ }
+ }
+ },
+ MapQuestOpen: {
+ url: 'http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg',
+ options: {
+ attribution:
+ 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; ' +
+ 'Map data {attribution.OpenStreetMap}',
+ subdomains: '1234'
+ },
+ variants: {
+ OSM: {},
+ Aerial: {
+ url: 'http://oatile{s}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg',
+ options: {
+ attribution:
+ 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; ' +
+ 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'
+ }
+ }
+ }
+ },
+ MapBox: {
+ url: function (id) {
+ return 'http://{s}.tiles.mapbox.com/v3/' + id + '/{z}/{x}/{y}.png';
+ },
+ options: {
+ attribution:
+ 'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> &mdash; ' +
+ 'Map data {attribution.OpenStreetMap}',
+ subdomains: 'abcd'
+ }
+ },
+ Stamen: {
+ url: 'http://{s}.tile.stamen.com/{variant}/{z}/{x}/{y}.png',
+ options: {
+ attribution:
+ 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, ' +
+ '<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; ' +
+ 'Map data {attribution.OpenStreetMap}',
+ subdomains: 'abcd',
+ minZoom: 0,
+ maxZoom: 20,
+ variant: 'toner'
+ },
+ variants: {
+ Toner: 'toner',
+ TonerBackground: 'toner-background',
+ TonerHybrid: 'toner-hybrid',
+ TonerLines: 'toner-lines',
+ TonerLabels: 'toner-labels',
+ TonerLite: 'toner-lite',
+ Terrain: {
+ options: {
+ variant: 'terrain',
+ minZoom: 4,
+ maxZoom: 18
+ }
+ },
+ TerrainBackground: {
+ options: {
+ variant: 'terrain-background',
+ minZoom: 4,
+ maxZoom: 18
+ }
+ },
+ Watercolor: {
+ options: {
+ variant: 'watercolor',
+ minZoom: 3,
+ maxZoom: 16
+ }
+ }
+ }
+ },
+ Esri: {
+ url: 'https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}',
+ options: {
+ variant: 'World_Street_Map',
+ attribution: 'Tiles &copy; Esri'
+ },
+ variants: {
+ WorldStreetMap: {
+ options: {
+ attribution:
+ '{attribution.Esri} &mdash; ' +
+ 'Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012'
+ }
+ },
+ DeLorme: {
+ options: {
+ variant: 'Specialty/DeLorme_World_Base_Map',
+ minZoom: 1,
+ maxZoom: 11,
+ attribution: '{attribution.Esri} &mdash; Copyright: &copy;2012 DeLorme'
+ }
+ },
+ WorldTopoMap: {
+ options: {
+ variant: 'World_Topo_Map',
+ attribution:
+ '{attribution.Esri} &mdash; ' +
+ 'Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community'
+ }
+ },
+ WorldImagery: {
+ options: {
+ variant: 'World_Imagery',
+ attribution:
+ '{attribution.Esri} &mdash; ' +
+ 'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
+ }
+ },
+ WorldTerrain: {
+ options: {
+ variant: 'World_Terrain_Base',
+ maxZoom: 13,
+ attribution:
+ '{attribution.Esri} &mdash; ' +
+ 'Source: USGS, Esri, TANA, DeLorme, and NPS'
+ }
+ },
+ WorldShadedRelief: {
+ options: {
+ variant: 'World_Shaded_Relief',
+ maxZoom: 13,
+ attribution: '{attribution.Esri} &mdash; Source: Esri'
+ }
+ },
+ WorldPhysical: {
+ options: {
+ variant: 'World_Physical_Map',
+ maxZoom: 8,
+ attribution: '{attribution.Esri} &mdash; Source: US National Park Service'
+ }
+ },
+ OceanBasemap: {
+ options: {
+ variant: 'Ocean_Basemap',
+ maxZoom: 13,
+ attribution: '{attribution.Esri} &mdash; Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri'
+ }
+ },
+ NatGeoWorldMap: {
+ options: {
+ variant: 'NatGeo_World_Map',
+ maxZoom: 16,
+ attribution: '{attribution.Esri} &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC'
+ }
+ },
+ WorldGrayCanvas: {
+ options: {
+ variant: 'Canvas/World_Light_Gray_Base',
+ maxZoom: 16,
+ attribution: '{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ'
+ }
+ }
+ }
+ },
+ OpenWeatherMap: {
+ url: 'http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png',
+ options: {
+ attribution: 'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>',
+ opacity: 0.5
+ },
+ variants: {
+ Clouds: 'clouds',
+ CloudsClassic: 'clouds_cls',
+ Precipitation: 'precipitation',
+ PrecipitationClassic: 'precipitation_cls',
+ Rain: 'rain',
+ RainClassic: 'rain_cls',
+ Pressure: 'pressure',
+ PressureContour: 'pressure_cntr',
+ Wind: 'wind',
+ Temperature: 'temp',
+ Snow: 'snow'
+ }
+ },
+ HERE: {
+ /*
+ * HERE maps, formerly Nokia maps.
+ * These basemaps are free, but you need an API key. Please sign up at
+ * http://developer.here.com/getting-started
+ *
+ * Note that the base urls contain '.cit' whichs is HERE's
+ * 'Customer Integration Testing' environment. Please remove for production
+ * envirionments.
+ */
+ url:
+ 'http://{s}.{base}.maps.cit.api.here.com/maptile/2.1/' +
+ 'maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?' +
+ 'app_id={app_id}&app_code={app_code}',
+ options: {
+ attribution:
+ 'Map &copy; 1987-2014 <a href="http://developer.here.com">HERE</a>',
+ subdomains: '1234',
+ mapID: 'newest',
+ 'app_id': '<insert your app_id here>',
+ 'app_code': '<insert your app_code here>',
+ base: 'base',
+ variant: 'normal.day',
+ minZoom: 0,
+ maxZoom: 20
+ },
+ variants: {
+ normalDay: 'normal.day',
+ normalDayCustom: 'normal.day.custom',
+ normalDayGrey: 'normal.day.grey',
+ normalDayMobile: 'normal.day.mobile',
+ normalDayGreyMobile: 'normal.day.grey.mobile',
+ normalDayTransit: 'normal.day.transit',
+ normalDayTransitMobile: 'normal.day.transit.mobile',
+ normalNight: 'normal.night',
+ normalNightMobile: 'normal.night.mobile',
+ normalNightGrey: 'normal.night.grey',
+ normalNightGreyMobile: 'normal.night.grey.mobile',
+
+ carnavDayGrey: 'carnav.day.grey',
+ hybridDay: {
+ options: {
+ base: 'aerial',
+ variant: 'hybrid.day'
+ }
+ },
+ hybridDayMobile: {
+ options: {
+ base: 'aerial',
+ variant: 'hybrid.day.mobile'
+ }
+ },
+ pedestrianDay: 'pedestrian.day',
+ pedestrianNight: 'pedestrian.night',
+ satelliteDay: {
+ options: {
+ base: 'aerial',
+ variant: 'satellite.day'
+ }
+ },
+ terrainDay: {
+ options: {
+ base: 'aerial',
+ variant: 'terrain.day'
+ }
+ },
+ terrainDayMobile: {
+ options: {
+ base: 'aerial',
+ variant: 'terrain.day.mobile'
+ }
+ }
+ }
+ },
+ Acetate: {
+ url: 'http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png',
+ options: {
+ attribution:
+ '&copy;2012 Esri & Stamen, Data from OSM and Natural Earth',
+ subdomains: '0123',
+ minZoom: 2,
+ maxZoom: 18,
+ variant: 'acetate-base'
+ },
+ variants: {
+ basemap: 'acetate-base',
+ terrain: 'terrain',
+ all: 'acetate-hillshading',
+ foreground: 'acetate-fg',
+ roads: 'acetate-roads',
+ labels: 'acetate-labels',
+ hillshading: 'hillshading'
+ }
+ }
+ };
+
+ L.tileLayer.provider = function (provider, options) {
+ return new L.TileLayer.Provider(provider, options);
+ };
+
+ L.Control.Layers.Provided = L.Control.Layers.extend({
+ initialize: function (base, overlay, options) {
+ var first;
+
+ var labelFormatter = function (label) {
+ return label.replace(/\./g, ': ').replace(/([a-z])([A-Z])/g, '$1 $2');
+ };
+
+ if (base.length) {
+ (function () {
+ var out = {},
+ len = base.length,
+ i = 0;
+
+ while (i < len) {
+ if (typeof base[i] === 'string') {
+ if (i === 0) {
+ first = L.tileLayer.provider(base[0]);
+ out[labelFormatter(base[i])] = first;
+ } else {
+ out[labelFormatter(base[i])] = L.tileLayer.provider(base[i]);
+ }
+ }
+ i++;
+ }
+ base = out;
+ }());
+ this._first = first;
+ }
+
+ if (overlay && overlay.length) {
+ (function () {
+ var out = {},
+ len = overlay.length,
+ i = 0;
+
+ while (i < len) {
+ if (typeof overlay[i] === 'string') {
+ out[labelFormatter(overlay[i])] = L.tileLayer.provider(overlay[i]);
+ }
+ i++;
+ }
+ overlay = out;
+ }());
+ }
+ L.Control.Layers.prototype.initialize.call(this, base, overlay, options);
+ },
+ onAdd: function (map) {
+ this._first.addTo(map);
+ return L.Control.Layers.prototype.onAdd.call(this, map);
+ }
+ });
+
+ L.control.layers.provided = function (baseLayers, overlays, options) {
+ return new L.Control.Layers.Provided(baseLayers, overlays, options);
+ };
+}());
+
//Utility functions for map info window
function mapit(obj) {
lat = parseFloat(obj.attr('data-latitude'));
diff --git a/site/media/js/photos.min.js b/site/media/js/photos.min.js
index 92afa82..4021945 100644
--- a/site/media/js/photos.min.js
+++ b/site/media/js/photos.min.js
@@ -1,5 +1,15 @@
-
-function mapit(obj){lat=parseFloat(obj.attr('data-latitude'));lon=parseFloat(obj.attr('data-longitude'));elid=obj.attr('data-imgid');map=L.map(document.getElementById("mw-"+elid));centerCoord=new L.LatLng(lat,lon);zoom=8;L.tileLayer.provider('Esri.WorldTopoMap',{maxZoom:18,attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Tiles © Esri and the GIS User Community'}).addTo(map);map.setView(centerCoord,zoom);L.marker([lat,lon]).addTo(map);}
+(function(){'use strict';L.TileLayer.Provider=L.TileLayer.extend({initialize:function(arg,options){var providers=L.TileLayer.Provider.providers;var parts=arg.split('.');var providerName=parts[0];var variantName=parts[1];if(!providers[providerName]){throw'No such provider ('+providerName+')';}
+var provider={url:providers[providerName].url,options:providers[providerName].options};if(variantName&&'variants'in providers[providerName]){if(!(variantName in providers[providerName].variants)){throw'No such variant of '+providerName+' ('+variantName+')';}
+var variant=providers[providerName].variants[variantName];var variantOptions;if(typeof variant==='string'){variantOptions={variant:variant};}else{variantOptions=variant.options;}
+provider={url:variant.url||provider.url,options:L.Util.extend({},provider.options,variantOptions)};}else if(typeof provider.url==='function'){provider.url=provider.url(parts.splice(1,parts.length-1).join('.'));}
+var attributionReplacer=function(attr){if(attr.indexOf('{attribution.')===-1){return attr;}
+return attr.replace(/\{attribution.(\w*)\}/,function(match,attributionName){return attributionReplacer(providers[attributionName].options.attribution);});};provider.options.attribution=attributionReplacer(provider.options.attribution); var layerOpts=L.Util.extend({},provider.options,options);L.TileLayer.prototype.initialize.call(this,provider.url,layerOpts);}}); L.TileLayer.Provider.providers={OpenStreetMap:{url:'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',options:{attribution:'&copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, '+'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'},variants:{Mapnik:{},BlackAndWhite:{url:'http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png'},DE:{url:'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png'},HOT:{url:'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'}}}},OpenSeaMap:{url:'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',options:{attribution:'Map data: &copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}},Thunderforest:{url:'http://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png',options:{attribution:'&copy; <a href="http://www.opencyclemap.org">OpenCycleMap</a>, {attribution.OpenStreetMap}',variant:'cycle'},variants:{OpenCycleMap:'cycle',Transport:'transport',Landscape:'landscape',Outdoors:'outdoors'}},OpenMapSurfer:{url:'http://openmapsurfer.uni-hd.de/tiles/{variant}/x={x}&y={y}&z={z}',options:{minZoom:0,maxZoom:20,variant:'roads',attribution:'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> &mdash; Map data {attribution.OpenStreetMap}'},variants:{Roads:'roads',AdminBounds:{options:{variant:'adminb',maxZoom:19}},Grayscale:{options:{variant:'roadsg',maxZoom:19}}}},MapQuestOpen:{url:'http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg',options:{attribution:'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; '+'Map data {attribution.OpenStreetMap}',subdomains:'1234'},variants:{OSM:{},Aerial:{url:'http://oatile{s}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg',options:{attribution:'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; '+'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}}}},MapBox:{url:function(id){return'http://{s}.tiles.mapbox.com/v3/'+id+'/{z}/{x}/{y}.png';},options:{attribution:'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> &mdash; '+'Map data {attribution.OpenStreetMap}',subdomains:'abcd'}},Stamen:{url:'http://{s}.tile.stamen.com/{variant}/{z}/{x}/{y}.png',options:{attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, '+'<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; '+'Map data {attribution.OpenStreetMap}',subdomains:'abcd',minZoom:0,maxZoom:20,variant:'toner'},variants:{Toner:'toner',TonerBackground:'toner-background',TonerHybrid:'toner-hybrid',TonerLines:'toner-lines',TonerLabels:'toner-labels',TonerLite:'toner-lite',Terrain:{options:{variant:'terrain',minZoom:4,maxZoom:18}},TerrainBackground:{options:{variant:'terrain-background',minZoom:4,maxZoom:18}},Watercolor:{options:{variant:'watercolor',minZoom:3,maxZoom:16}}}},Esri:{url:'https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}',options:{variant:'World_Street_Map',attribution:'Tiles &copy; Esri'},variants:{WorldStreetMap:{options:{attribution:'{attribution.Esri} &mdash; '+'Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012'}},DeLorme:{options:{variant:'Specialty/DeLorme_World_Base_Map',minZoom:1,maxZoom:11,attribution:'{attribution.Esri} &mdash; Copyright: &copy;2012 DeLorme'}},WorldTopoMap:{options:{variant:'World_Topo_Map',attribution:'{attribution.Esri} &mdash; '+'Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community'}},WorldImagery:{options:{variant:'World_Imagery',attribution:'{attribution.Esri} &mdash; '+'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'}},WorldTerrain:{options:{variant:'World_Terrain_Base',maxZoom:13,attribution:'{attribution.Esri} &mdash; '+'Source: USGS, Esri, TANA, DeLorme, and NPS'}},WorldShadedRelief:{options:{variant:'World_Shaded_Relief',maxZoom:13,attribution:'{attribution.Esri} &mdash; Source: Esri'}},WorldPhysical:{options:{variant:'World_Physical_Map',maxZoom:8,attribution:'{attribution.Esri} &mdash; Source: US National Park Service'}},OceanBasemap:{options:{variant:'Ocean_Basemap',maxZoom:13,attribution:'{attribution.Esri} &mdash; Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri'}},NatGeoWorldMap:{options:{variant:'NatGeo_World_Map',maxZoom:16,attribution:'{attribution.Esri} &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC'}},WorldGrayCanvas:{options:{variant:'Canvas/World_Light_Gray_Base',maxZoom:16,attribution:'{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ'}}}},OpenWeatherMap:{url:'http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png',options:{attribution:'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>',opacity:0.5},variants:{Clouds:'clouds',CloudsClassic:'clouds_cls',Precipitation:'precipitation',PrecipitationClassic:'precipitation_cls',Rain:'rain',RainClassic:'rain_cls',Pressure:'pressure',PressureContour:'pressure_cntr',Wind:'wind',Temperature:'temp',Snow:'snow'}},HERE:{url:'http://{s}.{base}.maps.cit.api.here.com/maptile/2.1/'+'maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?'+'app_id={app_id}&app_code={app_code}',options:{attribution:'Map &copy; 1987-2014 <a href="http://developer.here.com">HERE</a>',subdomains:'1234',mapID:'newest','app_id':'<insert your app_id here>','app_code':'<insert your app_code here>',base:'base',variant:'normal.day',minZoom:0,maxZoom:20},variants:{normalDay:'normal.day',normalDayCustom:'normal.day.custom',normalDayGrey:'normal.day.grey',normalDayMobile:'normal.day.mobile',normalDayGreyMobile:'normal.day.grey.mobile',normalDayTransit:'normal.day.transit',normalDayTransitMobile:'normal.day.transit.mobile',normalNight:'normal.night',normalNightMobile:'normal.night.mobile',normalNightGrey:'normal.night.grey',normalNightGreyMobile:'normal.night.grey.mobile',carnavDayGrey:'carnav.day.grey',hybridDay:{options:{base:'aerial',variant:'hybrid.day'}},hybridDayMobile:{options:{base:'aerial',variant:'hybrid.day.mobile'}},pedestrianDay:'pedestrian.day',pedestrianNight:'pedestrian.night',satelliteDay:{options:{base:'aerial',variant:'satellite.day'}},terrainDay:{options:{base:'aerial',variant:'terrain.day'}},terrainDayMobile:{options:{base:'aerial',variant:'terrain.day.mobile'}}}},Acetate:{url:'http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png',options:{attribution:'&copy;2012 Esri & Stamen, Data from OSM and Natural Earth',subdomains:'0123',minZoom:2,maxZoom:18,variant:'acetate-base'},variants:{basemap:'acetate-base',terrain:'terrain',all:'acetate-hillshading',foreground:'acetate-fg',roads:'acetate-roads',labels:'acetate-labels',hillshading:'hillshading'}}};L.tileLayer.provider=function(provider,options){return new L.TileLayer.Provider(provider,options);};L.Control.Layers.Provided=L.Control.Layers.extend({initialize:function(base,overlay,options){var first;var labelFormatter=function(label){return label.replace(/\./g,': ').replace(/([a-z])([A-Z])/g,'$1 $2');};if(base.length){(function(){var out={},len=base.length,i=0;while(i<len){if(typeof base[i]==='string'){if(i===0){first=L.tileLayer.provider(base[0]);out[labelFormatter(base[i])]=first;}else{out[labelFormatter(base[i])]=L.tileLayer.provider(base[i]);}}
+i++;}
+base=out;}());this._first=first;}
+if(overlay&&overlay.length){(function(){var out={},len=overlay.length,i=0;while(i<len){if(typeof overlay[i]==='string'){out[labelFormatter(overlay[i])]=L.tileLayer.provider(overlay[i]);}
+i++;}
+overlay=out;}());}
+L.Control.Layers.prototype.initialize.call(this,base,overlay,options);},onAdd:function(map){this._first.addTo(map);return L.Control.Layers.prototype.onAdd.call(this,map);}});L.control.layers.provided=function(baseLayers,overlays,options){return new L.Control.Layers.Provided(baseLayers,overlays,options);};}());function mapit(obj){lat=parseFloat(obj.attr('data-latitude'));lon=parseFloat(obj.attr('data-longitude'));elid=obj.attr('data-imgid');map=L.map(document.getElementById("mw-"+elid));centerCoord=new L.LatLng(lat,lon);zoom=8;L.tileLayer.provider('Esri.WorldTopoMap',{maxZoom:18,attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Tiles © Esri and the GIS User Community'}).addTo(map);map.setView(centerCoord,zoom);L.marker([lat,lon]).addTo(map);}
function create_map(obj){var imgid=obj.attr('data-imgid'); $('<div class="map-container" id="mc-'+imgid+'">').insertBefore($(obj).parent().parent());$('#mc-'+imgid).append('<div class="map-wrapper" id="mw-'+imgid+'">'); $('#mc-'+imgid).css({bottom:function(index,value){return parseFloat($(obj).parent().parent().height())+20;}});mapit(obj);}
function remove_map(imgid){$('#mc-'+imgid).remove();}
$(document).ready(function(){ $('.map-link').click(function(){imgid=$(this).attr('data-imgid');if($('#mc-'+imgid).is(":visible")){remove_map(imgid);}else{create_map($(this));}
diff --git a/site/media/js/underscore-min.js b/site/media/js/underscore-min.js
deleted file mode 100644
index 7cfbf99..0000000
--- a/site/media/js/underscore-min.js
+++ /dev/null
@@ -1,17 +0,0 @@
-(function(){var n=this,A=n._,r=typeof StopIteration!=="undefined"?StopIteration:"__break__",B=function(a){return a.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},j=Array.prototype,l=Object.prototype,o=j.slice,C=j.unshift,D=l.toString,p=l.hasOwnProperty,s=j.forEach,t=j.map,u=j.reduce,v=j.reduceRight,w=j.filter,x=j.every,y=j.some,m=j.indexOf,z=j.lastIndexOf;l=Array.isArray;var E=Object.keys,b=function(a){return new k(a)};if(typeof exports!=="undefined")exports._=b;n._=b;b.VERSION="1.0.2";var i=b.forEach=
-function(a,c,d){try{if(s&&a.forEach===s)a.forEach(c,d);else if(b.isNumber(a.length))for(var e=0,f=a.length;e<f;e++)c.call(d,a[e],e,a);else for(e in a)p.call(a,e)&&c.call(d,a[e],e,a)}catch(g){if(g!=r)throw g;}return a};b.map=function(a,c,d){if(t&&a.map===t)return a.map(c,d);var e=[];i(a,function(f,g,h){e.push(c.call(d,f,g,h))});return e};b.reduce=function(a,c,d,e){if(u&&a.reduce===u)return a.reduce(b.bind(d,e),c);i(a,function(f,g,h){c=d.call(e,c,f,g,h)});return c};b.reduceRight=function(a,c,d,e){if(v&&
-a.reduceRight===v)return a.reduceRight(b.bind(d,e),c);a=b.clone(b.toArray(a)).reverse();return b.reduce(a,c,d,e)};b.detect=function(a,c,d){var e;i(a,function(f,g,h){if(c.call(d,f,g,h)){e=f;b.breakLoop()}});return e};b.filter=function(a,c,d){if(w&&a.filter===w)return a.filter(c,d);var e=[];i(a,function(f,g,h){c.call(d,f,g,h)&&e.push(f)});return e};b.reject=function(a,c,d){var e=[];i(a,function(f,g,h){!c.call(d,f,g,h)&&e.push(f)});return e};b.every=function(a,c,d){c=c||b.identity;if(x&&a.every===x)return a.every(c,
-d);var e=true;i(a,function(f,g,h){(e=e&&c.call(d,f,g,h))||b.breakLoop()});return e};b.some=function(a,c,d){c=c||b.identity;if(y&&a.some===y)return a.some(c,d);var e=false;i(a,function(f,g,h){if(e=c.call(d,f,g,h))b.breakLoop()});return e};b.include=function(a,c){if(m&&a.indexOf===m)return a.indexOf(c)!=-1;var d=false;i(a,function(e){if(d=e===c)b.breakLoop()});return d};b.invoke=function(a,c){var d=b.rest(arguments,2);return b.map(a,function(e){return(c?e[c]:e).apply(e,d)})};b.pluck=function(a,c){return b.map(a,
-function(d){return d[c]})};b.max=function(a,c,d){if(!c&&b.isArray(a))return Math.max.apply(Math,a);var e={computed:-Infinity};i(a,function(f,g,h){g=c?c.call(d,f,g,h):f;g>=e.computed&&(e={value:f,computed:g})});return e.value};b.min=function(a,c,d){if(!c&&b.isArray(a))return Math.min.apply(Math,a);var e={computed:Infinity};i(a,function(f,g,h){g=c?c.call(d,f,g,h):f;g<e.computed&&(e={value:f,computed:g})});return e.value};b.sortBy=function(a,c,d){return b.pluck(b.map(a,function(e,f,g){return{value:e,
-criteria:c.call(d,e,f,g)}}).sort(function(e,f){e=e.criteria;f=f.criteria;return e<f?-1:e>f?1:0}),"value")};b.sortedIndex=function(a,c,d){d=d||b.identity;for(var e=0,f=a.length;e<f;){var g=e+f>>1;d(a[g])<d(c)?(e=g+1):(f=g)}return e};b.toArray=function(a){if(!a)return[];if(a.toArray)return a.toArray();if(b.isArray(a))return a;if(b.isArguments(a))return o.call(a);return b.values(a)};b.size=function(a){return b.toArray(a).length};b.first=function(a,c,d){return c&&!d?o.call(a,0,c):a[0]};b.rest=function(a,
-c,d){return o.call(a,b.isUndefined(c)||d?1:c)};b.last=function(a){return a[a.length-1]};b.compact=function(a){return b.filter(a,function(c){return!!c})};b.flatten=function(a){return b.reduce(a,[],function(c,d){if(b.isArray(d))return c.concat(b.flatten(d));c.push(d);return c})};b.without=function(a){var c=b.rest(arguments);return b.filter(a,function(d){return!b.include(c,d)})};b.uniq=function(a,c){return b.reduce(a,[],function(d,e,f){if(0==f||(c===true?b.last(d)!=e:!b.include(d,e)))d.push(e);return d})};
-b.intersect=function(a){var c=b.rest(arguments);return b.filter(b.uniq(a),function(d){return b.every(c,function(e){return b.indexOf(e,d)>=0})})};b.zip=function(){for(var a=b.toArray(arguments),c=b.max(b.pluck(a,"length")),d=new Array(c),e=0;e<c;e++)d[e]=b.pluck(a,String(e));return d};b.indexOf=function(a,c){if(m&&a.indexOf===m)return a.indexOf(c);for(var d=0,e=a.length;d<e;d++)if(a[d]===c)return d;return-1};b.lastIndexOf=function(a,c){if(z&&a.lastIndexOf===z)return a.lastIndexOf(c);for(var d=a.length;d--;)if(a[d]===
-c)return d;return-1};b.range=function(a,c,d){var e=b.toArray(arguments),f=e.length<=1;a=f?0:e[0];c=f?e[0]:e[1];d=e[2]||1;e=Math.ceil((c-a)/d);if(e<=0)return[];e=new Array(e);f=a;for(var g=0;;f+=d){if((d>0?f-c:c-f)>=0)return e;e[g++]=f}};b.bind=function(a,c){var d=b.rest(arguments,2);return function(){return a.apply(c||{},d.concat(b.toArray(arguments)))}};b.bindAll=function(a){var c=b.rest(arguments);if(c.length==0)c=b.functions(a);i(c,function(d){a[d]=b.bind(a[d],a)});return a};b.delay=function(a,
-c){var d=b.rest(arguments,2);return setTimeout(function(){return a.apply(a,d)},c)};b.defer=function(a){return b.delay.apply(b,[a,1].concat(b.rest(arguments)))};b.wrap=function(a,c){return function(){var d=[a].concat(b.toArray(arguments));return c.apply(c,d)}};b.compose=function(){var a=b.toArray(arguments);return function(){for(var c=b.toArray(arguments),d=a.length-1;d>=0;d--)c=[a[d].apply(this,c)];return c[0]}};b.keys=E||function(a){if(b.isArray(a))return b.range(0,a.length);var c=[];for(var d in a)p.call(a,
-d)&&c.push(d);return c};b.values=function(a){return b.map(a,b.identity)};b.functions=function(a){return b.filter(b.keys(a),function(c){return b.isFunction(a[c])}).sort()};b.extend=function(a){i(b.rest(arguments),function(c){for(var d in c)a[d]=c[d]});return a};b.clone=function(a){if(b.isArray(a))return a.slice(0);return b.extend({},a)};b.tap=function(a,c){c(a);return a};b.isEqual=function(a,c){if(a===c)return true;var d=typeof a;if(d!=typeof c)return false;if(a==c)return true;if(!a&&c||a&&!c)return false;
-if(a.isEqual)return a.isEqual(c);if(b.isDate(a)&&b.isDate(c))return a.getTime()===c.getTime();if(b.isNaN(a)&&b.isNaN(c))return true;if(b.isRegExp(a)&&b.isRegExp(c))return a.source===c.source&&a.global===c.global&&a.ignoreCase===c.ignoreCase&&a.multiline===c.multiline;if(d!=="object")return false;if(a.length&&a.length!==c.length)return false;d=b.keys(a);var e=b.keys(c);if(d.length!=e.length)return false;for(var f in a)if(!(f in c)||!b.isEqual(a[f],c[f]))return false;return true};b.isEmpty=function(a){if(b.isArray(a))return a.length===
-0;for(var c in a)if(p.call(a,c))return false;return true};b.isElement=function(a){return!!(a&&a.nodeType==1)};b.isArray=l||function(a){return!!(a&&a.concat&&a.unshift&&!a.callee)};b.isArguments=function(a){return a&&a.callee};b.isFunction=function(a){return!!(a&&a.constructor&&a.call&&a.apply)};b.isString=function(a){return!!(a===""||a&&a.charCodeAt&&a.substr)};b.isNumber=function(a){return a===+a||D.call(a)==="[object Number]"};b.isBoolean=function(a){return a===true||a===false};b.isDate=function(a){return!!(a&&
-a.getTimezoneOffset&&a.setUTCFullYear)};b.isRegExp=function(a){return!!(a&&a.test&&a.exec&&(a.ignoreCase||a.ignoreCase===false))};b.isNaN=function(a){return b.isNumber(a)&&isNaN(a)};b.isNull=function(a){return a===null};b.isUndefined=function(a){return typeof a=="undefined"};b.noConflict=function(){n._=A;return this};b.identity=function(a){return a};b.times=function(a,c,d){for(var e=0;e<a;e++)c.call(d,e)};b.breakLoop=function(){throw r;};b.mixin=function(a){i(b.functions(a),function(c){F(c,b[c]=a[c])})};
-var G=0;b.uniqueId=function(a){var c=G++;return a?a+c:c};b.templateSettings={start:"<%",end:"%>",interpolate:/<%=(.+?)%>/g};b.template=function(a,c){var d=b.templateSettings,e=new RegExp("'(?=[^"+d.end.substr(0,1)+"]*"+B(d.end)+")","g");a=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+a.replace(/[\r\t\n]/g," ").replace(e,"\t").split("'").join("\\'").split("\t").join("'").replace(d.interpolate,"',$1,'").split(d.start).join("');").split(d.end).join("p.push('")+
-"');}return p.join('');");return c?a(c):a};b.each=b.forEach;b.foldl=b.inject=b.reduce;b.foldr=b.reduceRight;b.select=b.filter;b.all=b.every;b.any=b.some;b.head=b.first;b.tail=b.rest;b.methods=b.functions;var k=function(a){this._wrapped=a},q=function(a,c){return c?b(a).chain():a},F=function(a,c){k.prototype[a]=function(){var d=b.toArray(arguments);C.call(d,this._wrapped);return q(c.apply(b,d),this._chain)}};b.mixin(b);i(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var c=j[a];
-k.prototype[a]=function(){c.apply(this._wrapped,arguments);return q(this._wrapped,this._chain)}});i(["concat","join","slice"],function(a){var c=j[a];k.prototype[a]=function(){return q(c.apply(this._wrapped,arguments),this._chain)}});k.prototype.chain=function(){this._chain=true;return this};k.prototype.value=function(){return this._wrapped}})();