Skip to content

Instantly share code, notes, and snippets.

@krzysztofjablonski
Created June 25, 2012 21:24
Show Gist options
  • Save krzysztofjablonski/2991352 to your computer and use it in GitHub Desktop.
Save krzysztofjablonski/2991352 to your computer and use it in GitHub Desktop.
.vmm-timeline{}.vmm-timeline div *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}
.vmm-timeline h1,.vmm-timeline h2,.vmm-timeline h3,.vmm-timeline h4,.vmm-timeline h5,.vmm-timeline h6,.vmm-timeline p,.vmm-timeline blockquote,.vmm-timeline pre,.vmm-timeline a,.vmm-timeline abbr,.vmm-timeline acronym,.vmm-timeline address,.vmm-timeline cite,.vmm-timeline code,.vmm-timeline del,.vmm-timeline dfn,.vmm-timeline em,.vmm-timeline img,.vmm-timeline q,.vmm-timeline s,.vmm-timeline samp,.vmm-timeline small,.vmm-timeline strike,.vmm-timeline strong,.vmm-timeline sub,.vmm-timeline sup,.vmm-timeline tt,.vmm-timeline var,.vmm-timeline dd,.vmm-timeline dl,.vmm-timeline dt,.vmm-timeline li,.vmm-timeline ol,.vmm-timeline ul,.vmm-timeline fieldset,.vmm-timeline form,.vmm-timeline label,.vmm-timeline legend,.vmm-timeline button,.vmm-timeline table,.vmm-timeline caption,.vmm-timeline tbody,.vmm-timeline tfoot,.vmm-timeline thead,.vmm-timeline tr,.vmm-timeline th,.vmm-timeline td,.vmm-timeline .container,.vmm-timeline .content-container,.vmm-timeline .media,.vmm-timeline .text,.vmm-timeline .slider,.vmm-timeline .date,.vmm-timeline .title,.vmm-timeline .messege,.vmm-timeline .map,.vmm-timeline .credit,.vmm-timeline .caption,.vmm-timeline .feedback,.vmm-timeline .feature,.vmm-timeline .toolbar,.vmm-timeline .marker,.vmm-timeline .dot,.vmm-timeline .line,.vmm-timeline .flag,.vmm-timeline .time,.vmm-timeline .era,.vmm-timeline .major,.vmm-timeline .minor,.vmm-timeline .navigation,.vmm-timeline .start,.vmm-timeline .active{margin:0;padding:0;border:0;font-weight:normal;font-style:normal;font-size:100%;line-height:1;font-family:inherit;}
.vmm-timeline table{border-collapse:collapse;border-spacing:0;}
.vmm-timeline ol,.vmm-timeline ul{list-style:none;}
.vmm-timeline q:before,.vmm-timeline q:after,.vmm-timeline blockquote:before,.vmm-timeline blockquote:after{content:"";}
.vmm-timeline a:focus{outline:thin dotted;}
.vmm-timeline a:hover,.vmm-timeline a:active{outline:0;}
.vmm-timeline article,.vmm-timeline aside,.vmm-timeline details,.vmm-timeline figcaption,.vmm-timeline figure,.vmm-timeline footer,.vmm-timeline header,.vmm-timeline hgroup,.vmm-timeline nav,.vmm-timeline section{display:block;}
.vmm-timeline audio,.vmm-timeline canvas,.vmm-timeline video{display:inline-block;*display:inline;*zoom:1;}
.vmm-timeline audio:not([controls]){display:none;}
.vmm-timeline div{max-width:none;}
.vmm-timeline sub,.vmm-timeline sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}
.vmm-timeline sup{top:-0.5em;}
.vmm-timeline sub{bottom:-0.25em;}
.vmm-timeline img{border:0;-ms-interpolation-mode:bicubic;}
.vmm-timeline button,.vmm-timeline input,.vmm-timeline select,.vmm-timeline textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;}
.vmm-timeline button,.vmm-timeline input{line-height:normal;*overflow:visible;}
.vmm-timeline button::-moz-focus-inner,.vmm-timeline input::-moz-focus-inner{border:0;padding:0;}
.vmm-timeline button,.vmm-timeline input[type="button"],.vmm-timeline input[type="reset"],.vmm-timeline input[type="submit"]{cursor:pointer;-webkit-appearance:button;}
.vmm-timeline input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}
.vmm-timeline input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}
.vmm-timeline textarea{overflow:auto;vertical-align:top;}
.vmm-timeline{font-family:"Georgia",Times New Roman,Times,serif;}.vmm-timeline .twitter,.vmm-timeline .vcard,.vmm-timeline .messege,.vmm-timeline .credit,.vmm-timeline .caption,.vmm-timeline .zoom-in,.vmm-timeline .zoom-out,.vmm-timeline .back-home,.vmm-timeline .time-interval div,.vmm-timeline .time-interval-major div,.vmm-timeline .nav-container{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif !important;}
.vmm-timeline h1.date,.vmm-timeline h2.date,.vmm-timeline h3.date,.vmm-timeline h4.date,.vmm-timeline h5.date,.vmm-timeline h6.date{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif !important;}
.vmm-timeline .timenav h1,.vmm-timeline .flag-content h1,.vmm-timeline .era h1,.vmm-timeline .timenav h2,.vmm-timeline .flag-content h2,.vmm-timeline .era h2,.vmm-timeline .timenav h3,.vmm-timeline .flag-content h3,.vmm-timeline .era h3,.vmm-timeline .timenav h4,.vmm-timeline .flag-content h4,.vmm-timeline .era h4,.vmm-timeline .timenav h5,.vmm-timeline .flag-content h5,.vmm-timeline .era h5,.vmm-timeline .timenav h6,.vmm-timeline .flag-content h6,.vmm-timeline .era h6{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif !important;}
.vmm-timeline p,.vmm-timeline blockquote,.vmm-timeline blockquote p,.vmm-timeline .twitter blockquote p{font-family:"Georgia",Times New Roman,Times,serif !important;}
.vmm-timeline .feature h1,.vmm-timeline .feature h2,.vmm-timeline .feature h3,.vmm-timeline .feature h4,.vmm-timeline .feature h5,.vmm-timeline .feature h6{font-family:"Georgia",Times New Roman,Times,serif;}
.tooltip{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;}
#timeline-embed{background-color:#ffffff;margin-bottom:20px;border:1px solid #cccccc;padding-top:20px;padding-bottom:20px;clear:both;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-box-shadow:1px 1px 3px rgba(0, 0, 0, 0.35);-moz-box-shadow:1px 1px 3px rgba(0, 0, 0, 0.35);box-shadow:1px 1px 3px rgba(0, 0, 0, 0.35);}
#timeline-embed.full-embed{overflow:hidden;border:0 !important;padding:0 !important;margin:0 !important;clear:both;-webkit-border-radius:0 !important;-moz-border-radius:0 !important;border-radius:0 !important;-webkit-box-shadow:0 0px 0px rgba(0, 0, 0, 0.25) !important;-moz-box-shadow:0 0px 0px rgba(0, 0, 0, 0.25) !important;box-shadow:0px 0px 0px rgba(0, 0, 0, 0.25) !important;}
#timeline-embed.sized-embed{overflow:hidden;border:1px solid #cccccc;padding-top:7px;padding-bottom:7px;margin:0 !important;clear:both;-webkit-box-shadow:0 0px 0px rgba(0, 0, 0, 0.25) !important;-moz-box-shadow:0 0px 0px rgba(0, 0, 0, 0.25) !important;box-shadow:0px 0px 0px rgba(0, 0, 0, 0.25) !important;}
.vmm-timeline{width:100%;height:100%;padding:0px;margin:0px;background-color:#ffffff;position:absolute;z-index:100;clear:both;overflow:hidden;}.vmm-timeline .vmm-clear:before,.vmm-timeline .vmm-clear:after{content:"";display:table;}
.vmm-timeline .vmm-clear:after{clear:both;}
.vmm-timeline .vmm-clear{*zoom:1;}
.vmm-timeline .feature{width:100%;}.vmm-timeline .feature .slider{width:100%;float:left;position:relative;z-index:10;padding-top:15px;-webkit-box-shadow:1px 1px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:1px 1px 7px rgba(0, 0, 0, 0.3);box-shadow:1px 1px 7px rgba(0, 0, 0, 0.3);}
.vmm-timeline .feedback{position:absolute;display:table;overflow:hidden;top:0px;left:0px;z-index:205;width:100%;height:100%;background-color:#ffffff;}.vmm-timeline .feedback .messege{display:table-cell;vertical-align:middle;font-size:15px;font-weight:normal;line-height:20px;width:75%;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;text-align:center;}
.vmm-timeline .container.main{position:absolute;top:0px: left:0px;padding-bottom:3px;width:auto;height:auto;margin:0px;clear:both;}
.vmm-timeline img,.vmm-timeline embed,.vmm-timeline object,.vmm-timeline video,.vmm-timeline iframe{max-width:100%;}
.vmm-timeline img{max-height:100%;border:1px solid #999999;}
.vmm-timeline a{color:#0088cc;text-decoration:none;}
.vmm-timeline a:hover{color:#005580;text-decoration:underline;}
.vmm-timeline .vcard{float:right;margin-bottom:15px;}.vmm-timeline .vcard a{color:#333333;}
.vmm-timeline .vcard a:hover{text-decoration:none;}.vmm-timeline .vcard a:hover .fn{text-decoration:underline;}
.vmm-timeline .vcard .fn,.vmm-timeline .vcard .nickname{padding-left:42px;}
.vmm-timeline .vcard .fn{display:block;font-weight:bold;}
.vmm-timeline .vcard .nickname{margin-top:1px;display:block;color:#666666;}
.vmm-timeline .vcard .avatar{float:left;display:block;width:32px;height:32px;}.vmm-timeline .vcard .avatar img{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}
.vmm-timeline .thumbnail{width:24px;height:24px;overflow:hidden;float:left;margin:0;margin-right:1px;margin-top:6px;border:0;padding:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
.vmm-timeline a.thumbnail:hover{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
.vmm-timeline .thumbnail.thumb-plaintext{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-280px -48px;}
.vmm-timeline .thumbnail.thumb-quote{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-232px -48px;}
.vmm-timeline .thumbnail.thumb-document{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-256px -48px;}
.vmm-timeline .thumbnail.thumb-photo{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-280px -24px;border:0;}.vmm-timeline .thumbnail.thumb-photo img{border:0px none #cccccc !important;}
.vmm-timeline .thumbnail.thumb-twitter{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-256px -24px;}
.vmm-timeline .thumbnail.thumb-vimeo{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-328px -48px;}
.vmm-timeline .thumbnail.thumb-youtube{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-328px -72px;}
.vmm-timeline .thumbnail.thumb-video{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-328px -24px;}
.vmm-timeline .thumbnail.thumb-audio{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-304px -24px;}
.vmm-timeline .thumbnail.thumb-map{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-208px -48px;}
.vmm-timeline .thumbnail.thumb-website{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-232px -24px;}
.vmm-timeline .thumbnail.thumb-link{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-184px -72px;}
.vmm-timeline .thumbnail.thumb-wikipedia{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-184px -48px;}
.vmm-timeline .thumbnail.thumb-storify{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-328px -96px;}
.vmm-timeline .thumbnail.thumb-googleplus{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-208px -72px;}
.vmm-timeline .thumb-storify-full{height:12px;background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-280px -96px;width:48px;}
.vmm-timeline thumbnail.thumb-instagram{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-208px -96px;}
.vmm-timeline thumbnail.thumb-instagram-full{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-232px -96px;width:48px;height:24px;}
.vmm-timeline .thumbnail-inline{width:16px;height:14px;overflow:hidden;display:inline-block;margin-right:1px;margin-left:3px;margin-top:2px;filter:alpha(opacity=50);-khtml-opacity:0.5;-moz-opacity:0.5;opacity:0.5;}
.vmm-timeline .twitter .thumbnail-inline{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-160px -96px;}
.vmm-timeline .storify .thumbnail-inline{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-184px -96px;}
.vmm-timeline .googleplus .thumbnail-inline{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-208px -96px;}
.vmm-timeline .zFront{z-index:204;}
.slider{width:100%;height:100%;overflow:hidden;}.slider .slider-container-mask{text-align:center;width:100%;height:100%;overflow:hidden;}.slider .slider-container-mask .slider-container{position:absolute;top:0px;left:-2160px;width:100%;height:100%;text-align:center;display:block;background-color:#ffffff;}.slider .slider-container-mask .slider-container .slider-item-container{display:table-cell;vertical-align:middle;}
.slider img,.slider embed,.slider object,.slider video,.slider iframe{max-width:100%;}
.slider .nav-previous,.slider .nav-next{position:absolute;top:0px;width:100px;color:#DBDBDB;font-size:11px;}.slider .nav-previous .nav-container,.slider .nav-next .nav-container{height:100px;width:100px;position:absolute;}
.slider .nav-previous .icon,.slider .nav-next .icon{margin-top:12px;margin-bottom:15px;}
.slider .nav-previous .date,.slider .nav-next .date,.slider .nav-previous .title,.slider .nav-next .title{line-height:14px;}.slider .nav-previous .date a,.slider .nav-next .date a,.slider .nav-previous .title a,.slider .nav-next .title a{color:#999999;}
.slider .nav-previous .date small,.slider .nav-next .date small,.slider .nav-previous .title small,.slider .nav-next .title small{display:none;}
.slider .nav-previous .date,.slider .nav-next .date{font-size:13px;line-height:13px;font-weight:bold;text-transform:uppercase;margin-bottom:5px;}
.slider .nav-previous .title,.slider .nav-next .title{font-size:11px;line-height:13px;}
.slider .nav-previous:hover,.slider .nav-next:hover{color:#333333;cursor:pointer;}
.slider .nav-previous{float:left;text-align:left;}.slider .nav-previous .icon{margin-left:15px;height:24px;background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-160px 0;width:24px;height:24px;overflow:hidden;}
.slider .nav-previous .date,.slider .nav-previous .title{text-align:left;padding-left:15px;}
.slider .nav-previous:hover .icon{margin-left:10px;}
.slider .nav-next{float:right;text-align:right;}.slider .nav-next .icon{margin-left:61px;background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-184px 0;width:24px;height:24px;height:24px;overflow:hidden;}
.slider .nav-next .date,.slider .nav-next .title{text-align:right;padding-right:15px;}
.slider .nav-next:hover .icon{margin-left:66px;}
.slider .slider-item{position:absolute;width:700px;height:100%;padding:0px;margin:0px;display:table;overflow-y:auto;}.slider .slider-item .content{display:table-cell;vertical-align:middle;}.slider .slider-item .content .pad-top .text .container{padding-top:15px;}
.slider .slider-item .content .pad-right .text .container{padding-right:15px;}
.slider .slider-item .content .pad-left .text .container{padding-left:30px;}
.slider .slider-item .content .pad-left .media.text-media .media-wrapper .media-container{border:none;background-color:#ffffff;}
.slider .slider-item .content .content-container{display:table;vertical-align:middle;}.slider .slider-item .content .content-container .text{width:40%;max-width:50%;min-width:120px;display:table-cell;vertical-align:middle;}.slider .slider-item .content .content-container .text .container{display:table-cell;vertical-align:middle;text-align:left;}.slider .slider-item .content .content-container .text .container p{-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;word-wrap:break-word;}
.slider .slider-item .content .content-container .media{width:100%;min-width:50%;float:left;}.slider .slider-item .content .content-container .media .media-wrapper{display:inline-block;margin-left:auto;margin-right:auto;}.slider .slider-item .content .content-container .media .media-wrapper .media-container{display:inline-block;line-height:0px;padding:0px;max-height:100%;}.slider .slider-item .content .content-container .media .media-wrapper .media-container .media-frame,.slider .slider-item .content .content-container .media .media-wrapper .media-container .media-image img{border:1px solid;border-color:#cccccc #999999 #999999 #cccccc;background:#ffffff;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .soundcloud{border:0;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .media-image{display:inline-block;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .media-shadow{position:relative;z-index:1;background:#ffffff;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .media-shadow:before,.slider .slider-item .content .content-container .media .media-wrapper .media-container .media-shadow:after{z-index:-1;position:absolute;content:"";bottom:15px;left:10px;width:50%;top:80%;max-width:300px;background:#999999;-webkit-box-shadow:0 15px 10px #999999;-moz-box-shadow:0 15px 10px #999999;box-shadow:0 15px 10px #999999;-webkit-transform:rotate(-2deg);-moz-transform:rotate(-2deg);-o-transform:rotate(-2deg);-ms-transform:rotate(-2deg);transform:rotate(-2deg);}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .media-shadow::after{-webkit-transform:rotate(2deg);-moz-transform:rotate(2deg);-o-transform:rotate(2deg);-ms-transform:rotate(2deg);transform:rotate(2deg);right:10px;left:auto;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container span.messege{display:block;vertical-align:middle;margin-left:auto;margin-right:auto;text-align:center;background:#ffffff;font-size:28px;font-weight:bold;text-transform:uppercase;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .plain-text{display:table;}.slider .slider-item .content .content-container .media .media-wrapper .media-container .plain-text .container{display:table-cell;vertical-align:middle;font-size:15px;line-height:20px;color:#666666;}.slider .slider-item .content .content-container .media .media-wrapper .media-container .plain-text .container p{margin-bottom:20px;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .wikipedia{font-size:15px;line-height:20px;text-align:left;margin-left:auto;margin-right:auto;margin-bottom:15px;clear:both;}.slider .slider-item .content .content-container .media .media-wrapper .media-container .wikipedia .wiki-source{margin-bottom:15px;font-size:13px;line-height:19px;font-style:italic;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .wikipedia h4{border-bottom:1px solid #cccccc;margin-bottom:5px;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .wikipedia h4 a{color:#000000;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .wikipedia h4 a:hover{color:#0088cc;text-decoration:none;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .wikipedia p{font-size:13px;line-height:19px;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .map{line-height:normal;z-index:200;text-align:left;background-color:#ffffff;}.slider .slider-item .content .content-container .media .media-wrapper .media-container .map img{max-height:none !important;max-width:none !important;border:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .map .google-map{height:100%;width:100%;}
.slider .slider-item .content .content-container .media .media-wrapper .media-container .map .map-attribution{position:absolute;z-index:201;bottom:0px;width:100%;overflow:hidden;}.slider .slider-item .content .content-container .media .media-wrapper .media-container .map .map-attribution .attribution-text{height:19px;overflow:hidden;-webkit-user-select:none;line-height:19px;margin-right:60px;padding-left:65px;font-family:Arial,sans-serif;font-size:10px;color:#444;white-space:nowrap;color:#ffffff;text-shadow:1px 1px 1px #333333;text-align:center;}.slider .slider-item .content .content-container .media .media-wrapper .media-container .map .map-attribution .attribution-text a{color:#ffffff !important;}
.slider .slider-item .content .content-container .media .media-wrapper .credit{color:#999999;text-align:right;display:block;margin:0 auto;margin-top:6px;font-size:10px;line-height:13px;}
.slider .slider-item .content .content-container .media .media-wrapper .caption{text-align:left;margin-top:10px;color:#666666;font-size:11px;line-height:14px;text-rendering:optimizeLegibility;word-wrap:break-word;}
.slider .slider-item .content .media.text-media .media-wrapper .media-container{border:none;background-color:#ffffff;}
.slider .slider-item .content .created-at{width:24px;height:24px;overflow:hidden;margin-left:7.5px;margin-top:2px;display:inline-block;float:right;filter:alpha(opacity=25);-khtml-opacity:0.25;-moz-opacity:0.25;opacity:0.25;}
.slider .slider-item .content .created-at:hover{filter:alpha(opacity=100);-khtml-opacity:1;-moz-opacity:1;opacity:1;}
.slider .slider-item .content .storify .created-at{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-328px -96px;}
.slider .slider-item .content .twitter .created-at{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-256px -24px;}
.slider .slider-item .content .googleplus .googleplus-content{font-size:13px;line-height:19px;margin-bottom:6px;padding-top:10px;background-color:#ffffff;color:#666666;}.slider .slider-item .content .googleplus .googleplus-content p{font-size:13px;line-height:19px;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-title{font-size:28px;line-height:36px;margin-bottom:6px;padding-top:10px;background-color:#ffffff;color:#000000;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-annotation{font-size:15px;line-height:20px;color:#000000;border-bottom:1px solid #e3e3e3;padding-bottom:7.5px;margin-bottom:7.5px;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments{border-top:1px solid #e3e3e3;padding-top:15px;margin-top:15px;border-bottom:1px solid #e3e3e3;padding-bottom:15px;margin-bottom:15px;*zoom:1;zoom:1;}.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments:before,.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments:after{display:table;content:"";}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments:after{clear:both;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments:before,.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments:after{display:table;content:"";zoom:1;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments:after{clear:both;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments h5{margin-bottom:5px;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments a:hover{text-decoration:none;}.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments a:hover h5{text-decoration:underline;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments div{width:50%;padding-left:15px;display:inline-block;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments p{font-size:11px;line-height:14px;margin-bottom:5px;}
.slider .slider-item .content .googleplus .googleplus-content .googleplus-attachments img{float:left;display:block;bottom:0;left:0;margin:auto;position:relative;right:0;top:0;width:40%;}
.slider .slider-item .content .googleplus .proflinkPrefix{color:#0088cc;}
.slider .slider-item .content .googleplus .created-at{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-208px -72px;}
.slider .slider-item .content .twitter,.slider .slider-item .content .plain-text-quote,.slider .slider-item .content .storify,.slider .slider-item .content .googleplus{text-align:left;margin-left:auto;margin-right:auto;margin-bottom:15px;clear:both;}.slider .slider-item .content .twitter blockquote,.slider .slider-item .content .plain-text-quote blockquote,.slider .slider-item .content .storify blockquote,.slider .slider-item .content .googleplus blockquote{color:#666666;}.slider .slider-item .content .twitter blockquote p,.slider .slider-item .content .plain-text-quote blockquote p,.slider .slider-item .content .storify blockquote p,.slider .slider-item .content .googleplus blockquote p{font-size:28px;line-height:36px;margin-bottom:6px;padding-top:10px;background-color:#ffffff;color:#000000;}
.slider .slider-item .content .twitter blockquote .quote-mark,.slider .slider-item .content .plain-text-quote blockquote .quote-mark,.slider .slider-item .content .storify blockquote .quote-mark,.slider .slider-item .content .googleplus blockquote .quote-mark{color:#666666;}
.slider .slider-item .content-container.layout-text-media .text-media{border-top:1px solid #e3e3e3;padding-top:15px;padding-right:0;}
.slider .slider-item .content-container.layout-text-media.pad-left .text-media{padding-right:15px;padding-top:0;border-right:1px solid #e3e3e3;border-top:0px solid #e3e3e3;}
.slider .slider-item .content-container.layout-text{width:100%;}.slider .slider-item .content-container.layout-text .text{width:100%;max-width:100%;}.slider .slider-item .content-container.layout-text .text .container{display:block;vertical-align:middle;text-align:left;padding:0px;width:90%;text-align:left;margin-left:auto;margin-right:auto;}
.slider .slider-item .content-container.layout-media{width:100%;}.slider .slider-item .content-container.layout-media .text{width:100%;height:100%;max-width:100%;display:block;text-align:center;}.slider .slider-item .content-container.layout-media .text .container{display:block;text-align:center;width:100%;margin-left:none;margin-right:none;}
.slider .slider-item .content-container.layout-media .media{width:100%;min-width:50%;float:none;}.slider .slider-item .content-container.layout-media .media .media-wrapper .media-container{margin-left:auto;margin-right:auto;line-height:0px;padding:0px;}
.slider .slider-item .content-container.layout-media .twitter,.slider .slider-item .content-container.layout-media .wikipedia,.slider .slider-item .content-container.layout-media .googleplus{max-width:70%;}
.vmm-timeline .navigation{clear:both;cursor:move;width:100%;height:200px;border-top:1px solid #e3e3e3;position:relative;}.vmm-timeline .navigation .toolbar{position:absolute;top:45px;left:0px;z-index:202;background-color:#ffffff;border:1px solid #cccccc;-webkit-box-shadow:1px 1px 0px rgba(0, 0, 0, 0.2);-moz-box-shadow:1px 1px 0px rgba(0, 0, 0, 0.2);box-shadow:1px 1px 0px rgba(0, 0, 0, 0.2);}.vmm-timeline .navigation .toolbar .zoom-in,.vmm-timeline .navigation .toolbar .zoom-out,.vmm-timeline .navigation .toolbar .back-home{font-weight:normal;font-size:10px;line-height:20px;top:0px;z-index:202;width:18px;height:18px;color:#333333;text-align:center;font-weight:bold;border:1px solid #ffffff;padding:5px;filter:alpha(opacity=50);-khtml-opacity:0.5;-moz-opacity:0.5;opacity:0.5;}
.vmm-timeline .navigation .toolbar .zoom-in:hover,.vmm-timeline .navigation .toolbar .zoom-out:hover,.vmm-timeline .navigation .toolbar .back-home:hover{color:#0088cc;cursor:pointer;filter:alpha(opacity=100);-khtml-opacity:1;-moz-opacity:1;opacity:1;}
.vmm-timeline .navigation .toolbar .zoom-in .icon{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-256px 0;width:24px;height:24px;}
.vmm-timeline .navigation .toolbar .zoom-out .icon{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-280px 0;width:24px;height:24px;}
.vmm-timeline .navigation .toolbar .back-home .icon{background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-328px 0;width:24px;height:24px;}
.vmm-timeline .navigation .timenav-background{position:absolute;cursor:move;top:0px;left:0px;height:150px;width:100%;background-color:#e9e9e9;}.vmm-timeline .navigation .timenav-background .timenav-interval-background{position:absolute;top:151px;left:0px;background:#ffffff;width:100%;height:49px;-webkit-box-shadow:-1px -1px 7px rgba(0, 0, 0, 0.1);-moz-box-shadow:-1px -1px 7px rgba(0, 0, 0, 0.1);box-shadow:-1px -1px 7px rgba(0, 0, 0, 0.1);}.vmm-timeline .navigation .timenav-background .timenav-interval-background .top-highlight{position:absolute;top:-1px;left:0px;z-index:30;width:100%;height:1px;background:#ffffff;filter:alpha(opacity=50);-khtml-opacity:0.5;-moz-opacity:0.5;opacity:0.5;-webkit-box-shadow:1px 1px 5px rgba(0, 0, 0, 0.2);-moz-box-shadow:1px 1px 5px rgba(0, 0, 0, 0.2);box-shadow:1px 1px 5px rgba(0, 0, 0, 0.2);}
.vmm-timeline .navigation .timenav-background .timenav-line{position:absolute;top:0px;left:50%;width:3px;height:150px;background:#0088cc;z-index:201;-webkit-box-shadow:1px 1px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:1px 1px 7px rgba(0, 0, 0, 0.3);box-shadow:1px 1px 7px rgba(0, 0, 0, 0.3);}
.vmm-timeline .navigation .timenav-background .timenav-indicator{position:absolute;top:-1px;left:50%;z-index:202;background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:-160px -48px;width:24px;height:24px;}
.vmm-timeline .navigation .timenav-background .timenav-tag{height:50px;}.vmm-timeline .navigation .timenav-background .timenav-tag div{height:50px;display:table;}.vmm-timeline .navigation .timenav-background .timenav-tag div h3{display:table-cell;vertical-align:middle;padding-left:65px;font-size:15px;color:#d0d0d0;font-weight:bold;text-shadow:0px 1px 1px #ffffff;text-transform:uppercase;}
.vmm-timeline .navigation .timenav-background .timenav-tag-row-2{background:#f1f1f1;}
.vmm-timeline .navigation .timenav-background .timenav-tag-row-3{background:#e9e9e9;}
.vmm-timeline .navigation .timenav{position:absolute;top:0px;left:-250px;z-index:1;}.vmm-timeline .navigation .timenav .content{position:relative;}.vmm-timeline .navigation .timenav .content .marker.start{display:none;}
.vmm-timeline .navigation .timenav .content .marker.active .dot{background:#0088cc;z-index:200;}
.vmm-timeline .navigation .timenav .content .marker.active .line{z-index:199;background:#0088cc;width:1px;}.vmm-timeline .navigation .timenav .content .marker.active .line .event-line{background:#0088cc;filter:alpha(opacity=75);-khtml-opacity:0.75;-moz-opacity:0.75;opacity:0.75;}
.vmm-timeline .navigation .timenav .content .marker.active .flag{z-index:200;background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:0 -53px;width:153px;height:53px;}.vmm-timeline .navigation .timenav .content .marker.active .flag .flag-content h3{color:#0088cc;}
.vmm-timeline .navigation .timenav .content .marker.active .flag .flag-content .thumbnail{opacity:1;-moz-opacity:1;filter:alpha(opacity=100);}
.vmm-timeline .navigation .timenav .content .marker.active .flag.row1,.vmm-timeline .navigation .timenav .content .marker.active .flag.row2,.vmm-timeline .navigation .timenav .content .marker.active .flag.row3{z-index:200;}
.vmm-timeline .navigation .timenav .content .marker.active:hover{cursor:default;}.vmm-timeline .navigation .timenav .content .marker.active:hover .flag .flag-content h3{color:#0088cc;}
.vmm-timeline .navigation .timenav .content .marker.active:hover .flag .flag-content h4{color:#999999;}
.vmm-timeline .navigation .timenav .content .marker:hover .line{z-index:24;background:#999999;}
.vmm-timeline .navigation .timenav .content .marker{position:absolute;top:0px;left:150px;display:block;}.vmm-timeline .navigation .timenav .content .marker .dot{position:absolute;top:150px;left:0px;display:block;width:6px;height:6px;background:#333333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;z-index:21;}
.vmm-timeline .navigation .timenav .content .marker .line{position:absolute;top:0px;left:3px;width:1px;height:150px;background:#cccccc;-moz-box-shadow:1px 0 0 #ffffff;-webkit-box-shadow:1px 0 0 #ffffff;box-shadow:1px 0 0 #ffffff;z-index:22;}.vmm-timeline .navigation .timenav .content .marker .line .event-line{position:absolute;z-index:22;left:0px;height:1px;width:1px;background:#0088cc;filter:alpha(opacity=15);-khtml-opacity:0.15;-moz-opacity:0.15;opacity:0.15;}
.vmm-timeline .navigation .timenav .content .marker .flag{position:absolute;top:15px;left:3px;padding:0px;display:block;z-index:23;width:153px;height:56px;background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:0 0;width:153px;height:53px;}.vmm-timeline .navigation .timenav .content .marker .flag .flag-content{padding:0px 7px 2px 6px;overflow:hidden;height:36px;}.vmm-timeline .navigation .timenav .content .marker .flag .flag-content h3{font-weight:bold;font-size:15px;line-height:20px;font-size:11px;line-height:11px;color:#999999;margin-top:5px;margin-bottom:2px;}.vmm-timeline .navigation .timenav .content .marker .flag .flag-content h3 small{display:none;}
.vmm-timeline .navigation .timenav .content .marker .flag .flag-content h4{display:none;font-weight:normal;font-size:15px;line-height:20px;margin-top:5px;font-size:10px;line-height:10px;color:#aaaaaa;}.vmm-timeline .navigation .timenav .content .marker .flag .flag-content h4 small{display:none;}
.vmm-timeline .navigation .timenav .content .marker .flag .flag-content .thumbnail{margin-bottom:15px;margin-right:3px;opacity:0.5;-moz-opacity:0.5;filter:alpha(opacity=50);}.vmm-timeline .navigation .timenav .content .marker .flag .flag-content .thumbnail img{width:22px;height:22px;max-height:none;max-width:none;border:0;border:1px solid #999999;padding:0;margin:0;}
.vmm-timeline .navigation .timenav .content .marker .flag:hover{cursor:pointer;background-image:url(timeline.png?v2.6);background-repeat:no-repeat;background-position:0 -53px;width:153px;height:53px;}.vmm-timeline .navigation .timenav .content .marker .flag:hover .flag-content h3{color:#333333;}
.vmm-timeline .navigation .timenav .content .marker .flag:hover .flag-content h4{color:#aaaaaa;}
.vmm-timeline .navigation .timenav .content .marker .flag:hover .flag-content .thumbnail{opacity:1;-moz-opacity:1;filter:alpha(opacity=100);}
.vmm-timeline .navigation .timenav .content .marker .flag.row1{z-index:25;top:48px;}
.vmm-timeline .navigation .timenav .content .marker .flag.row2{z-index:24;top:96px;}
.vmm-timeline .navigation .timenav .content .marker .flag.row3{z-index:23;top:1px;}
.vmm-timeline .navigation .timenav .content .marker .flag.zFront{z-index:201;}
.vmm-timeline .navigation .timenav .content .era{position:absolute;top:138px;left:150px;height:12px;display:block;background:#0088cc;overflow:hidden;border-left:1px solid #cccccc;border-right:1px solid #cccccc;border-top:1px solid #cccccc;filter:alpha(opacity=75);-khtml-opacity:0.75;-moz-opacity:0.75;opacity:0.75;-moz-border-radius-topleft:7px;-webkit-border-top-left-radius:7px;border-top-left-radius:7px;-moz-border-radius-topright:7px;-webkit-border-top-right-radius:7px;border-top-right-radius:7px;z-index:-10;}.vmm-timeline .navigation .timenav .content .era h3{font-weight:bold;font-size:10px;line-height:10px;color:#ffffff;position:absolute;top:-1px;left:9px;}
.vmm-timeline .navigation .timenav .time{position:absolute;left:0px;top:150px;height:50px;background-color:#ffffff;}.vmm-timeline .navigation .timenav .time .time-interval-minor{max-width:none;height:6px;white-space:nowrap;position:absolute;top:-9px;left:8px;z-index:10;}.vmm-timeline .navigation .timenav .time .time-interval-minor .minor{position:relative;top:2px;display:inline-block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAMCAMAAACdvocfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRFzMzM////040VdgAAAAJ0Uk5T/wDltzBKAAAAEklEQVR42mJgYAQCBopJgAADAAbwADHy2qHzAAAAAElFTkSuQmCC);width:100px;height:6px;background-position:center top;white-space:nowrap;color:#666666;margin-top:0px;padding-top:0px;}
.vmm-timeline .navigation .timenav .time .time-interval{white-space:nowrap;position:absolute;top:5px;left:0px;}.vmm-timeline .navigation .timenav .time .time-interval div{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAMCAMAAACdvocfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRFzMzM////040VdgAAAAJ0Uk5T/wDltzBKAAAAEklEQVR42mJgYAQCBopJgAADAAbwADHy2qHzAAAAAElFTkSuQmCC);background-position:left top;background-repeat:no-repeat;padding-top:3px;position:absolute;height:3px;left:0px;display:block;font-weight:normal;font-size:10px;line-height:20px;text-transform:uppercase;text-align:left;text-indent:0px;white-space:nowrap;color:#666666;margin-left:0px;margin-right:0px;margin-top:1px;z-index:2;}.vmm-timeline .navigation .timenav .time .time-interval div strong{font-weight:bold;color:#000000;}
.vmm-timeline .navigation .timenav .time .time-interval-major{white-space:nowrap;position:absolute;top:5px;left:0px;}.vmm-timeline .navigation .timenav .time .time-interval-major div{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAMCAMAAACdvocfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRFzMzM////040VdgAAAAJ0Uk5T/wDltzBKAAAAEklEQVR42mJgYAQCBopJgAADAAbwADHy2qHzAAAAAElFTkSuQmCC);background-position:left top;background-repeat:no-repeat;padding-top:15px;position:absolute;height:15px;left:0px;display:block;font-weight:bold;font-size:12px;line-height:20px;text-transform:uppercase;text-align:left;text-indent:0px;white-space:nowrap;color:#333333;margin-left:0px;margin-right:0px;margin-top:1px;z-index:5;}.vmm-timeline .navigation .timenav .time .time-interval-major div strong{font-weight:bold;color:#000000;}
.vmm-timeline{font-size:15px;font-weight:normal;line-height:20px;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;}.vmm-timeline p{font-size:15px;font-weight:normal;line-height:20px;margin-bottom:20px;color:#666666;}.vmm-timeline p small{font-size:12px;line-height:17px;}
.vmm-timeline p:first-child{margin-top:20px;}
.vmm-timeline .navigation p{color:#999999;}
.vmm-timeline .feature h3,.vmm-timeline .feature h4,.vmm-timeline .feature h5,.vmm-timeline .feature h6{margin-bottom:15px;}
.vmm-timeline .feature p{color:#666666;}
.vmm-timeline .feature blockquote,.vmm-timeline .feature blockquote p{color:#000000;}
.vmm-timeline .date a,.vmm-timeline .title a{color:#999999;}
.vmm-timeline .hyphenate{-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;word-wrap:break-word;}
.vmm-timeline h1,.vmm-timeline h2,.vmm-timeline h3,.vmm-timeline h4,.vmm-timeline h5,.vmm-timeline h6{font-weight:normal;color:#000000;text-transform:none;}.vmm-timeline h1 a,.vmm-timeline h2 a,.vmm-timeline h3 a,.vmm-timeline h4 a,.vmm-timeline h5 a,.vmm-timeline h6 a{color:#999999;}
.vmm-timeline h1 small,.vmm-timeline h2 small,.vmm-timeline h3 small,.vmm-timeline h4 small,.vmm-timeline h5 small,.vmm-timeline h6 small{color:#999999;}
.vmm-timeline h1.date,.vmm-timeline h2.date,.vmm-timeline h3.date,.vmm-timeline h4.date,.vmm-timeline h5.date,.vmm-timeline h6.date{font-weight:bold;}
.vmm-timeline h2.start{font-size:36px;line-height:38px;margin-bottom:15px;}
.vmm-timeline h1{margin-bottom:15px;font-size:32px;line-height:34px;}.vmm-timeline h1 small{font-size:18px;}
.vmm-timeline h2{margin-bottom:15px;font-size:28px;line-height:30px;}.vmm-timeline h2 small{font-size:14px;line-height:16px;}
.vmm-timeline h2.date{font-size:16px;line-height:18px;margin-bottom:3.75px;color:#999999;}
.vmm-timeline h3,.vmm-timeline h4,.vmm-timeline h5,.vmm-timeline h6{line-height:40px;}.vmm-timeline h3 .active,.vmm-timeline h4 .active,.vmm-timeline h5 .active,.vmm-timeline h6 .active{color:#0088cc;}
.vmm-timeline h3{font-size:28px;line-height:30px;}.vmm-timeline h3 small{font-size:14px;}
.vmm-timeline h4{font-size:20px;line-height:22px;}.vmm-timeline h4 small{font-size:12px;}
.vmm-timeline h5{font-size:16px;line-height:18px;}
.vmm-timeline h6{font-size:13px;line-height:14px;text-transform:uppercase;}
.vmm-timeline strong{font-weight:bold;}
.vmm-timeline Q{quotes:'„' '“';font-style:italic;}
.vmm-timeline blockquote,.vmm-timeline blockquote p{font-size:28px;line-height:36px;text-align:left;margin-bottom:6px;padding-top:10px;background-color:#ffffff;color:#000000;}
.vmm-timeline .credit{color:#999999;text-align:right;font-size:10px;line-height:10px;display:block;margin:0 auto;clear:both;}
.vmm-timeline .caption{text-align:left;margin-top:5px;color:#666666;font-size:11px;line-height:14px;clear:both;}
.tooltip{position:absolute;z-index:205;display:block;visibility:visible;padding:5px;opacity:0;filter:alpha(opacity=0);font-size:15px;font-weight:bold;line-height:20px;font-size:12px;line-height:12px;}
.tooltip.in{opacity:0.8;filter:alpha(opacity=80);}
.tooltip.top{margin-top:-2px;}
.tooltip.right{margin-left:2px;}
.tooltip.bottom{margin-top:2px;}
.tooltip.left{margin-left:-2px;}
.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000000;}
.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;}
.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #000000;}
.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000;}
.tooltip-inner{max-width:200px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
.tooltip-arrow{position:absolute;width:0;height:0;}
@media only screen and (max-width:480px),only screen and (max-device-width:480px){}@media (max-width:600px){.slider .slider-item .content .content-container{display:block;}.slider .slider-item .content .content-container .text{width:100%;max-width:100%;min-width:120px;display:block;}.slider .slider-item .content .content-container .text .container{display:block;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;word-wrap:break-word;} .slider .slider-item .content .content-container .media{width:100%;min-width:50%;float:none;}.slider .slider-item .content .content-container .media .media-wrapper{margin-left:0px;margin-right:0px;width:100%;display:block;} .slider .slider-item .content .content-container .media.text-media .media-wrapper .media-container{border:none;background-color:#ffffff;}}
/*!
TimelineJS
Designed and built by Zach Wise at VéritéCo
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.gnu.org/licenses/
*//***********************************************
Begin VMM.js
***********************************************//* Verite
* Verite JS Master
* Version: 0.6
* Date: April 26, 2012
* Copyright 2012 Verite unless part of Verite Timeline,
* if part of Timeline then it inherits Timeline's license.
* Designed and built by Zach Wise digitalartwork.net
* ----------------------------------------------------- *//* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},sizes:{api:{width:0,height:0}},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},timers:{api:7e3},api:{pushques:[]},twitter:{active:!1,array:[],api_loaded:!1,que:[]},flickr:{active:!1,array:[],api_loaded:!1,que:[]},youtube:{active:!1,array:[],api_loaded:!1,que:[]},vimeo:{active:!1,array:[],api_loaded:!1,que:[]},googlemaps:{active:!1,map_active:!1,places_active:!1,array:[],api_loaded:!1,que:[]},googledocs:{active:!1,array:[],api_loaded:!1,que:[]},googleplus:{active:!1,array:[],api_loaded:!1,que:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[],tries:0},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" style='"+e+"'");f+=">";b!=null&&b!=""&&(f+=b);f=f+"</"+a+">"}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="<div class='media'>";if(a!=null&&a!=""){valid=!0;d+="<img src='"+a+"'>";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="</div>";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}Array.prototype.remove=function(a,b){var c=this.slice((b||a)+1||this.length);this.length=a<0?this.length+a:a;return this.push.apply(this,c)};Date.prototype.getWeek=function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil(((this-a)/864e5+a.getDay()+1)/7)};Date.prototype.getDayOfYear=function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil((this-a)/864e5)};var is={Null:function(a){return a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){jQuery.ajaxSetup({timeout:3e3});if(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest){trace("IE JSON");var d=a;if(d.match("^http://"))return jQuery.getJSON(d,b,c);if(d.match("^https://")){d=d.replace("https://","http://");return jQuery.getJSON(d,b,c)}return jQuery.getJSON(a,b,c)}return jQuery.getJSON(a,b,c)}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="<div>",g="",h="",i="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},prepend:function(a,b){typeof jQuery!="undefined"&&jQuery(a).prepend(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},delay_animate:function(a,b,c,d,e,f){if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var g=Math.round(c/1500*10)/10,h=g+"s";VMM.Lib.css(b,"-webkit-transition","all "+h+" ease");VMM.Lib.css(b,"-moz-transition","all "+h+" ease");VMM.Lib.css(b,"-o-transition","all "+h+" ease");VMM.Lib.css(b,"-ms-transition","all "+h+" ease");VMM.Lib.css(b,"transition","all "+h+" ease");VMM.Lib.cssmultiple(b,_att)}else typeof jQuery!="undefined"&&jQuery(b).delay(a).animate(e,{duration:c,easing:d})},animate:function(a,b,c,d,e,f){var g="easein",h=!1,i=1e3,j={};b!=null&&(b<1?i=1:i=Math.round(b));c!=null&&c!=""&&(g=c);e!=null&&e!=""&&(h=e);d!=null?j=d:j={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var k=Math.round(i/1500*10)/10,l=k+"s";VMM.Lib.css(a,"-webkit-transition","all "+l+" ease");VMM.Lib.css(a,"-moz-transition","all "+l+" ease");VMM.Lib.css(a,"-o-transition","all "+l+" ease");VMM.Lib.css(a,"-ms-transition","all "+l+" ease");VMM.Lib.css(a,"transition","all "+l+" ease");VMM.Lib.cssmultiple(a,j)}else typeof jQuery!="undefined"&&(f!=null&&f!=""?jQuery(a).animate(j,{queue:h,duration:i,easing:g,complete:f}):jQuery(a).animate(j,{queue:h,duration:i,easing:g}))}}}if(typeof jQuery!="undefined"){(function(a){window.XDomainRequest&&a.ajaxTransport(function(b){if(b.crossDomain&&b.async){if(b.timeout){b.xdrTimeout=b.timeout;delete b.timeout}var c;return{send:function(d,e){function f(b,d,f,g){c.onload=c.onerror=c.ontimeout=a.noop;c=undefined;e(b,d,f,g)}c=new XDomainRequest;c.open(b.type,b.url);c.onload=function(){f(200,"OK",{text:c.responseText},"Content-Type: "+c.contentType)};c.onerror=function(){f(404,"Not Found")};if(b.xdrTimeout){c.ontimeout=function(){f(0,"timeout")};c.timeout=b.xdrTimeout}c.send(b.hasContent&&b.data||null)},abort:function(){if(c){c.onerror=a.noop();c.abort()}}}}})})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b<a.length;b++){var c=a[b].string,d=a[b].prop;this.versionSearchString=a[b].versionSearch||a[b].identity;if(c){if(c.indexOf(a[b].subString)!=-1)return a[b].identity}else if(d)return a[b].identity}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(b==-1)return;return parseFloat(a.substring(b+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera",versionSearch:"Version"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.userAgent,subString:"iPad",identity:"iPad"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};VMM.Browser.init()}typeof VMM!="undefined"&&typeof VMM.FileExtention=="undefined"&&(VMM.FileExtention={googleDocType:function(a){var b=a,c="";c=b.substr(b.length-5,5);var d=["DOC","DOCX","XLS","XLSX","PPT","PPTX","PDF","PAGES","AI","PSD","TIFF","DXF","SVG","EPS","PS","TTF","XPS","ZIP","RAR"],e=!1;for(var f=0;f<d.length;f++)if(c.toLowerCase().match(d[f].toString().toLowerCase())||b.match("docs.google.com"))e=!0;return e}});if(typeof VMM!="undefined"&&typeof VMM.Date=="undefined"){VMM.Date={init:function(){return this},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'<br/><small>'mmmm d',' yyyy'</small>'",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'<br/><small>mmm d',' yyyy'</small>'"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],bc_format:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"dddd', 'h:MM TT'<br/><small>'mmmm d',' yyyy'</small>'",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'<br/><small>'dddd',' mmm d',' yyyy'</small>'"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Date.dateformats=a.dateformats;VMM.Date.month=a.date.month;VMM.Date.month_abbr=a.date.month_abbr;VMM.Date.day=a.date.day;VMM.Date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d,e,f;if(a.match(/,/gi)){c=a.split(",");for(var g=0;g<c.length;g++)c[g]=parseInt(c[g]);c[0]&&b.setFullYear(c[0]);c[1]>1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){if(a.match(" ")){e=a.split(" ");if(a.match(":")){d=e[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=e[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<=5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else if(a.match("T"))if(navigator.userAgent.match(/MSIE\s(?!9.0)/)){e=a.split("T");if(a.match(":")){d=e[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=e[0].split("-");c[0]&&b.setFullYear(c[0]);c[1]>1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2])}else b=new Date(Date.parse(a));else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Date.dateformats.month_short:f=VMM.Date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Date.dateformats.full_short:f=VMM.Date.dateformats.full:a.getMinutes()===0?b?f=VMM.Date.dateformats.time_no_seconds_short:f=VMM.Date.dateformats.time_no_seconds_small_date:b?f=VMM.Date.dateformats.time_no_seconds_short:f=VMM.Date.dateformats.full_long;d=dateFormat(a,f,!1);g=d.split(" ");for(var i=0;i<g.length;i++)if(parseInt(g[i])<0){trace("YEAR IS BC");var j=g[i],k=Math.abs(parseInt(g[i])),l=k.toString()+" B.C.";d=d.replace(j,l)}if(h){e=dateFormat(c,f);g=e.split(" ");for(var i=0;i<g.length;i++)if(parseInt(g[i])<0){trace("YEAR IS BC");var j=g[i],k=Math.abs(parseInt(g[i])),l=k.toString()+" B.C.";e=e.replace(j,l)}}}else{trace("NOT A VALID DATE?");trace(a)}return h?d+" &mdash; "+e:d}}.init();var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length<b)a="0"+a;return a};return function(e,f,g){var h=dateFormat;if(arguments.length==1&&Object.prototype.toString.call(e)=="[object String]"&&!/\d/.test(e)){f=e;e=undefined}isNaN(e)&&trace("invalid date "+e);f=String(h.masks[f]||f||h.masks["default"]);if(f.slice(0,4)=="UTC:"){f=f.slice(4);g=!0}var i=g?"getUTC":"get",j=e[i+"Date"](),k=e[i+"Day"](),l=e[i+"Month"](),m=e[i+"FullYear"](),n=e[i+"Hours"](),o=e[i+"Minutes"](),p=e[i+"Seconds"](),q=e[i+"Milliseconds"](),r=g?0:e.getTimezoneOffset(),s={d:j,dd:d(j),ddd:h.i18n.dayNames[k],dddd:h.i18n.dayNames[k+7],m:l+1,mm:d(l+1),mmm:h.i18n.monthNames[l],mmmm:h.i18n.monthNames[l+12],yy:String(m).slice(2),yyyy:m,h:n%12||12,hh:d(n%12||12),H:n,HH:d(n),M:o,MM:d(o),s:p,ss:d(p),l:d(q,3),L:d(q>99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}typeof VMM!="undefined"&&typeof VMM.Util=="undefined"&&(VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},getObjectAttributeByIndex:function(a,b){if(typeof a!="undefined"){var c=0;for(var d in a){if(b===c)return a[d];c++}return""}return""},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},deDupeArray:function(a){var b,c=a.length,d=[],e={};for(b=0;b<c;b++)e[a[b]]=0;for(b in e)d.push(b);return d},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},doubledigit:function(a){return(a<10?"0":"")+a},truncateWords:function(a,b,c){b||(b=30);c||(c=b);var d=/^[^A-Za-z0-9\'\-]+/gi,e=a.replace(d,""),f=e.split(" "),g=[];b=Math.min(f.length,b);c=Math.min(f.length,c);for(var h=0;h<b;h++)g.push(f[h]);for(var i=b;h<c;h++){var j=f[h];g.push(j);if(j.charAt(j.length-1)==".")break}return g.join(" ")},linkify:function(a,b,c){var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(^|[^\/])(www\.[\S]+(\b|$))/gim,f=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim;return a.replace(d,"<a target='_blank' href='$&' onclick='void(0)'>$&</a>").replace(e,"$1<a target='_blank' onclick='void(0)' href='http://$2'>$2</a>").replace(f,"<a target='_blank' onclick='void(0)' href='mailto:$1'>$1</a>")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"<a href='$1' target='_blank'>$3</a>")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13<a href="$2$5$8$11$14" class="hyphenate">$2$5$8$11$14</a>$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/\B@([\w-]+)/gm,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1<a target='_blank' class='hyphenate' onclick='void(0)' href='http://$2'>$2</a>").replace(i,"<a target='_blank' onclick='void(0)' href='mailto:$1'>$1</a>").replace(j,"<a href='http://twitter.com/$1' target='_blank' onclick='void(0)'>@$1</a>").replace(k,"<a href='http://twitter.com/#search?q=%23$2' target='_blank' 'void(0)'>$1</a>")},linkify_wikipedia:function(a){var b=/<i[^>]*>(.*?)<\/i>/gim;return a.replace(b,"<a target='_blank' href='http://en.wikipedia.org/wiki/$&' onclick='void(0)'>$&</a>").replace(/<i\b[^>]*>/gim,"").replace(/<\/i>/gim,"").replace(/<b\b[^>]*>/gim,"").replace(/<\/b>/gim,"")},unlinkify:function(a){if(!a)return a;a=a.replace(/<a\b[^>]*>/i,"");a=a.replace(/<\/a>/i,"");return a},untagify:function(a){if(!a)return a;a=a.replace(/<\s*\w.*?>/g,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"<br/>")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d<a;d++)b+=c();return b};return d(a)},isEven:function(a){return a%2===0?!0:!1},getUrlVars:function(a){var b=a.toString();b.match("&#038;")?b=b.replace("&#038;","&"):b.match("&#38;")?b=b.replace("&#38;","&"):b.match("&amp;")&&(b=b.replace("&amp;","&"));var c=[],d,e=b.slice(b.indexOf("?")+1).split("&");for(var f=0;f<e.length;f++){d=e[f].split("=");c.push(d[0]);c[d[0]]=d[1]}return c},toHTML:function(a){a=this.nl2br(a);a=this.linkify(a);return a.replace(/\s\s/g,"&nbsp;&nbsp;")},toCamelCase:function(a,b){b!==!1&&(b=!0);var c=(b?a.toLowerCase():a).split(" ");for(var d=0;d<c.length;d++)c[d]=c[d].substr(0,1).toUpperCase()+c[d].substr(1);return c.join(" ")},properQuotes:function(a){return a.replace(/\"([^\"]*)\"/gi,"&#8220;$1&#8221;")},niceNumber:function(a){var b=String(Math.abs(Number(a))),c=b.split(/\./g)[0],d=b.split(/\./g)[1],e="",f=c.toArray();f.reverse();for(var g=1;g<=f.length;g++)g%3==0&&g<f.length?e=","+f[g-1]+e:e=f[g-1]+e;return d!=null&&d!=""&&d!=undefined?e+"."+d:e},toTitleCase:function(a){if(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7)return a.replace("_","%20");var b={__smallWords:["a","an","and","as","at","but","by","en","for","if","in","of","on","or","the","to","v[.]?","via","vs[.]?"],init:function(){this.__smallRE=this.__smallWords.join("|");this.__lowerCaseWordsRE=new RegExp("\\b("+this.__smallRE+")\\b","gi");this.__firstWordRE=new RegExp("^([^a-zA-Z0-9 \\r\\n\\t]*)("+this.__smallRE+")\\b","gi");this.__lastWordRE=new RegExp("\\b("+this.__smallRE+")([^a-zA-Z0-9 \\r\\n\\t]*)$","gi")},toTitleCase:function(a){var b="",c=a.split(/([:.;?!][ ]|(?:[ ]|^)["“])/);for(var d=0;d<c.length;++d){var e=c[d];e=e.replace(/\b([a-zA-Z][a-z.'’]*)\b/g,this.__titleCaseDottedWordReplacer);e=e.replace(this.__lowerCaseWordsRE,this.__lowerReplacer);e=e.replace(this.__firstWordRE,this.__firstToUpperCase);e=e.replace(this.__lastWordRE,this.__firstToUpperCase);b+=e}b=b.replace(/ V(s?)\. /g," v$1. ");b=b.replace(/(['’])S\b/g,"$1s");b=b.replace(/\b(AT&T|Q&A)\b/ig,this.__upperReplacer);return b},__titleCaseDottedWordReplacer:function(a){return a.match(/[a-zA-Z][.][a-zA-Z]/)?a:b.__firstToUpperCase(a)},__lowerReplacer:function(a){return a.toLowerCase()},__upperReplacer:function(a){return a.toUpperCase()},__firstToUpperCase:function(a){var b=a.split(/(^[^a-zA-Z0-9]*[a-zA-Z0-9])(.*)$/);b[1]&&(b[1]=b[1].toUpperCase());return b.join("")}};b.init();a=a.replace(/_/g," ");a=b.toTitleCase(a);return a}}.init());window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c<h.length;c++)h[c]==a&&(b=!0);b||h.push(a);return b}function j(b,c){var d=a.createElement(b),e;for(e in c)c.hasOwnProperty(e)&&d.setAttribute(e,c[e]);return d}function k(a){var b=d[a],c,g;if(b){c=b.callback;g=b.urls;g.shift();e=0;if(!g.length){c&&c.call(b.context,b.obj);d[a]=null;f[a].length&&m(a)}}}function l(){var c=navigator.userAgent;b={async:a.createElement("script").async===!0};(b.webkit=/AppleWebKit\//.test(c))||(b.ie=/MSIE/.test(c))||(b.opera=/Opera/.test(c))||(b.gecko=/Gecko\//.test(c))||(b.unknown=!0)}function m(e,g,h,i,m){var p=function(){k(e)},q=e==="css",r=[],s,t,u,v,w,x;b||l();if(g){g=typeof g=="string"?[g]:g.concat();if(q||b.async||b.gecko||b.opera)f[e].push({urls:g,callback:h,obj:i,context:m});else for(s=0,t=g.length;s<t;++s)f[e].push({urls:[g[s]],callback:s===t-1?h:null,obj:i,context:m})}if(d[e]||!(v=d[e]=f[e].shift()))return;c||(c=a.head||a.getElementsByTagName("head")[0]);w=v.urls;for(s=0,t=w.length;s<t;++s){x=w[s];if(q)u=b.gecko?j("style"):j("link",{href:x,rel:"stylesheet"});else{u=j("script",{src:x});u.async=!1}u.className="lazyload";u.setAttribute("charset","utf-8");if(b.ie&&!q)u.onreadystatechange=function(){if(/loaded|complete/.test(u.readyState)){u.onreadystatechange=null;p()}};else if(q&&(b.gecko||b.webkit))if(b.webkit){v.urls[s]=u.href;o()}else{u.innerHTML='@import "'+x+'";';n(u)}else u.onload=u.onerror=p;r.push(u)}for(s=0,t=r.length;s<t;++s)c.appendChild(r[s])}function n(a){var b;try{b=!!a.sheet.cssRules}catch(c){e+=1;e<200?setTimeout(function(){n(a)},50):b&&k("css");return}k("css")}function o(){var a=d.css,b;if(a){b=g.length;while(--b>=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.ExternalAPI=="undefined"&&(VMM.ExternalAPI={pushQues:function(){VMM.master_config.googlemaps.active&&VMM.ExternalAPI.googlemaps.pushQue();VMM.master_config.youtube.active&&VMM.ExternalAPI.youtube.pushQue();VMM.master_config.soundcloud.active&&VMM.ExternalAPI.soundcloud.pushQue();VMM.master_config.googledocs.active&&VMM.ExternalAPI.googledocs.pushQue();VMM.master_config.googleplus.active&&VMM.ExternalAPI.googleplus.pushQue();VMM.master_config.wikipedia.active&&VMM.ExternalAPI.wikipedia.pushQue();VMM.master_config.vimeo.active&&VMM.ExternalAPI.vimeo.pushQue();VMM.master_config.twitter.active&&VMM.ExternalAPI.twitter.pushQue();VMM.master_config.flickr.active&&VMM.ExternalAPI.flickr.pushQue()},twitter:{tweetArray:[],get:function(a,b){var c={mid:a,id:b};VMM.master_config.twitter.que.push(c);VMM.master_config.twitter.active=!0},create:function(a,b){var c=a.mid.toString(),d={twitterid:a.mid},e="http://api.twitter.com/1/statuses/show.json?id="+a.mid+"&include_entities=true&callback=?",f=setTimeout(VMM.ExternalAPI.twitter.errorTimeOut,VMM.master_config.timers.api,a),g=setTimeout(b,VMM.master_config.timers.api,a);VMM.getJSON(e,function(b){var c=b.id_str,d="<blockquote><p>",e=VMM.Util.linkify_with_twitter(b.text,"_blank");d+=e;d+="</p></blockquote>";typeof b.entities.media!="undefined"&&b.entities.media[0].type!="photo";d+="<div class='vcard author'>";d+="<a class='screen-name url' href='https://twitter.com/"+b.user.screen_name+"' data-screen-name='"+b.user.screen_name+"' target='_blank'>";d+="<span class='avatar'><img src=' "+b.user.profile_image_url+"' alt=''></span>";d+="<span class='fn'>"+b.user.name+"</span>";d+="<span class='nickname'>@"+b.user.screen_name+"<span class='thumbnail-inline'></span></span>";d+="</a>";d+="</div>";VMM.attachElement("#"+a.id.toString(),d);VMM.attachElement("#text_thumb_"+a.id.toString(),b.text)}).error(function(b,c,d){trace("TWITTER error");trace("TWITTER ERROR: "+c+" "+b.responseText);VMM.attachElement("#"+a.id,"<p>ERROR LOADING TWEET "+a.mid+"</p>")}).success(function(a){clearTimeout(f);clearTimeout(g);b()})},errorTimeOut:function(a){trace("TWITTER JSON ERROR TIMEOUT "+a.mid);VMM.attachElement("#tweet_"+a.id,"<span class='messege'><p>Still waiting on Twitter: "+a.mid+"</p></span>");VMM.getJSON("http://api.twitter.com/1/account/rate_limit_status.json",function(a){trace("REMAINING TWITTER API CALLS "+a.remaining_hits);trace("TWITTER RATE LIMIT WILL RESET AT "+a.reset_time);var b="";if(a.remaining_hits==0){b="<p>You've reached the maximum number of tweets you can load in an hour.</p>";b+="<p>You can view tweets again starting at: <br/>"+a.reset_time+"</p>"}else b="<p>Still waiting on Twitter. "+id+"</p>";VMM.attachElement("#twitter_"+id,"<span class='messege'>"+b+"</span>")})},pushQue:function(){if(VMM.master_config.twitter.que.length>0){VMM.ExternalAPI.twitter.create(VMM.master_config.twitter.que[0],VMM.ExternalAPI.twitter.pushQue);VMM.master_config.twitter.que.remove(0)}},getHTML:function(a){var b="http://api.twitter.com/1/statuses/oembed.json?id="+
a+"&callback=?";VMM.getJSON(b,VMM.ExternalAPI.twitter.onJSONLoaded)},onJSONLoaded:function(a){trace("TWITTER JSON LOADED");var b=a.id;VMM.attachElement("#"+b,VMM.Util.linkify_with_twitter(a.html))},parseTwitterDate:function(a){var b=new Date(Date.parse(a));return b},prettyParseTwitterDate:function(a){var b=new Date(Date.parse(a));return VMM.Date.prettyDate(b,!0)},getTweets:function(a){var b=[],c=a.length;for(var d=0;d<a.length;d++){var e="";a[d].tweet.match("status/")?e=a[d].tweet.split("status/")[1]:a[d].tweet.match("statuses/")?e=a[d].tweet.split("statuses/")[1]:e="";var f="http://api.twitter.com/1/statuses/show.json?id="+e+"&include_entities=true&callback=?";VMM.getJSON(f,function(a){var d={},e="<div class='twitter'><blockquote><p>",f=VMM.Util.linkify_with_twitter(a.text,"_blank");e+=f;e+="</p>";e+="— "+a.user.name+" (<a href='https://twitter.com/"+a.user.screen_name+"'>@"+a.user.screen_name+"</a>) <a href='https://twitter.com/"+a.user.screen_name+"/status/"+a.id+"'>"+VMM.ExternalAPI.twitter.prettyParseTwitterDate(a.created_at)+" </a></blockquote></div>";d.content=e;d.raw=a;b.push(d);if(b.length==c){var g={tweetdata:b};VMM.fireEvent(global,"TWEETSLOADED",g)}}).success(function(){trace("second success")}).error(function(){trace("error")}).complete(function(){trace("complete")})}},getTweetSearch:function(a,b){var c=40;b!=null&&b!=""&&(c=b);var d="http://search.twitter.com/search.json?q="+a+"&rpp="+c+"&include_entities=true&result_type=mixed",e=[];VMM.getJSON(d,function(a){for(var b=0;b<a.results.length;b++){var c={},d="<div class='twitter'><blockquote><p>",f=VMM.Util.linkify_with_twitter(a.results[b].text,"_blank");d+=f;d+="</p>";d+="— "+a.results[b].from_user_name+" (<a href='https://twitter.com/"+a.results[b].from_user+"'>@"+a.results[b].from_user+"</a>) <a href='https://twitter.com/"+a.results[b].from_user+"/status/"+a.id+"'>"+VMM.ExternalAPI.twitter.prettyParseTwitterDate(a.results[b].created_at)+" </a></blockquote></div>";c.content=d;c.raw=a.results[b];e.push(c)}var g={tweetdata:e};VMM.fireEvent(global,"TWEETSLOADED",g)})},prettyHTML:function(a,b){var a=a.toString(),c={twitterid:a},d="http://api.twitter.com/1/statuses/show.json?id="+a+"&include_entities=true&callback=?",e=setTimeout(VMM.ExternalAPI.twitter.errorTimeOut,VMM.master_config.timers.api,a);VMM.getJSON(d,VMM.ExternalAPI.twitter.formatJSON).error(function(b,c,d){trace("TWITTER error");trace("TWITTER ERROR: "+c+" "+b.responseText);VMM.attachElement("#twitter_"+a,"<p>ERROR LOADING TWEET "+a+"</p>")}).success(function(a){clearTimeout(e);b&&VMM.ExternalAPI.twitter.secondaryMedia(a)})},formatJSON:function(a){var b=a.id_str,c="<blockquote><p>",d=VMM.Util.linkify_with_twitter(a.text,"_blank");c+=d;c+="</p></blockquote>";c+="<div class='vcard author'>";c+="<a class='screen-name url' href='https://twitter.com/"+a.user.screen_name+"' data-screen-name='"+a.user.screen_name+"' target='_blank'>";c+="<span class='avatar'><img src=' "+a.user.profile_image_url+"' alt=''></span>";c+="<span class='fn'>"+a.user.name+"</span>";c+="<span class='nickname'>@"+a.user.screen_name+"<span class='thumbnail-inline'></span></span>";c+="</a>";c+="</div>";typeof a.entities.media!="undefined"&&a.entities.media[0].type=="photo"&&(c+="<img src=' "+a.entities.media[0].media_url+"' alt=''>");VMM.attachElement("#twitter_"+b.toString(),c);VMM.attachElement("#text_thumb_"+b.toString(),a.text)}},googlemaps:{get:function(a,b){var c,d,e;e=VMM.Util.getUrlVars(a);VMM.master_config.Timeline.api_keys.google!=""?d=VMM.master_config.Timeline.api_keys.google:d=Aes.Ctr.decrypt(VMM.master_config.api_keys_master.google,VMM.master_config.vp,256);var f="http://maps.googleapis.com/maps/api/js?key="+d+"&libraries=places&sensor=false&callback=VMM.ExternalAPI.googlemaps.onMapAPIReady",g={url:a,vars:e,id:b};if(VMM.master_config.googlemaps.active)VMM.master_config.googlemaps.que.push(g);else{VMM.master_config.googlemaps.que.push(g);VMM.master_config.googlemaps.api_loaded||VMM.LoadLib.js(f,function(){trace("Google Maps API Library Loaded")})}},create:function(a){function e(a){if(a in VMM.ExternalAPI.googlemaps.map_providers){b=VMM.ExternalAPI.googlemaps.map_attribution[VMM.ExternalAPI.googlemaps.map_providers[a].attribution];return VMM.ExternalAPI.googlemaps.map_providers[a]}if(VMM.ExternalAPI.googlemaps.defaultType(a)){trace("GOOGLE MAP DEFAULT TYPE");return google.maps.MapTypeId[a.toUpperCase()]}trace("Not a maptype: "+a)}function o(){var b=a.url+"&output=kml";b=b.replace("&output=embed","");var c=new google.maps.KmlLayer(b,{preserveViewport:!0}),e=new google.maps.InfoWindow;c.setMap(d);google.maps.event.addListenerOnce(c,"defaultviewport_changed",function(){d.fitBounds(c.getDefaultViewport());i&&d.panTo(f);j&&d.setZoom(h)});google.maps.event.addListener(c,"click",function(a){function c(a){e.setContent(a);e.open(d)}var b=a.featureData.description;c(b)})}var b="",c,d;google.maps.VeriteMapType=function(a){if(VMM.ExternalAPI.googlemaps.defaultType(a))return google.maps.MapTypeId[a.toUpperCase()];var b=e(a);return google.maps.ImageMapType.call(this,{getTileUrl:function(a,c){var d=(c+a.x+a.y)%VMM.ExternalAPI.googlemaps.map_subdomains.length;return[b.url.replace("{S}",VMM.ExternalAPI.googlemaps.map_subdomains[d]).replace("{Z}",c).replace("{X}",a.x).replace("{Y}",a.y).replace("{z}",c).replace("{x}",a.x).replace("{y}",a.y)]},tileSize:new google.maps.Size(256,256),name:a,minZoom:b.minZoom,maxZoom:b.maxZoom})};google.maps.VeriteMapType.prototype=new google.maps.ImageMapType("_");type.of(VMM.master_config.Timeline.maptype)=="string"?VMM.ExternalAPI.googlemaps.defaultType(VMM.master_config.Timeline.maptype)?c=google.maps.MapTypeId[VMM.master_config.Timeline.maptype.toUpperCase()]:c=VMM.master_config.Timeline.maptype:c="toner";var f=new google.maps.LatLng(41.875696,-87.624207),g,h=11,i=!1,j=!1,k;if(type.of(VMM.Util.getUrlVars(a.url)["ll"])=="string"){i=!0;g=VMM.Util.getUrlVars(a.url).ll.split(",");f=new google.maps.LatLng(parseFloat(g[0]),parseFloat(g[1]))}else if(type.of(VMM.Util.getUrlVars(a.url)["sll"])=="string"){g=VMM.Util.getUrlVars(a.url).sll.split(",");f=new google.maps.LatLng(parseFloat(g[0]),parseFloat(g[1]))}if(type.of(VMM.Util.getUrlVars(a.url)["z"])=="string"){j=!0;h=parseFloat(VMM.Util.getUrlVars(a.url).z)}var l={zoom:h,disableDefaultUI:!0,mapTypeControl:!1,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.TOP_RIGHT},center:f,mapTypeId:c,mapTypeControlOptions:{mapTypeIds:[c]}},m=a.id.toString()+"_gmap";VMM.attachElement("#"+a.id,"<div class='google-map' id='"+m+"' style='width=100%;height=100%;'></div>");var d=new google.maps.Map(document.getElementById(m),l);if(!VMM.ExternalAPI.googlemaps.defaultType(VMM.master_config.Timeline.maptype)){d.mapTypes.set(c,new google.maps.VeriteMapType(c));var n="<div class='map-attribution'><div class='attribution-text'>"+b+"</div></div>";VMM.appendElement("#"+m,n)}o()},pushQue:function(){for(var a=0;a<VMM.master_config.googlemaps.que.length;a++)VMM.ExternalAPI.googlemaps.create(VMM.master_config.googlemaps.que[a]);VMM.master_config.googlemaps.que=[]},onMapAPIReady:function(){VMM.master_config.googlemaps.map_active=!0;VMM.master_config.googlemaps.places_active=!0;VMM.ExternalAPI.googlemaps.onAPIReady()},onPlacesAPIReady:function(){VMM.master_config.googlemaps.places_active=!0;VMM.ExternalAPI.googlemaps.onAPIReady()},onAPIReady:function(){if(!VMM.master_config.googlemaps.active&&VMM.master_config.googlemaps.map_active&&VMM.master_config.googlemaps.places_active){VMM.master_config.googlemaps.active=!0;VMM.ExternalAPI.googlemaps.pushQue()}},defaultType:function(a){return a.toLowerCase()=="satellite"||a.toLowerCase()=="hybrid"||a.toLowerCase()=="terrain"||a.toLowerCase()=="roadmap"?!0:!1},map_subdomains:["","a.","b.","c.","d."],map_attribution:{stamen:"Map tiles by <a href='http://stamen.com'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org'>OpenStreetMap</a>, under <a href='http://creativecommons.org/licenses/by-sa/3.0'>CC BY SA</a>.",apple:"Map data &copy; 2012 Apple, Imagery &copy; 2012 Apple"},map_providers:{toner:{url:"http://{S}tile.stamen.com/toner/{Z}/{X}/{Y}.png",minZoom:0,maxZoom:20,attribution:"stamen"},"toner-lines":{url:"http://{S}tile.stamen.com/toner-lines/{Z}/{X}/{Y}.png",minZoom:0,maxZoom:20,attribution:"stamen"},"toner-labels":{url:"http://{S}tile.stamen.com/toner-labels/{Z}/{X}/{Y}.png",minZoom:0,maxZoom:20,attribution:"stamen"},sterrain:{url:"http://{S}tile.stamen.com/terrain/{Z}/{X}/{Y}.jpg",minZoom:4,maxZoom:20,attribution:"stamen"},apple:{url:"http://gsp2.apple.com/tile?api=1&style=slideshow&layers=default&lang=en_US&z={z}&x={x}&y={y}&v=9",minZoom:4,maxZoom:14,attribution:"apple"},watercolor:{url:"http://{S}tile.stamen.com/watercolor/{Z}/{X}/{Y}.jpg",minZoom:3,maxZoom:16,attribution:"stamen"}}},googleplus:{get:function(a,b){var c,d={user:a,activity:b};VMM.master_config.googleplus.que.push(d);VMM.master_config.googleplus.active=!0},create:function(a,b){var c="",d="",e="",f="",g="",h,i;googleplus_timeout=setTimeout(VMM.ExternalAPI.googleplus.errorTimeOut,VMM.master_config.timers.api,a),callback_timeout=setTimeout(b,VMM.master_config.timers.api,a);VMM.master_config.Timeline.api_keys.google!=""?d=VMM.master_config.Timeline.api_keys.google:d=Aes.Ctr.decrypt(VMM.master_config.api_keys_master.google,VMM.master_config.vp,256);h="https://www.googleapis.com/plus/v1/people/"+a.user+"/activities/public?alt=json&maxResults=100&fields=items(id,url)&key="+d;c="GOOGLE PLUS API CALL";VMM.getJSON(h,function(b){for(var h=0;h<b.items.length;h++){trace("loop");if(b.items[h].url.split("posts/")[1]==a.activity){trace("FOUND IT!!");e=b.items[h].id;i="https://www.googleapis.com/plus/v1/activities/"+e+"?alt=json&key="+d;VMM.getJSON(i,function(b){trace(b);if(typeof b.annotation!="undefined"){f+="<div class='googleplus-annotation'>'"+b.annotation+"</div>";f+=b.object.content}else f+=b.object.content;if(typeof b.object.attachments!="undefined"){for(var d=0;d<b.object.attachments.length;d++){if(b.object.attachments[d].objectType=="photo")g="<a href='"+b.object.url+"' target='_blank'>"+"<img src='"+b.object.attachments[d].image.url+"' class='article-thumb'></a>"+g;else if(b.object.attachments[d].objectType=="video"){g="<img src='"+b.object.attachments[d].image.url+"' class='article-thumb'>"+g;g+="<div>";g+="<a href='"+b.object.attachments[d].url+"' target='_blank'>";g+="<h5>"+b.object.attachments[d].displayName+"</h5>";g+="</a>";g+="</div>"}else if(b.object.attachments[d].objectType=="article"){g+="<div>";g+="<a href='"+b.object.attachments[d].url+"' target='_blank'>";g+="<h5>"+b.object.attachments[d].displayName+"</h5>";g+="<p>"+b.object.attachments[d].content+"</p>";g+="</a>";g+="</div>"}trace(b.object.attachments[d])}g="<div class='googleplus-attachments'>"+g+"</div>"}c="<div class='googleplus-content'>"+f+g+"</div>";c+="<div class='vcard author'><a class='screen-name url' href='"+b.url+"' target='_blank'>";c+="<span class='avatar'><img src='"+b.actor.image.url+"' style='max-width: 32px; max-height: 32px;'></span>";c+="<span class='fn'>"+b.actor.displayName+"</span>";c+="<span class='nickname'><span class='thumbnail-inline'></span></span>";c+="</a></div>";VMM.attachElement("#googleplus_"+a.activity,c)});break}}}).error(function(b,c,d){var e=VMM.parseJSON(b.responseText);trace(e.error.message);VMM.attachElement("#googleplus_"+a.activity,"<p>ERROR LOADING GOOGLE+ </p><p>"+e.error.message+"</p>")}).success(function(a){clearTimeout(googleplus_timeout);clearTimeout(callback_timeout);b()})},pushQue:function(){if(VMM.master_config.googleplus.que.length>0){VMM.ExternalAPI.googleplus.create(VMM.master_config.googleplus.que[0],VMM.ExternalAPI.googleplus.pushQue);VMM.master_config.googleplus.que.remove(0)}},errorTimeOut:function(a){trace("GOOGLE+ JSON ERROR TIMEOUT "+a.activity);VMM.attachElement("#googleplus_"+a.activity,"<p>Still waiting on GOOGLE+ </p><p>"+a.activity+"</p>")}},googledocs:{get:function(a,b){var c={url:a,id:b};VMM.master_config.googledocs.que.push(c);VMM.master_config.googledocs.active=!0},create:function(a){var b="";a.url.match(/docs.google.com/i)?b="<iframe class='doc' frameborder='0' width='100%' height='100%' src='"+a.url+"&amp;embedded=true'></iframe>":b="<iframe class='doc' frameborder='0' width='100%' height='100%' src='http://docs.google.com/viewer?url="+a.url+"&amp;embedded=true'></iframe>";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a<VMM.master_config.googledocs.que.length;a++)VMM.ExternalAPI.googledocs.create(VMM.master_config.googledocs.que[a]);VMM.master_config.googledocs.que=[]}},flickr:{get:function(a,b){var c={mid:a,id:b};VMM.master_config.flickr.que.push(c);VMM.master_config.flickr.active=!0},create:function(a,b){var c,d=setTimeout(b,VMM.master_config.timers.api,a);VMM.master_config.Timeline.api_keys.flickr!=""?c=VMM.master_config.Timeline.api_keys.flickr:c=Aes.Ctr.decrypt(VMM.master_config.api_keys_master.flickr,VMM.master_config.vp,256);var e="http://api.flickr.com/services/rest/?method=flickr.photos.getSizes&api_key="+c+"&photo_id="+a.mid+"&format=json&jsoncallback=?";VMM.getJSON(e,function(b){var c=b.sizes.size[0].url.split("photos/")[1].split("/")[1],d="#"+a.id,e="#"+a.id+"_thumb",f,g,h=!1,i="Large";i=VMM.ExternalAPI.flickr.sizes(VMM.master_config.sizes.api.height);for(var j=0;j<b.sizes.size.length;j++)if(b.sizes.size[j].label==i){h=!0;f=b.sizes.size[j].source}h||(f=b.sizes.size[b.sizes.size.length-1].source);g=b.sizes.size[0].source;VMM.Lib.attr(d,"src",f);VMM.attachElement(e,"<img src='"+g+"'>")}).error(function(a,b,c){trace("FLICKR error");trace("FLICKR ERROR: "+b+" "+a.responseText)}).success(function(a){clearTimeout(d);b()})},pushQue:function(){if(VMM.master_config.flickr.que.length>0){VMM.ExternalAPI.flickr.create(VMM.master_config.flickr.que[0],VMM.ExternalAPI.flickr.pushQue);VMM.master_config.flickr.que.remove(0)}},sizes:function(a){var b="";a<=75?b="Thumbnail":a<=180?b="Small":a<=240?b="Small 320":a<=375?b="Medium":a<=480?b="Medium 640":a<=600?b="Medium 800":b="Large";return b}},instagram:{get:function(a,b){return b?"http://instagr.am/p/"+a+"/media/?size=t":"http://instagr.am/p/"+a+"/media/?size="+VMM.ExternalAPI.instagram.sizes(VMM.master_config.sizes.api.height)},sizes:function(a){var b="";a<=150?b="t":a<=306?b="m":b="l";return b}},soundcloud:{get:function(a,b){var c={mid:a,id:b};VMM.master_config.soundcloud.que.push(c);VMM.master_config.soundcloud.active=!0},create:function(a,b){var c="http://soundcloud.com/oembed?url="+a.mid+"&format=js&callback=?";VMM.getJSON(c,function(c){VMM.attachElement("#"+a.id,c.html);b()})},pushQue:function(){if(VMM.master_config.soundcloud.que.length>0){VMM.ExternalAPI.soundcloud.create(VMM.master_config.soundcloud.que[0],VMM.ExternalAPI.soundcloud.pushQue);VMM.master_config.soundcloud.que.remove(0)}}},wikipedia:{get:function(a,b,c){var d={url:a,id:b,lang:c};VMM.master_config.wikipedia.que.push(d);VMM.master_config.wikipedia.active=!0},create:function(a,b){var c="http://"+a.lang+".wikipedia.org/w/api.php?action=query&prop=extracts&redirects=&titles="+a.url+"&exintro=1&format=json&callback=?";callback_timeout=setTimeout(b,VMM.master_config.timers.api,a);if(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest){var d="<h4><a href='http://"+VMM.master_config.language.api.wikipedia+".wikipedia.org/wiki/"+a.url+"' target='_blank'>"+a.url+"</a></h4>";d+="<span class='wiki-source'>"+VMM.master_config.language.messages.wikipedia+"</span>";d+="<p>Wikipedia entry unable to load using Internet Explorer 8 or below.</p>";VMM.attachElement("#"+a.id,d)}VMM.getJSON(c,function(b){if(b.query){var c,d,e="",f="",g=1,h=[];c=VMM.Util.getObjectAttributeByIndex(b.query.pages,0).extract;d=VMM.Util.getObjectAttributeByIndex(b.query.pages,0).title;c.match("<p>")?h=c.split("<p>"):h.push(c);for(var i=0;i<h.length;i++)i+1<=g&&i+1<h.length&&(f+="<p>"+h[i+1]);e="<h4><a href='http://"+VMM.master_config.language.api.wikipedia+".wikipedia.org/wiki/"+d+"' target='_blank'>"+d+"</a></h4>";e+="<span class='wiki-source'>"+VMM.master_config.language.messages.wikipedia+"</span>";e+=VMM.Util.linkify_wikipedia(f);c.match("REDIRECT")||VMM.attachElement("#"+a.id,e)}}).error(function(c,d,e){trace("WIKIPEDIA error");trace("WIKIPEDIA ERROR: "+d+" "+c.responseText);trace(e);VMM.attachElement("#"+a.id,"<span class='messege'><p>Wikipedia is not responding</p></span>");clearTimeout(callback_timeout);if(VMM.master_config.wikipedia.tries<4){trace("WIKIPEDIA ATTEMPT "+VMM.master_config.wikipedia.tries);trace(a);VMM.master_config.wikipedia.tries++;VMM.ExternalAPI.wikipedia.create(a,b)}else b()}).success(function(a){VMM.master_config.wikipedia.tries=0;clearTimeout(callback_timeout);b()})},pushQue:function(){if(VMM.master_config.wikipedia.que.length>0){trace("WIKIPEDIA PUSH QUE "+VMM.master_config.wikipedia.que.length);VMM.ExternalAPI.wikipedia.create(VMM.master_config.wikipedia.que[0],VMM.ExternalAPI.wikipedia.pushQue);VMM.master_config.wikipedia.que.remove(0)}}},youtube:{get:function(a,b){var c="http://gdata.youtube.com/feeds/api/videos/"+a+"?v=2&alt=jsonc&callback=?",d={mid:a,id:b};VMM.master_config.youtube.que.push(d);VMM.master_config.youtube.active||VMM.master_config.youtube.api_loaded||VMM.LoadLib.js("http://www.youtube.com/player_api",function(){trace("YouTube API Library Loaded")});VMM.getJSON(c,function(a){VMM.ExternalAPI.youtube.createThumb(a,d)})},create:function(a){var b={active:!1,player:{},name:a.id,playing:!1};b.player[a.id]=new YT.Player(a.id,{height:"390",width:"640",playerVars:{enablejsapi:1,color:"white",showinfo:0,theme:"light",rel:0},videoId:a.mid,events:{onReady:VMM.ExternalAPI.youtube.onPlayerReady,onStateChange:VMM.ExternalAPI.youtube.onStateChange}});VMM.master_config.youtube.array.push(b)},createThumb:function(a,b){trace("CREATE THUMB");trace(a);trace(b);if(typeof a.data!="undefined"){var c="#"+b.id+"_thumb";VMM.attachElement(c,"<img src='"+a.data.thumbnail.sqDefault+"'>")}},pushQue:function(){for(var a=0;a<VMM.master_config.youtube.que.length;a++)VMM.ExternalAPI.youtube.create(VMM.master_config.youtube.que[a]);VMM.master_config.youtube.que=[]},onAPIReady:function(){VMM.master_config.youtube.active=!0;VMM.ExternalAPI.youtube.pushQue()},stopPlayers:function(){for(var a=0;a<VMM.master_config.youtube.array.length;a++)if(VMM.master_config.youtube.array[a].playing){var b=VMM.master_config.youtube.array[a].name;VMM.master_config.youtube.array[a].player[b].stopVideo()}},onStateChange:function(a){for(var b=0;b<VMM.master_config.youtube.array.length;b++){var c=VMM.master_config.youtube.array[b].name;VMM.master_config.youtube.array[b].player[c]==a.target&&a.data==YT.PlayerState.PLAYING&&(VMM.master_config.youtube.array[b].playing=!0)}},onPlayerReady:function(a){}},vimeo:{get:function(a,b){var c={mid:a,id:b};VMM.master_config.vimeo.que.push(c);VMM.master_config.vimeo.active=!0},create:function(a,b){trace("VIMEO CREATE");var c="http://vimeo.com/api/v2/video/"+a.mid+".json";VMM.getJSON(c,function(c){VMM.ExternalAPI.vimeo.createThumb(c,a);b()})},createThumb:function(a,b){trace("VIMEO CREATE THUMB");var c="#"+b.id+"_thumb";VMM.attachElement(c,"<img src='"+a[0].thumbnail_small+"'>")},pushQue:function(){if(VMM.master_config.vimeo.que.length>0){VMM.ExternalAPI.vimeo.create(VMM.master_config.vimeo.que[0],VMM.ExternalAPI.vimeo.pushQue);VMM.master_config.vimeo.que.remove(0)}}}});typeof VMM!="undefined"&&typeof VMM.MediaElement=="undefined"&&(VMM.MediaElement={init:function(){return this},thumbnail:function(a,b,c,d){var e=16,f=24,g="";b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);d!=null&&d!=""&&(g=d);if(a.media!=null&&a.media!=""){var h=!0,i="",j=VMM.MediaType(a.media);if(j.type=="image"){i="<div class='thumbnail thumb-photo'></div>";return i}if(j.type=="flickr"){i="<div class='thumbnail thumb-photo' id='"+d+"_thumb'></div>";return i}if(j.type=="instagram"){i="<div class='thumbnail thumb-instagram' id='"+d+"_thumb'><img src='"+VMM.ExternalAPI.instagram.get(j.id,!0)+"'></div>";return i}if(j.type=="youtube"){i="<div class='thumbnail thumb-youtube' id='"+d+"_thumb'></div>";return i}if(j.type=="googledoc"){i="<div class='thumbnail thumb-document'></div>";return i}if(j.type=="vimeo"){i="<div class='thumbnail thumb-vimeo' id='"+d+"_thumb'></div>";return i}if(j.type=="dailymotion"){i="<div class='thumbnail thumb-video'></div>";return i}if(j.type=="twitter"){i="<div class='thumbnail thumb-twitter'></div>";return i}if(j.type=="twitter-ready"){i="<div class='thumbnail thumb-twitter'></div>";return i}if(j.type=="soundcloud"){i="<div class='thumbnail thumb-audio'></div>";return i}if(j.type=="google-map"){i="<div class='thumbnail thumb-map'></div>";return i}if(j.type=="googleplus"){i="<div class='thumbnail thumb-googleplus'></div>";return i}if(j.type=="wikipedia"){i="<div class='thumbnail thumb-wikipedia'></div>";return i}if(j.type=="storify"){i="<div class='thumbnail thumb-storify'></div>";return i}if(j.type=="quote"){i="<div class='thumbnail thumb-quote'></div>";return i}if(j.type=="unknown"){j.id.match("blockquote")?i="<div class='thumbnail thumb-quote'></div>":i="<div class='thumbnail thumb-plaintext'></div>";return i}if(j.type=="website"){i="<div class='thumbnail thumb-website'></div>";return i}i="<div class='thumbnail thumb-plaintext'></div>";return i}},create:function(a,b){var c=!1,d="<span class='messege'><p>"+VMM.master_config.language.messages.loading+"</p></span>";if(a.media!=null&&a.media!=""){var e="",f="",g="",h="",i=!1,j;j=VMM.MediaType(a.media);c=!0;a.credit!=null&&a.credit!=""&&(g="<div class='credit'>"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"</div>");a.caption!=null&&a.caption!=""&&(f="<div class='caption'>"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"</div>");if(j.type=="image")e="<div class='media-image media-shadow'><img src='"+j.id+"' class='media-image'></div>";else if(j.type=="flickr"){e="<div class='media-image media-shadow'><a href='"+j.link+"' target='_blank'><img id='"+b+"'></a></div>";VMM.ExternalAPI.flickr.get(j.id,b)}else if(j.type=="instagram")e="<div class='media-image media-shadow'><a href='"+j.link+"' target='_blank'><img src='"+VMM.ExternalAPI.instagram.get(j.id)+"'></a></div>";else if(j.type=="googledoc"){e="<div class='media-frame media-shadow doc' id='"+b+"'>"+d+"</div>";VMM.ExternalAPI.googledocs.get(j.id,b)}else if(j.type=="youtube"){e="<div class='media-shadow'><div class='media-frame video youtube' id='"+b+"'>"+d+"</div></div>";VMM.ExternalAPI.youtube.get(j.id,b)}else if(j.type=="vimeo"){e="<div class='media-shadow'><iframe class='media-frame video vimeo' autostart='false' frameborder='0' width='100%' height='100%' src='http://player.vimeo.com/video/"+j.id+"?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff'></iframe></div>";VMM.ExternalAPI.vimeo.get(j.id,b)}else if(j.type=="dailymotion")e="<div class='media-shadow'><iframe class='media-frame video dailymotion' autostart='false' frameborder='0' width='100%' height='100%' src='http://www.dailymotion.com/embed/video/"+j.id+"'></iframe></div>";else if(j.type=="twitter"){e="<div class='twitter' id='"+b+"'>"+d+"</div>";i=!0;VMM.ExternalAPI.twitter.get(j.id,b)}else if(j.type=="twitter-ready"){i=!0;e=j.id}else if(j.type=="soundcloud"){e="<div class='media-frame media-shadow soundcloud' id='"+b+"'>"+d+"</div>";VMM.ExternalAPI.soundcloud.get(j.id,b)}else if(j.type=="google-map"){e="<div class='media-frame media-shadow map' id='"+b+"'>"+d+"</div>";VMM.ExternalAPI.googlemaps.get(j.id,b)}else if(j.type=="googleplus"){h="googleplus_"+j.id;e="<div class='googleplus' id='"+h+"'>"+d+"</div>";i=!0;VMM.ExternalAPI.googleplus.get(j.user,j.id,b)}else if(j.type=="wikipedia"){e="<div class='wikipedia' id='"+b+"'>"+d+"</div>";i=!0;VMM.ExternalAPI.wikipedia.get(j.id,b,j.lang)}else if(j.type=="storify"){i=!0;e="<div class='plain-text-quote'>"+j.id+"</div>"}else if(j.type=="quote"){i=!0;e="<div class='plain-text-quote'>"+j.id+"</div>"}else if(j.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");i=!0;e="<div class='plain-text'><div class='container'>"+VMM.Util.properQuotes(j.id)+"</div></div>"}else if(j.type=="website")e="<div class='media-shadow website'><a href='"+j.id+"' target='_blank'>"+"<img src='http://api1.thumbalizr.com/?url="+j.id.replace(/[\./]$/g,"")+"&width=300' class='media-image'></a></div>";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(j.type)}e="<div class='media-container' >"+e+g+f+"</div>";return i?"<div class='text-media'><div class='media-wrapper'>"+e+"</div></div>":"<div class='media-wrapper'>"+e+"</div>"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={type:"unknown",id:"",link:"",lang:"",uniqueid:VMM.Util.unique_ID(6)};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:a.match("/embed/")?c.id=a.split("embed/")[1].split(/[?&]/)[0]:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")&&a.match("status")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("plus.google")){c.type="googleplus";c.id=a.split("/posts/")[1];a.split("/posts/")[0].match("u/0/")?c.user=a.split("u/0/")[1].split("/posts")[0]:c.user=a.split("google.com/")[1].split("/posts/")[0];b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match("instagr.am/p/")){c.type="instagram";c.link=a;c.id=a.split("/p/")[1].split("/")[0];b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")||a.match("yfrog.com")||a.match("twitpic.com")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.match("(www.)?wikipedia.org")){c.type="wikipedia";var d=a.split("wiki/")[1].split("#")[0].replace("_"," ");c.id=d.replace(" ","%20");c.lang=a.split("//")[1].split(".wikipedia")[0];b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else if(a.match("storify")){c.type="storify";c.id=a;b=!0}else if(a.match("blockquote")){c.type="quote";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"<div>","media");i=VMM.appendAndGetElement(h,"<div>","container");j=VMM.appendAndGetElement(i,"<div>","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,"<img src='"+d.id+"'>"):d.type=="youtube"?VMM.appendElement(j,"<iframe frameborder='0' src='http://www.youtube.com/embed/"+d.id+"?&rel=0&theme=light&showinfo=0&hd=1&autohide=0&color=white' allowfullscreen>"):d.type=="vimeo"&&VMM.appendElement(j,"<iframe frameborder='0' src='http://player.vimeo.com/video/"+d.id+"?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff'>");e.credit!=null&&e.credit!=""&&VMM.appendElement(i,VMM.createElement("div",e.credit,"credit"));e.caption!=null&&e.caption!=""&&VMM.appendElement(i,VMM.createElement("div",e.caption,"caption"))}};this.setData=function(a){if(typeof a!="undefined"){e=a;m()}else trace("NO DATA")}};VMM.Media.prototype.height=function(a){if(a==null||a=="")return config.height;config.height=a;reSize()};VMM.Media.prototype.width=function(a){if(a==null||a=="")return config.width;config.width=a;reSize()};VMM.Media.prototype.getData=function(){return data};VMM.Media.prototype.setConfig=function(a){typeof a!="undefined"?config=a:trace("NO CONFIG DATA")};VMM.Media.prototype.getConfig=function(){return config};VMM.Media.prototype.setSize=function(a,b){a!=null&&(config.width=a);b!=null&&(config.height=b);_active&&reSize()};VMM.Media.prototype.active=function(){return _active}}typeof VMM!="undefined"&&typeof VMM.TextElement=="undefined"&&(VMM.TextElement={init:function(){return this},create:function(a){return a}}.init());typeof VMM!="undefined"&&typeof VMM.TouchSlider=="undefined"&&(VMM.TouchSlider={createPanel:function(a,b,c,d,e,f){VMM.TouchSlider.vertical=!1;VMM.TouchSlider.vertical=e;var g=d;VMM.TouchSlider.width=c;VMM.TouchSlider.height=f;VMM.TouchSlider.makeTouchable(a,b)},removePanel:function(a){VMM.unbindEvent(a,VMM.TouchSlider.onTouchStart,"touchstart");VMM.unbindEvent(a,VMM.TouchSlider.onTouchMove,"touchmove");VMM.unbindEvent(a,VMM.TouchSlider.onTouchEnd,"touchend")},makeTouchable:function(a,b){VMM.bindEvent(a,VMM.TouchSlider.onTouchStart,"touchstart",{element:b});VMM.bindEvent(a,VMM.TouchSlider.onTouchMove,"touchmove",{element:b});VMM.bindEvent(a,VMM.TouchSlider.onTouchEnd,"touchend",{element:b})},onTouchStart:function(a){VMM.TouchSlider.touchStart(a.data.element,a);a.stopPropagation();return!0},onTouchEnd:function(a){a.stopPropagation();if(VMM.TouchSlider.sliding){VMM.TouchSlider.sliding=!1;VMM.TouchSlider.touchEnd(a.data.element,a);return!1}return!0},onTouchMove:function(a){VMM.TouchSlider.touchMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)},getTop:function(a){return parseInt(VMM.Lib.css(a,"top").substring(0,VMM.Lib.css(a,"top").length-2),10)},touchStart:function(a,b){VMM.Lib.css(a,"-webkit-transition-duration","0");VMM.TouchSlider.startX=b.originalEvent.touches[0].screenX;VMM.TouchSlider.startY=b.originalEvent.touches[0].screenY;VMM.TouchSlider.startLeft=VMM.TouchSlider.getLeft(a);VMM.TouchSlider.startTop=VMM.TouchSlider.getTop(a);VMM.TouchSlider.touchStartTime=(new Date).getTime()},touchEnd:function(a,b){if(VMM.TouchSlider.getLeft(a)>0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider
.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}G();H();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2+10);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2+10);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&J(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{J(m+1);A()}}function x(a){if(m==0)J(m);else{J(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;c<j.length;c++)k.push(j[c].leftpos());if(typeof b.left=="number"){var e=b.left,f=-j[m].leftpos();e<f-d.slider_width/3?w():e>f+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;L()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){J(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b<a.length;b++){var c=new VMM.Slider.Slide(a[b],h);j.push(c)}},D=function(a){if(a)E();else{for(var b=0;b<j.length;b++)j[b].clearTimers();t=setTimeout(E,d.duration)}},E=function(){for(var a=0;a<j.length;a++)j[a].enqueue=!0;for(var b=0;b<d.preload;b++){if(!(m+b>j.length-1)){j[m+b].show();j[m+b].enqueue=!1}if(!(m-b<0)){j[m-b].show();j[m-b].enqueue=!1}}if(j.length>50)for(var c=0;c<j.length;c++)j[c].enqueue&&j[c].hide();G()},F=function(a){},G=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0},text:{width:d.slider.content.width/100*40-30,height:d.slider.height}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};VMM.master_config.sizes.api.width=e.media.width;VMM.master_config.sizes.api.height=e.media.height;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=640?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item .layout-text-media .text","width","100%");VMM.Lib.css(".slider-item .layout-text-media .text","display","block");VMM.Lib.css(".slider-item .layout-text-media .text .container","display","block");VMM.Lib.css(".slider-item .layout-text-media .text .container","width",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");VMM.Lib.addClass(".slider-item .content-container","pad-top");VMM.Lib.css(".slider-item .media blockquote p","line-height","18px");VMM.Lib.css(".slider-item .media blockquote p","font-size","16px");VMM.Lib.css(".slider-item","overflow-y","auto")}else{VMM.Lib.css(".slider-item .layout-text-media .text","width","40%");VMM.Lib.css(".slider-item .layout-text-media .text","display","table-cell");VMM.Lib.css(".slider-item .layout-text-media .text .container","display","table-cell");VMM.Lib.css(".slider-item .layout-text-media .text .container","width","auto");VMM.Lib.css(".slider-item .layout-text-media .text .container .start","width",e.text_media.text.width);VMM.Lib.removeClass(".slider-item .content-container","pad-top");VMM.Lib.css(".slider-item .layout-text-media .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".avatar img","max-width",32);VMM.Lib.css(a+".avatar img","max-height",32);VMM.Lib.css(b+".avatar img","max-width",32);VMM.Lib.css(b+".avatar img","max-height",32);VMM.Lib.css(a+".article-thumb","max-width","50%");VMM.Lib.css(b+".article-thumb","max-width",200);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);VMM.Lib.width(b+".wikipedia",e.media.width);VMM.Lib.width(b+".twitter",e.media.width);VMM.Lib.width(b+".plain-text-quote",e.media.width);VMM.Lib.width(b+".plain-text",e.media.width);for(var g=0;g<j.length;g++){j[g].layout(f);j[g].content_height()>d.slider.height+20?j[g].css("display","block"):j[g].css("display","table")}},H=function(){var a=0;for(var b=0;b<j.length;b++){a=b*(d.slider.width+d.spacing);j[b].leftpos(a)}},I=function(a){var b="linear";for(var c=0;c<j.length;c++)c==m?j[c].animate(d.duration,b,{opacity:1}):c==m-1||c==m+1?j[c].animate(d.duration,b,{opacity:.1}):j[c].opacity(a)},J=function(a,b,c,e,f){VMM.ExternalAPI.youtube.stopPlayers();m=a;var h=d.ease,k=d.duration,l=!1,n=!1,o=j[m].leftpos(),p="";m==0&&(n=!0);m+1>=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,VMM.Date.prettyDate(i[m-1].startdate));VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,VMM.Date.prettyDate(i[m+1].startdate));VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},K=function(){var a="<div class='icon'>&nbsp;</div>";s.nextBtn=VMM.appendAndGetElement(e,"<div>","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"<div>","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"<div>","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"<div>","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"<div>","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"<div>","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"<div>","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"<div>","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},L=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"<div>","slider-container-mask");g=VMM.appendAndGetElement(f,"<div>","slider-container");h=VMM.appendAndGetElement(g,"<div>","slider-item-container");K();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);J(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c,d,e,f,g,h,i=a,j={},g="",k="",l=!1,m=!1,n=!1,o=!0,p=!1,q="slide_",r={pushque:"",render:"",relayout:"",remove:"",skinny:!1},s={pushque:500,render:100,relayout:100,remove:3e4};q+=i.uniqueid;this.enqueue=o;this.id=q;g=VMM.appendAndGetElement(b,"<div>","slider-item");h={slide:"",text:"",media:"",media_element:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}};this.show=function(a){o=!1;r.skinny=a;p=!1;clearTimeout(r.remove);if(!l)if(m){clearTimeout(r.relayout);r.relayout=setTimeout(v,s.relayout)}else t(a)};this.hide=function(){if(l&&!p){p=!0;clearTimeout(r.remove);r.remove=setTimeout(u,s.remove)}};this.clearTimers=function(){clearTimeout(r.relayout);clearTimeout(r.pushque);clearTimeout(r.render)};this.layout=function(a){l&&m&&w(a)};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined")return VMM.Lib.position(g).left;VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};this.content_height=function(){var a=VMM.Lib.find(g,".content")[0];return a!="undefined"&&a!=null?VMM.Lib.height(a):0};var t=function(a){trace("RENDER "+q);l=!0;m=!0;r.skinny=a;x();clearTimeout(r.pushque);clearTimeout(r.render);r.pushque=setTimeout(VMM.ExternalAPI.pushQues,s.pushque)},u=function(){trace("REMOVE SLIDE TIMER FINISHED");l=!1;VMM.Lib.detach(d);VMM.Lib.detach(c)},v=function(){l=!0;w(r.skinny,!0)},w=function(a,b){if(h.has.text){if(a){if(!n||b){VMM.Lib.removeClass(e,"pad-left");VMM.Lib.detach(d);VMM.Lib.detach(c);VMM.Lib.append(e,d);VMM.Lib.append(e,c);n=!0}}else if(n||b){VMM.Lib.addClass(e,"pad-left");VMM.Lib.detach(d);VMM.Lib.detach(c);VMM.Lib.append(e,c);VMM.Lib.append(e,d);n=!1}}else if(b){if(h.has.headline){VMM.Lib.detach(d);VMM.Lib.append(e,d)}VMM.Lib.detach(c);VMM.Lib.append(e,c)}},x=function(){trace("BUILDSLIDE");f=VMM.appendAndGetElement(g,"<div>","content");e=VMM.appendAndGetElement(f,"<div>");if(i.startdate!=null&&i.startdate!=""&&type.of(i.startdate)=="date"&&i.type!="start"){var a=VMM.Date.prettyDate(i.startdate),b=VMM.Date.prettyDate(i.enddate);a!=b?h.text+=VMM.createElement("h2",a+" &mdash; "+b+"","date"):h.text+=VMM.createElement("h2",a,"date")}if(i.headline!=null&&i.headline!=""){h.has.headline=!0;i.type=="start"?h.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(i.headline,"_blank"),"start"):h.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(i.headline,"_blank"))}if(i.text!=null&&i.text!=""){h.has.text=!0;h.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(i.text,"_blank"))}if(h.has.text||h.has.headline){h.text=VMM.createElement("div",h.text,"container");d=VMM.appendAndGetElement(e,"<div>","text",VMM.TextElement.create(h.text))}!i.needs_slug;if(i.asset!=null&&i.asset!=""&&i.asset.media!=null&&i.asset.media!=""){h.has.media=!0;c=VMM.appendAndGetElement(e,"<div>","media",VMM.MediaElement.create(i.asset,i.uniqueid))}h.has.text&&(h.layout+="-text");h.has.media&&(h.layout+="-media");if(h.has.text)if(r.skinny){VMM.Lib.addClass(e,h.layout);n=!0}else{VMM.Lib.addClass(e,h.layout);VMM.Lib.addClass(e,"pad-left");VMM.Lib.detach(d);VMM.Lib.append(e,d)}else VMM.Lib.addClass(e,h.layout)}});typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={lang:"en",api:{wikipedia:"en"},date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'<br/><small>'mmmm d',' yyyy'</small>'",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'<br/><small>mmm d',' yyyy'</small>'"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline",wikipedia:"From Wikipedia, the free encyclopedia",loading_content:"Loading Content",loading:"Loading"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g<d;g++){e=Aes.subBytes(e,c);e=Aes.shiftRows(e,c);e=Aes.mixColumns(e,c);e=Aes.addRoundKey(e,b,g,c)}e=Aes.subBytes(e,c);e=Aes.shiftRows(e,c);e=Aes.addRoundKey(e,b,d,c);var h=new Array(4*c);for(var f=0;f<4*c;f++)h[f]=e[f%4][Math.floor(f/4)];return h};Aes.keyExpansion=function(a){var b=4,c=a.length/4,d=c+6,e=new Array(b*(d+1)),f=new Array(4);for(var g=0;g<c;g++){var h=[a[4*g],a[4*g+1],a[4*g+2],a[4*g+3]];e[g]=h}for(var g=c;g<b*(d+1);g++){e[g]=new Array(4);for(var i=0;i<4;i++)f[i]=e[g-1][i];if(g%c==0){f=Aes.subWord(Aes.rotWord(f));for(var i=0;i<4;i++)f[i]^=Aes.rCon[g/c][i]}else c>6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d<b;d++)a[c][d]=Aes.sBox[a[c][d]];return a};Aes.shiftRows=function(a,b){var c=new Array(4);for(var d=1;d<4;d++){for(var e=0;e<4;e++)c[e]=a[d][(e+d)%b];for(var e=0;e<4;e++)a[d][e]=c[e]}return a};Aes.mixColumns=function(a,b){for(var c=0;c<4;c++){var d=new Array(4),e=new Array(4);for(var f=0;f<4;f++){d[f]=a[f][c];e[f]=a[f][c]&128?a[f][c]<<1^283:a[f][c]<<1}a[0][c]=e[0]^d[1]^e[1]^d[2]^d[3];a[1][c]=d[0]^e[1]^d[2]^e[2]^d[3];a[2][c]=d[0]^d[1]^e[2]^d[3]^e[3];a[3][c]=d[0]^e[0]^d[1]^d[2]^e[3]}return a};Aes.addRoundKey=function(a,b,c,d){for(var e=0;e<4;e++)for(var f=0;f<d;f++)a[e][f]^=b[c*4+f][e];return a};Aes.subWord=function(a){for(var b=0;b<4;b++)a[b]=Aes.sBox[a[b]];return a};Aes.rotWord=function(a){var b=a[0];for(var c=0;c<3;c++)a[c]=a[c+1];a[3]=b;return a};Aes.sBox=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22];Aes.rCon=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]];Aes.Ctr={};Aes.Ctr.encrypt=function(a,b,c){var d=16;if(c!=128&&c!=192&&c!=256)return"";a=Utf8.encode(a);b=Utf8.encode(b);var e=c/8,f=new Array(e);for(var g=0;g<e;g++)f[g]=isNaN(b.charCodeAt(g))?0:b.charCodeAt(g);var h=Aes.cipher(f,Aes.keyExpansion(f));h=h.concat(h.slice(0,e-16));var i=new Array(d),j=(new Date).getTime(),k=j%1e3,l=Math.floor(j/1e3),m=Math.floor(Math.random()*65535);for(var g=0;g<2;g++)i[g]=k>>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r<p;r++){for(var s=0;s<4;s++)i[15-s]=r>>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r<p-1?d:(a.length-1)%d+1,v=new Array(u);for(var g=0;g<u;g++){v[g]=t[g]^a.charCodeAt(r*d+g);v[g]=String.fromCharCode(v[g])}q[r]=v.join("")}var w=n+q.join("");w=Base64.encode(w);return w};Aes.Ctr.decrypt=function(a,b,c){var d=16;if(c!=128&&c!=192&&c!=256)return"";a=Base64.decode(a);b=Utf8.encode(b);var e=c/8,f=new Array(e);for(var g=0;g<e;g++)f[g]=isNaN(b.charCodeAt(g))?0:b.charCodeAt(g);var h=Aes.cipher(f,Aes.keyExpansion(f));h=h.concat(h.slice(0,e-16));var i=new Array(8);ctrTxt=a.slice(0,8);for(var g=0;g<8;g++)i[g]=ctrTxt.charCodeAt(g);var j=Aes.keyExpansion(h),k=Math.ceil((a.length-8)/d),l=new Array(k);for(var m=0;m<k;m++)l[m]=a.slice(8+m*d,8+m*d+d);a=l;var n=new Array(a.length);for(var m=0;m<k;m++){for(var o=0;o<4;o++)i[15-o]=m>>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g<a[m].length;g++){q[g]=p[g]^a[m].charCodeAt(g);q[g]=String.fromCharCode(q[g])}n[m]=q.join("")}var r=n.join("");r=Utf8.decode(r);return r};var Base64={};Base64.code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Base64.encode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l="",m,n,o,p=Base64.code;n=b?a.encodeUTF8():a;m=n.length%3;if(m>0)while(m++<3){l+="=";n+="\0"}for(m=0;m<n.length;m+=3){c=n.charCodeAt(m);d=n.charCodeAt(m+1);e=n.charCodeAt(m+2);f=c<<16|d<<8|e;g=f>>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o<m.length;o+=4){f=n.indexOf(m.charAt(o));g=n.indexOf(m.charAt(o+1));h=n.indexOf(m.charAt(o+2));i=n.indexOf(m.charAt(o+3));j=f<<18|g<<12|h<<6|i;c=j>>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,this.options.selector,a.proxy(this.leave,this))}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){b=a.extend({},a.fn[this.type].defaults,b,this.$element.data());b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip();a.find(".tooltip-inner").html(this.getTitle());a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}};a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,this.options.selector,a.proxy(this.leave,this))}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){b=a.extend({},a.fn[this.type].defaults,b,this.$element.data());b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip();a.find(".tooltip-inner").html(this.getTitle());a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}};a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){trace("onDataReady");trace(b);m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.57";trace("TIMELINE VERSION "+j);o={embed:!1,events:{data_ready:"DATAREADY",messege:"MESSEGE",headline:"TIMELINE_HEADLINE",slide_change:"SLIDE_CHANGE",resize:"resize"},id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,start_page:!1,api_keys:{google:"",flickr:"",twitter:""},interval:10,something:0,width:960,height:540,spacing:15,loaded:{slider:!1,timenav:!1,percentloaded:0},nav:{start_page:!1,interval_width:200,density:4,minor_width:0,minor_left:0,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG"
);var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config;this.events=o.events},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"<div>","feedback","");g=VMM.appendAndGetElement(f,"<div>","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Date.setLanguage(VMM.Timeline.Config.language);VMM.master_config.language=VMM.Timeline.Config.language;f=VMM.appendAndGetElement(e,"<div>","feedback","");g=VMM.appendAndGetElement(f,"<div>","messege",VMM.master_config.language.messages.loading_timeline);VMM.bindEvent(global,w,o.events.data_ready);VMM.bindEvent(global,H,o.events.messege);if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,o.events.messege,"Internet Explorer 7 is not supported by #Timeline.")}else type.of(c)=="string"||type.of(c)=="object"?VMM.Timeline.DataObj.getData(c):VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};this.reload=function(a){trace("loadNewDates"+a);g=VMM.appendAndGetElement(f,"<div>","messege",VMM.master_config.language.messages.loading_timeline);m={};VMM.Timeline.DataObj.getData(a)};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,o.events.data_ready)})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&o.current_slide==0&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"<div class='container main'><div class='feature'><div class='slider'></div></div><div class='navigation'></div></div>");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,o.events.resize)},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){n=[];VMM.fireEvent(global,o.events.messege,"Building Dates");L();for(var a=0;a<m.date.length;a++)if(m.date[a].startDate!=null&&m.date[a].startDate!=""){var b={};m.date[a].type=="tweets"?b.startdate=VMM.ExternalAPI.twitter.parseTwitterDate(m.date[a].startDate):b.startdate=VMM.Date.parse(m.date[a].startDate);if(!isNaN(b.startdate)){m.date[a].endDate!=null&&m.date[a].endDate!=""?m.date[a].type=="tweets"?b.enddate=VMM.ExternalAPI.twitter.parseTwitterDate(m.date[a].endDate):b.enddate=VMM.Date.parse(m.date[a].endDate):b.enddate=b.startdate;b.needs_slug=!1;m.date[a].headline==""&&m.date[a].slug!=null&&m.date[a].slug!=""&&(b.needs_slug=!0);b.title=m.date[a].headline;b.headline=m.date[a].headline;b.type=m.date[a].type;b.date=VMM.Date.prettyDate(b.startdate);b.asset=m.date[a].asset;b.fulldate=b.startdate.getTime();b.text=m.date[a].text;b.content="";b.tag=m.date[a].tag;b.slug=m.date[a].slug;b.uniqueid=VMM.Util.unique_ID(7);n.push(b)}}m.type!="storify"&&n.sort(function(a,b){return a.fulldate-b.fulldate});if(m.headline!=null&&m.headline!=""&&m.text!=null&&m.text!=""){trace("HAS STARTPAGE");var b={},c=0,d;d=n[0].startdate;b.startdate=new Date(n[0].startdate);d.getMonth()===0&&d.getDate()==1&&d.getHours()===0&&d.getMinutes()===0?b.startdate.setFullYear(d.getFullYear()-1):d.getDate()<=1&&d.getHours()===0&&d.getMinutes()===0?b.startdate.setMonth(d.getMonth()-1):d.getHours()===0&&d.getMinutes()===0?b.startdate.setDate(d.getDate()-1):d.getMinutes()===0?b.startdate.setHours(d.getHours()-1):b.startdate.setMinutes(d.getMinutes()-1);b.uniqueid=VMM.Util.unique_ID(7);b.enddate=b.startdate;b.title=m.headline;b.headline=m.headline;b.text=m.text;b.type="start";b.date=VMM.Date.prettyDate(m.startDate);b.asset=m.asset;b.slug=!1;b.needs_slug=!1;b.fulldate=b.startdate.getTime();o.embed&&VMM.fireEvent(global,o.events.headline,b.headline);n.unshift(b)}m.type!="storify"&&n.sort(function(a,b){return a.fulldate-b.fulldate});x()}};VMM.Timeline.Config={}}typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.TimeNav=="undefined"&&(VMM.Timeline.TimeNav=function(a,b,c){function N(){trace("onConfigSet")}function O(a){VMM.Lib.css(G,"left",Math.round(M.width/2)+2);VMM.Lib.css(H,"left",Math.round(M.width/2)-8);W(M.current_slide,M.ease,M.duration,!0,a)}function P(){VMM.fireEvent(f,"UPDATE")}function Q(){VMM.DragSlider.cancelSlide();if(M.nav.multiplier.current>M.nav.multiplier.min){M.nav.multiplier.current<=1?M.nav.multiplier.current=M.nav.multiplier.current-.25:M.nav.multiplier.current>5?M.nav.multiplier.current>16?M.nav.multiplier.current=Math.round(M.nav.multiplier.current-10):M.nav.multiplier.current=Math.round(M.nav.multiplier.current-4):M.nav.multiplier.current=Math.round(M.nav.multiplier.current-1);M.nav.multiplier.current<=0&&(M.nav.multiplier.current=M.nav.multiplier.min);T()}}function R(){VMM.DragSlider.cancelSlide();if(M.nav.multiplier.current<M.nav.multiplier.max){M.nav.multiplier.current>4?M.nav.multiplier.current>16?M.nav.multiplier.current=Math.round(M.nav.multiplier.current+10):M.nav.multiplier.current=Math.round(M.nav.multiplier.current+4):M.nav.multiplier.current=Math.round(M.nav.multiplier.current+1);M.nav.multiplier.current>=M.nav.multiplier.max&&(M.nav.multiplier.current=M.nav.multiplier.max);T()}}function S(a){VMM.DragSlider.cancelSlide();W(0);P()}function U(a){VMM.DragSlider.cancelSlide();W(a.data.number);P()}function V(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function X(a,b){VMM.Lib.animate(y,b.time/2,M.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g={interval_position:""},h=[],i=[],j=[],k=[],l=[],m,n,o=[],p={left:"",visible:{left:"",right:""}},q=0,r=!1,s={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},t={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},u={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},v={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},w={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},x={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},y,z,A,B,C,D,E,F,G,H,I,J,K,L,M=VMM.Timeline.Config;M.nav.rows=[1,M.nav.marker.height,M.nav.marker.height*2];b!=null&&b!=""&&(M.nav.width=b);c!=null&&c!=""&&(M.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){h={};h=a;m=b;gb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(M.width=a);b!=null&&(M.height=b);r&&O()};this.setMarker=function(a,b,c,d){W(a,b,c)};this.getCurrentNumber=function(){return q};var T=function(){trace("config.nav.multiplier "+M.nav.multiplier.current);db(!0);eb(C,k,!0,!0);eb(D,l,!0)},W=function(a,b,c,d,e){var f=M.ease,g=M.duration,h=!1,i=!1;q=a;p.left=M.width/2-VMM.Lib.position(j[q].marker).left;p.visible.left=Math.abs(p.left)-100;p.visible.right=Math.abs(p.left)+M.width+100;q==0&&(i=!0);q+1==j.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var k=0;k<j.length;k++)VMM.Lib.removeClass(j[k].marker,"active");if(M.start_page&&j[0].type=="start"){VMM.Lib.visible(j[0].marker,!1);VMM.Lib.addClass(j[0].marker,"start")}VMM.Lib.addClass(j[q].marker,"active");VMM.Lib.stop(y);VMM.Lib.animate(y,g,f,{left:p.left})},Y=function(){var a=0,b=0,c=0,d=[];for(var e=0;e<j.length;e++)if(h[e].type!="start"){var f=cb(u,j[e].relative_pos),a=b;b=f.begin;c=b-a;d.push(c)}return VMM.Util.average(d).mean},Z=function(){var a=0,b=0,c=0,d=[],e=!0;for(var f=0;f<h.length;f++)if(h[f].type=="start")trace("DATA DATE IS START");else{var g=h[f].startdate;a=b;b=g;c=b-a;d.push(c)}return VMM.Util.average(d)},$=function(){var a=M.nav.multiplier.current;for(var b=0;b<a;b++)Y()<75&&M.nav.multiplier.current>1&&(M.nav.multiplier.current=M.nav.multiplier.current-1)},_=function(){var a=ab(h[0].startdate),b=ab(h[h.length-1].enddate);x.eon.type="eon";x.eon.first=a.eons;x.eon.base=Math.floor(a.eons);x.eon.last=b.eons;x.eon.number=e.eons;x.eon.multiplier=s.eons;x.eon.minor=s.eons;x.era.type="era";x.era.first=a.eras;x.era.base=Math.floor(a.eras);x.era.last=b.eras;x.era.number=e.eras;x.era.multiplier=s.eras;x.era.minor=s.eras;x.epoch.type="epoch";x.epoch.first=a.epochs;x.epoch.base=Math.floor(a.epochs);x.epoch.last=b.epochs;x.epoch.number=e.epochs;x.epoch.multiplier=s.epochs;x.epoch.minor=s.epochs;x.age.type="age";x.age.first=a.ages;x.age.base=Math.floor(a.ages);x.age.last=b.ages;x.age.number=e.ages;x.age.multiplier=s.ages;x.age.minor=s.ages;x.millenium.type="millenium";x.millenium.first=a.milleniums;x.millenium.base=Math.floor(a.milleniums);x.millenium.last=b.milleniums;x.millenium.number=e.milleniums;x.millenium.multiplier=s.millenium;x.millenium.minor=s.millenium;x.century.type="century";x.century.first=a.centuries;x.century.base=Math.floor(a.centuries);x.century.last=b.centuries;x.century.number=e.centuries;x.century.multiplier=s.century;x.century.minor=s.century;x.decade.type="decade";x.decade.first=a.decades;x.decade.base=Math.floor(a.decades);x.decade.last=b.decades;x.decade.number=e.decades;x.decade.multiplier=s.decade;x.decade.minor=s.decade;x.year.type="year";x.year.first=a.years;x.year.base=Math.floor(a.years);x.year.last=b.years;x.year.number=e.years;x.year.multiplier=1;x.year.minor=s.month;x.month.type="month";x.month.first=a.months;x.month.base=Math.floor(a.months);x.month.last=b.months;x.month.number=e.months;x.month.multiplier=1;x.month.minor=Math.round(s.week);x.week.type="week";x.week.first=a.weeks;x.week.base=Math.floor(a.weeks);x.week.last=b.weeks;x.week.number=e.weeks;x.week.multiplier=1;x.week.minor=7;x.day.type="day";x.day.first=a.days;x.day.base=Math.floor(a.days);x.day.last=b.days;x.day.number=e.days;x.day.multiplier=1;x.day.minor=24;x.hour.type="hour";x.hour.first=a.hours;x.hour.base=Math.floor(a.hours);x.hour.last=b.hours;x.hour.number=e.hours;x.hour.multiplier=1;x.hour.minor=60;x.minute.type="minute";x.minute.first=a.minutes;x.minute.base=Math.floor(a.minutes);x.minute.last=b.minutes;x.minute.number=e.minutes;x.minute.multiplier=1;x.minute.minor=60;x.second.type="decade";x.second.first=a.seconds;x.second.base=Math.floor(a.seconds);x.second.last=b.seconds;x.second.number=e.seconds;x.second.multiplier=1;x.second.minor=10},ab=function(a,b){var c={};c.days=a/t.day;c.weeks=c.days/t.week;c.months=c.days/t.month;c.years=c.months/t.year;c.hours=c.days*t.hour;c.minutes=c.days*t.minute;c.seconds=c.days*t.second;c.decades=c.years/t.decade;c.centuries=c.years/t.century;c.milleniums=c.years/t.millenium;c.ages=c.years/t.age;c.epochs=c.years/t.epoch;c.eras=c.years/t.era;c.eons=c.years/t.eon;return c},bb=function(a,b,c){var d,e,f=a.type,g={start:"",end:"",type:f};d=ab(b);g.start=b.months;f=="eon"?g.start=d.eons:f=="era"?g.start=d.eras:f=="epoch"?g.start=d.epochs:f=="age"?g.start=d.ages:f=="millenium"?g.start=b.milleniums:f=="century"?g.start=d.centuries:f=="decade"?g.start=d.decades:f=="year"?g.start=d.years:f=="month"?g.start=d.months:f=="week"?g.start=d.weeks:f=="day"?g.start=d.days:f=="hour"?g.start=d.hours:f=="minute"&&(g.start=d.minutes);if(type.of(c)=="date"){e=ab(c);g.end=c.months;f=="eon"?g.end=e.eons:f=="era"?g.end=e.eras:f=="epoch"?g.end=e.epochs:f=="age"?g.end=e.ages:f=="millenium"?g.end=c.milleniums:f=="century"?g.end=e.centuries:f=="decade"?g.end=e.decades:f=="year"?g.end=e.years:f=="month"?g.end=e.months:f=="week"?g.end=e.weeks:f=="day"?g.end=e.days:f=="hour"?g.end=e.hours:f=="minute"&&(g.end=e.minutes)}else g.end=g.start;return g},cb=function(a,b){return{begin:(b.start-u.base)*(M.nav.interval_width/M.nav.multiplier.current),end:(b.end-u.base)*(M.nav.interval_width/M.nav.multiplier.current)}},db=function(a){var b=u.type,c=u.multiplier,d=2,e=0,f=0,g=150,h=6,k=0,l=M.width,m={left:p.visible.left-l,right:p.visible.right+l};M.nav.minor_width=M.width;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var n=0;n<j.length;n++){var r,s=j[n].marker,t=j[n].flag,v=j[n].lineevent,w=cb(u,j[n].relative_pos),x=-2,z=!1;E=w.begin;_pos_end=w.end;E=Math.round(E+x);_pos_end=Math.round(_pos_end+x);r=Math.round(_pos_end-E);if(q==n){p.left=M.width/2-E;p.visible.left=Math.abs(p.left);p.visible.right=Math.abs(p.left)+M.width;m.left=p.visible.left-l;m.right=p.visible.right+l}Math.abs(E)>=m.left&&Math.abs(E)<=m.right&&(z=!0);if(a){VMM.Lib.stop(s);VMM.Lib.animate(s,M.duration/2,M.ease,{left:E})}else{VMM.Lib.stop(s);VMM.Lib.css(s,"left",E)}n==q&&(k=E);if(r>5){VMM.Lib.css(v,"height",h);VMM.Lib.css(v,"width",r);VMM.Lib.css(v,"top",g)}if(o.length>0)for(var A=0;A<o.length;A++)A<M.nav.rows.length&&j[n].tag==o[A]&&(d=A);else if(E-e<M.nav.marker.width+M.spacing)if(d<M.nav.rows.length-1)d++;else{d=0;f++}else{f=1;d=1}e=E;if(a&&z){VMM.Lib.stop(t);VMM.Lib.animate(t,M.duration,M.ease,{top:M.nav.rows[d]})}else{VMM.Lib.stop(t);VMM.Lib.css(t,"top",M.nav.rows[d])}M.start_page&&j[n].type=="start"&&VMM.Lib.visible(s,!1);E>M.nav.minor_width&&(M.nav.minor_width=E);E<M.nav.minor_left&&(M.nav.minor_left=E)}for(var B=0;B<i.length;B++){var r,C=i[B],D=C.content,E=cb(u,C.relative_pos),F=E.end-E.begin,G=25;VMM.Lib.css(D,"left",E.begin);VMM.Lib.css(D,"width",F)}VMM.Lib.stop(y);VMM.Lib.animate(y,M.duration/2,M.ease,{left:M.width/2-k})},eb=function(a,b,c,d){var e=u.type,f=u.multiplier,g=0,h=0,i=M.width,j={left:p.visible.left-i,right:p.visible.right+i};not_too_many=!0;M.nav.minor_left=0;if(b.length>100){not_too_many=!1;trace("TOO MANY "+b.length)}for(var k=0;k<b.length;k++){var l=b[k].element,m=b[k].date,n=b[k].visible,o=cb(u,b[k].relative_pos),q=o.begin,r=b[k].animation,s=!0,t=!1,v=50;r.pos=q;r.animate=!1;Math.abs(q)>=j.left&&Math.abs(q)<=j.right&&(t=!0);M.nav.multiplier.current>16&&d?s=!1:q-g<65&&(q-g<35?k%4==0?q==0&&(s=!1):s=!1:VMM.Util.isEven(k)||(s=!1));if(s){if(b[k].is_detached){VMM.Lib.append(a,l);b[k].is_detached=!1}}else{b[k].is_detached=!0;VMM.Lib.detach(l)}if(n)if(!s){r.opacity="0";c&&not_too_many&&(r.animate=!0);b[k].interval_visible=!1}else{r.opacity="100";c&&t&&(r.animate=!0)}else{r.opacity="100";if(s){c&&not_too_many?r.animate=!0:c&&t&&(r.animate=!0);b[k].interval_visible=!0}else c&&not_too_many&&(r.animate=!0)}g=q;q>M.nav.minor_width&&(M.nav.minor_width=q);if(q<M.nav.minor_left){M.nav.minor_left=q;trace("MINOR "+q)}if(r.animate)VMM.Lib.animate(l,M.duration/2,M.ease,{opacity:r.opacity,left:r.pos});else{VMM.Lib.css(l,"opacity",r.opacity);VMM.Lib.css(l,"left",q)}}VMM.Lib.css(I,"left",M.nav.minor_left-M.width/2);VMM.Lib.width(I,M.nav.minor_width+M.width+Math.abs(M.nav.minor_left))},fb=function(a,b,c){var d=0,e=!0,f=0,g=0,i,j,k={flag:!1,offset:0};VMM.attachElement(c,"");a.date=new Date(h[0].startdate.getFullYear(),0,1,0,0,0);i=a.date.getTimezoneOffset();for(var l=0;l<Math.ceil(a.number)+2;l++){var m=!1,n={element:VMM.appendAndGetElement(c,"<div>",a.classname),date:new Date(h[0].startdate.getFullYear(),0,1,0,0,0),visible:!1,date_string:"",type:a.interval_type,relative_pos:0,is_detached:!1,animation:{animate:!1,pos:"",opacity:"100"}};if(a.type=="eon"){e&&(j=Math.floor(h[0].startdate.getFullYear()/5e8)*5e8);n.date.setFullYear(j+d*5e8);m=!0}else if(a.type=="era"){e&&(j=Math.floor(h[0].startdate.getFullYear()/1e8)*1e8);n.date.setFullYear(j+d*1e8);m=!0}else if(a.type=="epoch"){e&&(j=Math.floor(h[0].startdate.getFullYear()/1e7)*1e7);n.date.setFullYear(j+d*1e7);m=!0}else if(a.type=="age"){e&&(j=Math.floor(h[0].startdate.getFullYear()/1e6)*1e6);n.date.setFullYear(j+d*1e6);m=!0}else if(a.type=="millenium"){e&&(j=Math.floor(h[0].startdate.getFullYear()/1e3)*1e3);n.date.setFullYear(j+d*1e3);m=!0}else if(a.type=="century"){e&&(j=Math.floor(h[0].startdate.getFullYear()/100)*100);n.date.setFullYear(j+d*100);m=!0}else if(a.type=="decade"){e&&(j=Math.floor(h[0].startdate.getFullYear()/10)*10);n.date.setFullYear(j+d*10);m=!0}else if(u.type=="year"){e&&(j=h[0].startdate.getFullYear());n.date.setFullYear(j+d);m=!0}else if(a.type=="month"){e&&(j=h[0].startdate.getMonth());n.date.setMonth(j+d)}else if(a.type=="week"){e&&(j=h[0].startdate.getMonth());n.date.setMonth(h[0].startdate.getMonth());n.date.setDate(j+d*7)}else if(a.type=="day"){e&&(j=h[0].startdate.getDate());n.date.setMonth(h[0].startdate.getMonth());n.date.setDate(j+d)}else if(a.type=="hour"){e&&(j=h[0].startdate.getHours());n.date.setMonth(h[0].startdate.getMonth());n.date.setDate(h[0].startdate.getDate());n.date.setHours(j+d)}else if(a.type=="minute"){e&&(j=h[0].startdate.getMinutes());n.date.setMonth(h[0].startdate.getMonth());n.date.setDate(h[0].startdate.getDate());n.date.setHours(h[0].startdate.getHours());n.date.setMinutes(j+d)}else if(a.type=="second"){e&&(j=h[0].startdate.getSeconds());n.date.setMonth(h[0].startdate.getMonth());n.date.setDate(h[0].startdate.getDate());n.date.setHours(h[0].startdate.getHours());n.date.setMinutes(h[0].startdate.getMinutes());n.date.setSeconds(j+d)}else if(a.type=="millisecond"){e&&(j=h[0].startdate.getMilliseconds());n.date.setMonth(h[0].startdate.getMonth());n.date.setDate(h[0].startdate.getDate());n.date.setHours(h[0].startdate.getHours());n.date.setMinutes(h[0].startdate.getMinutes());n.date.setSeconds(h[0].startdate.getSeconds());n.date.setMilliseconds(j+d)}if(VMM.Browser.browser=="Firefox")if(n.date.getFullYear()=="1970"&&n.date.getTimezoneOffset()!=i){trace("FIREFOX 1970 TIMEZONE OFFSET "+n.date.getTimezoneOffset()+" SHOULD BE "+i);trace(a.type+" "+a.date);k.offset=n.date.getTimezoneOffset()/60;k.flag=!0;n.date.setHours(n.date.getHours()+k.offset)}else if(k.flag){k.flag=!1;n.date.setHours(n.date.getHours()+k.offset);m&&(k.flag=!0)}m?n.date.getFullYear()<0?n.date_string=Math.abs(n.date.getFullYear()).toString()+" B.C.":n.date_string=n.date.getFullYear():n.date_string=VMM.Date.prettyDate(n.date,!0);d++;e=!1;n.relative_pos=bb(u,n.date);f=n.relative_pos.begin;n.relative_pos.begin>g&&(g=n.relative_pos.begin);VMM.appendElement(n.element,n.date_string);VMM.Lib.css(n.element,"text-indent",-(VMM.Lib.width(n.element)/2));VMM.Lib.css(n.element,"opacity","0");b.push(n)}VMM.Lib.width(I,g);eb(c,b)},gb=function(){VMM.attachElement(f,"");y=VMM.appendAndGetElement(f,"<div>","timenav");z=VMM.appendAndGetElement(y,"<div>","content");A=VMM.appendAndGetElement(y,"<div>","time");B=VMM.appendAndGetElement(A,"<div>","time-interval-minor");I=VMM.appendAndGetElement(B,"<div>","minor");D=VMM.appendAndGetElement(A,"<div>","time-interval-major");C=VMM.appendAndGetElement(A,"<div>","time-interval");E=VMM.appendAndGetElement(f,"<div>","timenav-background");G=VMM.appendAndGetElement(E,"<div>","timenav-line");H=VMM.appendAndGetElement(E,"<div>","timenav-indicator");F=VMM.appendAndGetElement(E,"<div>","timenav-interval-background","<div class='top-highlight'></div>");J=VMM.appendAndGetElement(f,"<div>","toolbar");hb();ib();$();db();eb(C,k,!1,!0);eb(D,l);if(M.start_page){$backhome=VMM.appendAndGetElement(J,"<div>","back-home","<div class='icon'></div>");VMM.bindEvent(".back-home",S,"click");VMM.Lib.css(J,"top",27);VMM.Lib.attribute($backhome,"title",VMM.master_config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}K=VMM.appendAndGetElement(J,"<div>","zoom-in","<div class='icon'></div>");L=VMM.appendAndGetElement(J,"<div>","zoom-out","<div class='icon'></div>");VMM.Lib.attribute(K,"title",VMM.master_config.language.messages.expand_timeline);VMM.Lib.attribute(K,"rel","tooltip");VMM.Lib.attribute(L,"title",VMM.master_config.language.messages.contract_timeline);VMM.Lib.attribute(L,"rel","tooltip");J.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(E,y,M.width,M.spacing,!1);VMM.bindEvent(y,X,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,y,M.width,M.spacing,!1);VMM.bindEvent(".zoom-in",Q,"click");VMM.bindEvent(".zoom-out",R,"click");VMM.fireEvent(f,"LOADED");r=!0;O(!0)},hb=function(){e=ab(h[h.length-1].enddate-h[0].startdate,!0);trace(e);_();if(e.centuries>h.length/M.nav.density){u=x.century;v=x.millenium;w=x.decade}else if(e.decades>h.length/M.nav.density){u=x.decade;v=x.century;w=x.year}else if(e.years>h.length/M.nav.density){u=x.year;v=x.decade;w=x.month}else if(e.months>h.length/M.nav.density){u=x.month;v=x.year;w=x.day}else if(e.days>h.length/M.nav.density){u=x.day;v=x.month;w=x.hour}else if(e.hours>h.length/M.nav.density){u=x.hour;v=x.day;w=x.minute}else if(e.minutes>h.length/M.nav.density){u=x.minute;v=x.hour;w=x.second}else if(e.seconds>h.length/M.nav.density){u=x.second;v=x.minute;w=x.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");u=x.day;v=x.month;w=x.hour}trace("INTERVAL TYPE: "+u.type);trace("INTERVAL MAJOR TYPE: "+v.type);fb(u,k,C);fb(v,l,D)},ib=function(){var a=2,b=0,c=0;j=[];i=[];for(var d=0;d<h.length;d++){var e,f,g,k,l,n,p="",q=!1;e=VMM.appendAndGetElement(z,"<div>","marker");f=VMM.appendAndGetElement(e,"<div>","flag");g=VMM.appendAndGetElement(f,"<div>","flag-content");k=VMM.appendAndGetElement(e,"<div>","dot");l=VMM.appendAndGetElement(e,"<div>","line");n=VMM.appendAndGetElement(l,"<div>","event-line");_marker_relative_pos=bb(u,h[d].startdate,h[d].enddate);_marker_thumb="";h[d].asset!=null&&h[d].asset!=""?VMM.appendElement(g,VMM.MediaElement.thumbnail(h[d].asset,24,24,h[d].uniqueid)):VMM.appendElement(g,"<div style='margin-right:7px;height:50px;width:2px;float:left;'></div>");if(h[d].title==""||h[d].title==" "){trace("TITLE NOTHING");if(typeof h[d].slug!="undefined"&&h[d].slug!=""){trace("SLUG");p=VMM.Util.untagify(h[d].slug);q=!0}else{var r=VMM.MediaType(h[d].asset.media);if(r.type=="quote"||r.type=="unknown"){p=VMM.Util.untagify(r.id);q=!0}else if(r.type=="twitter"){q=!1;VMM.appendElement(g,"<h3 id='text_thumb_"+r.id+"'>"+p+"</h3>")}else q=!1}}else if(h[d].title!=""||h[d].title!=" "){trace(h[d].title);p=VMM.Util.untagify(h[d].title);q=!0}else trace("TITLE SLUG NOT FOUND "+h[d].slug);q&&VMM.appendElement(g,"<h3>"+p+"</h3>");VMM.Lib.attr(e,"id",("marker_"+h[d].uniqueid).toString());VMM.bindEvent(f,U,"",{number:d});VMM.bindEvent(f,V,"mouseenter mouseleave",{number:d,elem:f});var s={marker:e,flag:f,lineevent:n,type:"marker",relative_pos:_marker_relative_pos,tag:h[d].tag};if(h[d].type=="start"){trace("BUILD MARKER HAS START PAGE");M.start_page=!0;s.type="start"}h[d].type=="storify"&&(s.type="storify");h[d].tag&&o.push(h[d].tag);j.push(s)}o=VMM.Util.deDupeArray(o);for(var t=0;t<o.length;t++)if(t<M.nav.rows.length){var v=VMM.appendAndGetElement(E,"<div>","timenav-tag");VMM.Lib.addClass(v,"timenav-tag-row-"+(t+1));VMM.appendElement(v,"<div><h3>"+o[t]+"</h3></div>")}for(var w=0;w<m.length;w++){var x={content:VMM.appendAndGetElement(z,"<div>","era"),startdate:VMM.Util.parseDate(m[w].startDate),enddate:VMM.Util.parseDate(m[w].endDate),title:m[w].headline,uniqueid:VMM.Util.unique_ID(4),color:m[w].color,relative_pos:""};x.relative_pos=bb(u,m[w].startdate,m[w].enddate);VMM.Lib.attr(x.content,"id",x.uniqueid);VMM.Lib.css(x.content,"background",x.color);VMM.appendElement(x.content,"<h3>"+VMM.Util.unlinkify(x.title)+"</h3>");i.push(x)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){VMM.Timeline.DataObj.data_obj={};data=VMM.Timeline.DataObj.data_obj;VMM.fireEvent(global,VMM.Timeline.Config.events.messege,VMM.Timeline.Config.language.messages.loading_timeline);if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model.tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model.googlespreadsheet.getData(a)}else if(a.match("storify.com")){trace("DATA SOURCE: STORIFY");VMM.Timeline.DataObj.model.storify.getData(a)}else{trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},parseHTML:function(a){trace("parseHTML");trace("WARNING: THIS IS STILL ALPHA AND WILL NOT WORK WITH ID's other than #timeline");var b=VMM.Timeline.DataObj.data_template_obj;if(VMM.Lib.find("#timeline section","time")[0]){b.timeline.startDate=VMM.Lib.html(VMM.Lib.find("#timeline section","time")[0]);b.timeline.headline=VMM.Lib.html(VMM.Lib.find("#timeline section","h2"));b.timeline.text=VMM.Lib.html(VMM.Lib.find("#timeline section","article"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[1]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,b)},parseJSON:function(a){trace("parseJSON");if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model:{googlespreadsheet:{getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(c,VMM.Timeline.DataObj.model.googlespreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c<a.feed.entry.length;c++){var d=a.feed.entry[c];if(d.gsx$titleslide.$t.match("start")){b.timeline.startDate=d.gsx$startdate.$t;b.timeline.headline=d.gsx$headline.$t;b.timeline.asset.media=d.gsx$media.$t;b.timeline.asset.caption=d.gsx$mediacaption.$t;b.timeline.asset.credit=d.gsx$mediacredit.$t;b.timeline.text=d.gsx$text.$t;b.timeline.type="google spreadsheet"}else{var e={type:"google spreadsheet",startDate:d.gsx$startdate.$t,endDate:d.gsx$enddate.$t,headline:d.gsx$headline.$t,text:d.gsx$text.$t,asset:{media:d.gsx$media.$t,credit:d.gsx$mediacredit.$t,caption:d.gsx$mediacaption.$t},tags:"Optional"};typeof d.gsx$tag!="undefined"&&(e.tag=d.gsx$tag.$t);b.timeline.date.push(e)}}VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,b)}},storify:{getData:function(a){VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Loading Storify...");var b=a.split("storify.com/")[1],c="http://api.storify.com/v1/stories/"+b+"?per_page=300&callback=?",d=setTimeout(function(){trace("STORIFY timeout");VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Storify is not responding")},6e3);VMM.getJSON(c,VMM.Timeline.DataObj.model.storify.buildData).error(function(a,b,c){trace("STORIFY error");trace("STORIFY ERROR: "+b+" "+a.responseText)}).success(function(a){clearTimeout(d)})},buildData:function(a){VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;b.timeline.startDate=new Date(a.content.date.created);b.timeline.headline=a.content.title;trace(a);var c="",d=a.content.author.username,e="";if(typeof a.content.author.name!="undefined"){d=a.content.author.name;e=a.content.author.username+"&nbsp;"}typeof a.content.description!="undefined"&&a.content.description!=null&&(c+=a.content.description);c+="<div class='storify'>";c+="<div class='vcard author'><a class='screen-name url' href='"+a.content.author.permalink+"' target='_blank'>";c+="<span class='avatar'><img src='"+a.content.author.avatar+"' style='max-width: 32px; max-height: 32px;'></span>";c+="<span class='fn'>"+d+"</span>";c+="<span class='nickname'>"+e+"<span class='thumbnail-inline'></span></span>";c+="</a>";c+="</div>";c+="</div>";b.timeline.text=c;b.timeline.asset.media=a.content.thumbnail;b.timeline.type="storify";for(var f=0;f<a.content.elements.length;f++){var g=a.content.elements[f],h=!1,i=new Date(g.posted_at);trace(g.type);var j={type:"storify",startDate:g.posted_at,endDate:g.posted_at,headline:" ",slug:"",text:"",asset:{media:"",credit:"",caption:""}};if(g.type=="image"){if(typeof g.source.name!="undefined")if(g.source.name=="flickr"){j.asset.media="http://flickr.com/photos/"+g.meta.pathalias+"/"+g.meta.id+"/";j.asset.credit="<a href='"+j.asset.media+"'>"+g.attribution.name+"</a>";j.asset.credit+=" on <a href='"+g.source.href+"'>"+g.source.name+"</a>"}else if(g.source.name=="instagram"){j.asset.media=g.permalink;j.asset.credit="<a href='"+g.permalink+"'>"+g.attribution.name+"</a>";j.asset.credit+=" on <a href='"+g.source.href+"'>"+g.source.name+"</a>"}else{j.asset.credit="<a href='"+g.permalink+"'>"+g.attribution.name+"</a>";typeof g.source.href!="undefined"&&(j.asset.credit+=" on <a href='"+g.source.href+"'>"+g.source.name+"</a>");j.asset.media=g.data.image.src}else{j.asset.credit="<a href='"+g.permalink+"'>"+g.attribution.name+"</a>";j.asset.media=g.data.image.src}j.slug=g.attribution.name;if(typeof g.data.image.caption!="undefined"&&g.data.image.caption!="undefined"){j.asset.caption=g.data.image.caption;j.slug=g.data.image.caption}}else if(g.type=="quote"){if(g.permalink.match("twitter")){j.asset.media=g.permalink;j.slug=VMM.Util.untagify(g.data.quote.text)}else if(g.permalink.match("storify")){h=!0;j.asset.media="<blockquote>"+g.data.quote.text.replace(/<\s*\/?\s*b\s*.*?>/g,"")+"</blockquote>"}}else if(g.type=="link"){j.headline=g.data.link.title;j.text=g.data.link.description;g.data.link.thumbnail!="undefined"&&g.data.link.thumbnail!=""?j.asset.media=g.data.link.thumbnail:j.asset.media=g.permalink;j.asset.caption="<a href='"+g.permalink+"' target='_blank'>"+g.data.link.title+"</a>";j.slug=g.data.link.title}else if(g.type=="text"){if(g.permalink.match("storify")){h=!0;var k=a.content.author.username,l="";if(typeof g.attribution.name!="undefined"){d=g.attribution.name;e=g.attribution.username+"&nbsp;"}var m="<div class='storify'>";m+="<blockquote><p>"+g.data.text.replace(/<\s*\/?\s*b\s*.*?>/g,"")+"</p></blockquote>";m+="<div class='vcard author'><a class='screen-name url' href='"+g.attribution.href+"' target='_blank'>";m+="<span class='avatar'><img src='"+g.attribution.thumbnail+"' style='max-width: 32px; max-height: 32px;'></span>";m+="<span class='fn'>"+d+"</span>";m+="<span class='nickname'>"+e+"<span class='thumbnail-inline'></span></span>";m+="</a></div></div>";j.text=m;if(f+1>=a.content.elements
.length)j.startDate=a.content.elements[f-1].posted_at;else if(a.content.elements[f+1].type=="text"&&a.content.elements[f+1].permalink.match("storify"))if(f+2>=a.content.elements.length)j.startDate=a.content.elements[f-1].posted_at;else if(a.content.elements[f+2].type=="text"&&a.content.elements[f+2].permalink.match("storify"))if(f+3>=a.content.elements.length)j.startDate=a.content.elements[f-1].posted_at;else if(a.content.elements[f+3].type=="text"&&a.content.elements[f+3].permalink.match("storify"))j.startDate=a.content.elements[f-1].posted_at;else{trace("LEVEL 3");j.startDate=a.content.elements[f+3].posted_at}else{trace("LEVEL 2");j.startDate=a.content.elements[f+2].posted_at}else{trace("LEVEL 1");j.startDate=a.content.elements[f+1].posted_at}j.endDate=j.startDate}}else if(g.type=="video"){j.headline=g.data.video.title;j.asset.caption=g.data.video.description;j.asset.caption=g.source.username;j.asset.media=g.data.video.src}else{trace("NO MATCH ");trace(g)}h&&(j.slug=VMM.Util.untagify(g.data.text));b.timeline.date.push(j)}VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,b)}},tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model.tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model.tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d<b.tweetdata.length;d++){var e={type:"tweets",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};e.startDate=b.tweetdata[d].raw.created_at;type.of(b.tweetdata[d].raw.from_user_name)?e.headline=b.tweetdata[d].raw.from_user_name+" (<a href='https://twitter.com/"+b.tweetdata[d].raw.from_user+"'>"+"@"+b.tweetdata[d].raw.from_user+"</a>)":e.headline=b.tweetdata[d].raw.user.name+" (<a href='https://twitter.com/"+b.tweetdata[d].raw.user.screen_name+"'>"+"@"+b.tweetdata[d].raw.user.screen_name+"</a>)";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,c)}}},data_template_obj:{timeline:{headline:"",description:"",asset:{media:"",credit:"",caption:""},date:[]}},date_obj:{startDate:"2012,2,2,11,30",headline:"",text:"",asset:{media:"http://youtu.be/vjVfu8-Wp6s",credit:"",caption:""},tags:"Optional"}});VMM.debug=!1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment